Tags

,

Creating an alias for a long or complicated command can help to save alot of time and trouble.

To create a basic alias, we use the alias command. The following will alias the command “VirtualBoxManage” as vbm.

alias vbm='VirtualBoxManage'

To make the alias permanent and usable reboot, we can add the command to the system wide .profile file. Browse to /etc/profile and append add the alias command at the end of the file.

To make the alias permanent only for a certain user, add the command to the .profile file inside the user’s home folder.

Advertisements