Find the answer to your Linux question:
Results 1 to 3 of 3
hello, maybe some one can help me, I have one question in my work in university about Ubuntu and I am stuck with it, the question is: 3. Modify your ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    1

    Help with bash_profile

    hello, maybe some one can help me, I have one question in my work in university about Ubuntu and I am stuck with it, the question is:
    3. Modify your .bash_profile script so that your PATH includes the current directory (.) and so that your environment variable EDITOR is set to emacs orvi (or whatever else you prefer to use). Run the modified script using source .bash_profile and check that the changes you made have been applied to the current shell (type env).

  2. #2
    Just Joined!
    Join Date
    Jan 2009
    Location
    colachel
    Posts
    27
    open the bash_profile and set the environmet variable there.

    It is located in home directory of the user

    /root/.bash_profile
    Last edited by oz; 10-25-2011 at 02:43 PM. Reason: spam removal

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    Quote Originally Posted by sahabcse View Post
    open the bash_profile and set the environmet variable there.

    It is located in home directory of the user

    /root/.bash_profile
    Just to clarify, most user home directories (except for the root account) are in /home, as in /home/myusername, which is where you will find files like .bash_profile, .bashrc, etc. Because they start with a dot they are usually invisible to the user. If you are using a command line interface, you can make them visible with the -a or -A option to ls. Example:
    Code:
    [myusername@myhost ~]$ ls
    Docs    Media    tmp
    [myusername@myhost ~]$ ls -a
    .
    ..
    .bash_history    Docs         tmp
    .bash_profile    Media
    .bashrc          .mozilla
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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