Nguyễn Thanh Uyên
New member
Where do I create alias in Linux?
Answer
Open the Terminal app and then type the following commands:
Answer
Open the Terminal app and then type the following commands:
- Edit ~/. bash_aliases or ~/. bashrc file using: vi ~/. bash_aliases.
- Append your bash alias.
- For example append: alias update=’sudo yum update’
- Save and close the file.
- Activate alias by typing: source ~/. bash_aliases.