How do I save alias in Linux?

Stasenndb

New member
How do I save 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.
 

Tìm kiếm

Back
Top