How To Make a Permanent 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.
1. Open the terminal and type nano ~/.bashrc. This will open the bashrc file.
2. Scroll to the bottom of the file and type alias followed by the command you want to create an alias for and then the alias you want to create. For example: alias ls=’ls -alF’
3. Press Ctrl+X to exit the file, then answer Y to save the changes.
4. To use the alias, restart the terminal or use the source command: source ~/.bashrc.
5. Test your alias by typing the alias you just created.