VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Writing an alias  (Read 1369 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
Logged
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  :)
Logged

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
Logged
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