How to Create a Command Alias in Linux

Linux Logo

How to Create a Command Alias in Linux

List Aliases

$alias

Creating Permanent Aliases

save them in your user’s shell configuration profile file.

  • Bash – ~/.bashrc
  • ZSH – ~/.zshrc
  • Fish – ~/.config/fish/config.fish
$ nano ~/.bashrc

Add your alias anywhere in the file and save.

alias pwsh="~/powershell/pwsh"