April 20, 2015, 10:11:30 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 [2]
Author Topic: alias command not working  (Read 5913 times)
Posts: 86

« Reply #15 on: September 17, 2007, 07:12:33 am »

The .bashrc is a log-in rc
 AFAIK > If not 'sourced' or another  bash command not used (which runs new concurrent CLI environment

The only other way to use NEW aiiased commands - exit session  & log in again

The whitespaces in CLI & if whether single or double quotes acceptable -
depends on shell used for log in vs distro specific running shell after bootup
(Ash, csh etal)

Legacy - Most shells are backwards compliant  - but we do hit occasional oddities
In essence all suggestions were accurate -but dependent on user's environment
Ain't technology great - never black vs white -just umpteen shades of gray to confuddle us (me)_

Posts: 52

« Reply #16 on: September 18, 2007, 07:37:55 am »

Success at last !

Edited the /root/.bashrc file as follows:

#aliases for net connection
alias pon='/usr/sbin/pppoe-start'
alias poff='/usr/sbin/pppoe-stop'

and it works fine.

And added the line:

echo "source ~/.bashrc" >> ~/.bash_profile

Now it works fine.
Thanks to all of you.
Pages: 1 [2]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!