Post

Linux Alias

List All Aliases in Linux

1
alias

Create a Temporary Alias in Linux

1
alias c='clear'

Create a Permanent Alias in Linux

1
2
3
4
5
sudo nano ~/.bashrc
source ~/.bashrc

sudo nano ~/.zshrc
source ~/.zshrc

Custom aliases

1
2
3
4
5
alias c='clear'
alias move='mv -i'
alias frename='Example/Test/file_rename.sh'

source ~/.bashrc

Remove Aliases in Linux

1
unalias [name]
This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.