Set Command Alias2013/05/06 |
Set Command Alias for commands often used.
|
|
[1] | Apply to all users. |
root@dlp:~#
vi /etc/profile # last line: add aliases
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA' alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' source /etc/profile # reload |
[2] | Apply to a user ( a user 'squeeze' applies for himself ) |
wheezy@dlp:~$
vi .bashrc # last line: add aliases
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA' alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' source .bashrc # reload |
Sponsored Link |
|