Alias linux bashrc
- how to use alias in linux
- how to use alias in linux shell script
- how to use alias in linux terminal
- how to access alias in linux
How to check alias in linux!
Alias in bash can be termed simply as a command or a shortcut that will run another command/program. Alias is very helpful when our command is very long and for frequently used commands.
How to set alias in linux permanently
Over the course of this article, we are going to see how powerful is an alias and the different ways to set up an alias and use it.
Check Bash Aliases in Linux
Alias is a shell builtin command and you can confirm it by running:
$ type -a alias alias is a shell builtinBefore jumping and setting up an alias we will see the configuration files involved.
An alias can be set either at the “user-level” or “system level”.
Invoke your shell and simply type “alias” to see the list of defined alias.
$ aliasUser-level aliases can be defined either in the .bashrc file or the .bash_aliases file.
The .bash_aliases file is to group all your aliases into a separate file instead of putting it in the .bashrc file along with other parameters. Initially, .bash_aliases will not be available and we have to create it.
$ ls -la ~ | grep -i .bash_aliases # Check if file is- how to use alias command in linux
- how does alias work in linux