Find the answer to your Linux question:
Results 1 to 4 of 4
I want to execute a command file (e.g. msub) that its path is not in the .bash_profile file. What is the .bash_profile file and how can put my command's path ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    27

    .bash_profile file?


    I want to execute a command file (e.g. msub) that its path is not in the .bash_profile file. What is the .bash_profile file and how can put my command's path in this file?

    Thnks

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    add path in .bashrc file.
    Code:
    PATH=$PATH:<command path>
    logout and login back. check output of 'echo $PATH'.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    27
    Quote Originally Posted by devils_casper
    add path in .bashrc file.
    Code:
    PATH=$PATH:<command path>
    logout and login back. check output of 'echo $PATH'.





    Casper
    where is that .bashrc file and where should I type this "PATH=$PATH:<command path>"?

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    .bashrc is in your home folder.
    Code:
    gedit .bashrc
    this will open .bashrc file in gedit. add that code in the file.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •