Initial Settings : Set Command Alias2019/07/10 |
Set Command Alias for some commands that are often used.
|
|
[1] | Apply to all users as default. |
root@dlp:~#
vi /etc/profile.d/command_alias.sh # create new file # add alias you'd like to set
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA' alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' # reload root@dlp:~# source /etc/profile.d/command_alias.sh |
[2] | Apply to a user. ( a user [buster] applies for himself ) |
buster@dlp:~$
vi ~/.bashrc # add to the end : add alias you'd like to set
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 |
Sponsored Link |