How to create an alias for the complex command and remove the alias?

The alias utility is used to create the alias for a command. The below command creates alias for ps -aef command.
aliaspg=’ps -aef’
If you use pg, it will work the same way as ps -aef.
To remove the alias simply use the unalias command as unaliaspg

Category: UNIX Interview Questions.