How Do I Save Alias in Linux?
Contents Where Do I Put an Alias in Linux? Aliases Allow You to Define New Commands by Substituting a String for the First Token of a Simple Command. They Are...
Contents
Where do I put an alias in Linux?
Aliases allow you to define new commands by substituting a string for the first token of a simple command. They are typically placed in the ~/. bashrc (bash) or ~/.
Must Read
How do I save an alias in bash?
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.
4 апр. 2003 г.