In Linux terminal Alias helps you to create shortcuts command, suppose if i need to display a list of directory with it's permission and group, that time i enter the command ll instead of ls -l, which will list the directory, ll is not a command in the Linux terminal but it's a alias defined in the system,
How to make Alias(Linux terminal shortcuts)
to define Alias you need to modify the bashrc file, to modify the file
sudo nano ~/.bashrc
it will open a editor in the terminal, (you can use gedit or vim editor ), now define your own alias here like
alias ll='ls -l'
press ctrl+x to save the file, after that when you enter ll it will execute ls -l
Have a Happy Linux, Help us to improve the blog,
No comments:
Post a Comment