How Create Alias File in Linux?
Contents What Is Alias Command in Linux? Linux for Programmers and Users, Sections 6.4.1 Alias. an Alias Is a Short Cut Command to a Longer Command. Users May...
Contents
What is alias command in Linux?
Linux for Programmers and Users , Sections 6.4.1 alias. An alias is a short cut command to a longer command. Users may type the alias name to run the longer command with less typing. Without arguments, alias prints a list of defined aliases. A new alias is defined by assigning a string with the command to a name.
Must Read
How do I create an alias in Unix?
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 г.