On Sun, 30 Dec 2001 18:27:08 -0600 Michael Viron <[EMAIL PROTECTED]> studiouisly spake these words to ponder:
> >> You could also enter this command in a terminal. > >> > >> PATH=$PATH:/some/path/to/be/added > >> > >> example: > >> > >> PATH=$PATH:/usr/local/bin > >> > You can do so, or you can use 'export' in front of it. The command above > will work in bash1 / bash2 and zsh, not sure about csh, ksh. > > > > > >you know...now that we're on the subject i'm a little unclear as to just > how this "PATH" thing works. for a bit I couldn't remember how I could get > to the screen exactly "what" my path was until I typed this in a terminal: > > > > which path > > > Nope. What that is doing is looking for a program called 'path' in your > $PATH. In order to see what your $PATH is, type 'echo $PATH' at the > command line. > > >this is what was returned: > > > > [mdw1982@mdw1982 mdw1982]$ which path > > which: no path in > (/usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin:/usr/games:/home > /mdw1982/bin) > > > this is correct, since the program 'path' does not exist in your $PATH (the > shell variable). It's the same as trying to use a program not in your > path. For example, if you installed staroffice into /opt/soffice, then > since '/opt/soffice' isn't in your $PATH, you'd have to specify > specifically where the file is until you added the command 'export > PATH=$PATH:/opt/soffice' to your the .bashrc / .profile / .bash_profile file. > > >what "I" don't understand is just how this all works. I've always brought > "things" into my path by issuing the statement above since using > > > > export PATH=$PATH:/some/path/statement > > > >pnly enters the path statement temporarily whereas the former enters the > path permenantly. > > > Nope. Actually, neither adds it 'permanently'. The only way to do so is > edit the .profile or .bashrc or .bash_profile file and add it to the > setting for PATH. > > -- > Michael Viron > Registered Linux User #81978 > Senior Systems & Administration Consultant > Web Spinners, University of West Florida > > Interesting! very good info. thanks -- daRcmaTTeR --------------------------------------------------------------------- If at first you don't succeed do what your wife told you to do the first time! Registered Linux User 182496 Mandrake 8.1 --------------------------------------------------------------------- 11:05pm up 14 days, 14:54, 2 users, load average: 0.05, 0.14, 0.14
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
