Initial Settings : Set Command Alias2023/12/14 |
Set Command Alias for some commands that are often used.
|
|
[1] | Apply to all users as defaults. |
root@localhost:~ #
vi /etc/profile.d/command_alias.sh # create new file # add alias you like to set
alias ll='ls -laFo'
alias l='ls -l' alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' # load values root@localhost:~ # . /etc/profile.d/command_alias.sh |
[2] | Apply to a user. For example, user [freebsd] sets alias for itself. |
freebsd@localhost:~ $
vi ~/.shrc # add to the end : add alias you like to set
alias rm='rm -i'
alias cp='cp -i' alias mv='mv -i' . ~/.shrc |
Sponsored Link |