Re: making a variable for the shell

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Scott Berry wrote:
> I would like to tell Bash that /home/ShellScripts/ is a path that I
> want to be seen all the time.  How would one do this or what man
> page would I consult?

What you want to set for bash is $PATH.  You can do this in the
.bash_profile file in your homedir if you want to do this for a
particular user, or in /etc/profile to affect all users.

Most likely, you want to add to the existing path.  In either of the
profile files, put something like this before any lines that include
"export ... PATH":

PATH=$PATH:/home/ShellScripts

I think this would be covered in the bash man page, but that's really
more like a book than a typical manpage. :)

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
======================================================================
The greatest gift you can give another is the purity of your
attention.
    -- Richard Moss, M.D.

Attachment: pgpijB7gasFI9.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux