-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux alias Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to alias on Linux, covering Arch Linux, CachyOS, and other distributions including creating aliases, command shortcuts, and shell customization.
alias creates command shortcuts.
Uses:
- Shortcuts: Create command shortcuts
- Customize commands: Modify command behavior
- Save typing: Reduce typing
- Shell customization: Customize shell
Why it matters:
- Productivity: Save time typing
- Customization: Personalize commands
- Convenience: Make commands easier
Basic usage:
# Create alias
alias ll='ls -alF'
# Use alias
llShow aliases:
# List all aliases
alias
# Or specific
alias llUseful aliases:
# Long listing
alias ll='ls -alF'
# Color output
alias ls='ls --color=auto'
# Safety
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'Advanced aliases:
# With arguments
alias grep='grep --color=auto'
# Multiple commands
alias update='sudo pacman -Syu'Add to config:
# Edit shell config
vim ~/.bashrc
# Or
vim ~/.zshrcIn config file:
# Add to ~/.bashrc
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'Apply changes:
# Reload config
source ~/.bashrc
# Or
. ~/.bashrcCheck config:
# Verify alias exists
alias ll
# Check if in config
grep alias ~/.bashrc
# Reload config
source ~/.bashrcThis guide covered alias usage, command shortcuts, and shell customization for Arch Linux, CachyOS, and other distributions.
- Shell Configuration - Shell setup
- Bash Scripting Guide - Scripting
-
alias Documentation:
man alias
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.