Thursday, July 28, 2005

Alias command for terminal

This is for any command that is not in the $PATH envvar.

Added alias for samba command in root .profile so I don't have to enter the whole path to the command when ssh'ing in. Also added symbolic link in /home/zaurus for when opening terminal.

When ssh/telnet in:
1. su - root
2. vi .profile
3. go to the end of the file and add this line
alias samba='/etc/rc.d/init.d/samba'
4. Save and quit vi

When on Zaurus terminal:
1. be sure you're in the home directory by typing:
cd ~
2. Create wymbolic link to samba command by typing:
ln -s /etc/rc.d/init.d/samba samba

That's all there is to it. Now if you want to turn on or off samba you simply type the command 'samba start/stop'

No comments: