Danh Trịnh
New member
How do I create an alias in Unix?
Answer
To create an alias in bash that is set every time you start a shell:
Answer
To create an alias in bash that is set every time you start a shell:
- Open your ~/. bash_profile file.
- Add a line with the alias—for example, alias lf=’ls -F’
- Save the file.
- Quit the editor. The new alias will be set for the next shell you start.
- Open a new Terminal window to check that the alias is set: alias.