Skip to main content Skip to page footer

Legen Sie Befehlsalias für einige häufig verwendete Befehle fest.
 

Gilt für alle Benutzer als Standard.

root@localhost:~# 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@localhost:~# source /etc/profile.d/command_alias.sh
dummy@localhost:~$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'
  
dummy@localhost:~$ source ~/.bashrc 
Box-Modell erkunden
Beschreibung der CSS-Eigenschaften