Please support VectorLinux!

Author Topic: Writing an alias  (Read 1310 times)

reb

  • Vectorite
  • ***
  • Posts: 136
  • The BOSS
Writing an alias
« on: January 20, 2008, 02:40:04 pm »
Hi all,

Is there a command to show the system path when in terminal mode?  If not then, I would like to write an alias so I could type a couple characters at the command line prompt and show the 'path', without having to go into the 'profile' or '.bashrc' file.  And if I want to add to my path, would it be best to add it to the 'profile' or the '.bashrc' file? 

reb
Ye Ole Montana Saddle Tramp
Nothing is right or wrong, good or bad, only thinking makes it so.  Think about it.
Running a Vector Linux VL3300 with 1 SATA 80GB HDD and 1GB DDR 400 ram, DVD+-RW , and VL 5.9 Delux

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Writing an alias
« Reply #1 on: January 20, 2008, 03:15:48 pm »
Hi Reb,
To show what's in your path you simply:
Quote
echo $PATH
and it will show up in the terminal  :)

reb

  • Vectorite
  • ***
  • Posts: 136
  • The BOSS
Re: Writing an alias
« Reply #2 on: January 20, 2008, 04:03:00 pm »
Thanks Lee,

That makes it a lot simpler.  ;)

reb
Ye Ole Montana Saddle Tramp
Nothing is right or wrong, good or bad, only thinking makes it so.  Think about it.
Running a Vector Linux VL3300 with 1 SATA 80GB HDD and 1GB DDR 400 ram, DVD+-RW , and VL 5.9 Delux