Aliases of commands are used to make life easier by shortening commands the user uses often, and becomes tedious to type the entire command
Steps[]
to create an alias
to view an alias
- execute: alias Alias_Name
to remove an alias
- execute: unalias Alias_Name
to make an alias permanent put in your shells startup script i.e. ~/.bashrc ~/.bash_profile ~/.profile
See: Howto configure bash startup scripts
Examples[]
- alias mntcd='mount /mnt/cdrom'
- alias unntcd='umount /mnt/cdrom;eject /mnt/cdrom'
- alias shut='/sbin/shutdown -hP 1'
- alias fmplayer='mplayer -fs'
From HowTo Wiki, a Wikia wiki.