Where do I create alias in Linux?

Where do I create alias in Linux?
Answer
Open the Terminal app and then type the following commands:
  1. Edit ~/. bash_aliases or ~/. bashrc file using: vi ~/. bash_aliases.
  2. Append your bash alias.
  3. For example append: alias update=’sudo yum update’
  4. Save and close the file.
  5. Activate alias by typing: source ~/. bash_aliases.
27 февр. 2021 г.
 

Tìm kiếm

Back
Top