VectorLinux
August 22, 2014, 11:21:19 am *
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 http://vectorlinux.com/forum1. 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]
  Print  
Author Topic: alias command not working  (Read 5048 times)
Vxt
Member
*
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)_


   
Logged
varaahan
Member
*
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.
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

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