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"
Related
- Displaying Network Statistics in Linux
- Find Command in Linux
- IP Forwarding in Linux
- Linux IP Essentials
- Linux Routing Essentials
- Linux Users
- Linux Groups
- LUKS: Linux Unified Key Setup Essentials
- NetPlan Essentials
- Set Sound Output Device via Command Line
- tar command compress and extract
- Powershell