Alias of commands are used to make life easier by shortening commands the user uses often, and becomes tedious to type the entire command .
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 ie. ~/.bashrc ~/.bash_profile ~/.profile
Examples
■alias mntcd='mount /mnt/cdrom'
■alias umntcd='umount /mnt/cdrom;eject /mnt/cdrom'
■alias shut='/sbin/shutdown -hP 1'
■alias fmplayer='mplayer -fs'
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 ie. ~/.bashrc ~/.bash_profile ~/.profile
Examples
■alias mntcd='mount /mnt/cdrom'
■alias umntcd='umount /mnt/cdrom;eject /mnt/cdrom'
■alias shut='/sbin/shutdown -hP 1'
■alias fmplayer='mplayer -fs'
No comments:
Post a Comment