How To Set Up Alias In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
An alias is a tool used to make it easier to refer to a command or set of commands. They can be used to shorten a long command or to provide a more memorable name for a command.
To set up an alias in Linux, use the following steps:
1. Open the terminal.
2. Type in ‘alias alias_name=”command”‘ and press Enter. The alias_name is the name you will give to the command, and the command is the command you want to alias.
3. To view the newly added alias, type ‘alias’ and press Enter.
4. To remove an alias, type ‘unalias alias_name’ and press Enter.
5. To make the alias permanent, add the command to your ~/.bashrc or ~/.bash_aliases file.