Shell Aliases
Here you'll find a few handy aliases to use in ZSH and Bash Shell. Tested on Linux - likely work on Mac!
.. ... ....
# Make changing directory up easieralias ..='cd ..'alias ...='cd ../../'alias ....='cd ../../../'
ls sl ll
# Make ls show directory endingsalias ls='ls -FA --color'# Make sl list files ('ls')alias sl='ls'# Make ls -l show in human-readable formatalias ll='ls -lhFA --color'
du
# Show human readable file sizes in directoryalias du='du -ach | sort -h'
free
# Show human-readable free memoryalias free='free -th'
diff
# Make diff side-by-sidealias diff='diff -y --color'
clip
# Copy file contents to clipboard (USAGE: clip [FILE])alias clip='xclip -sel clip <'
perm
# Get numerical file permissions of filealias perm='stat -c "%a %n"'
ping
# Ping 3 times rather than infinitealias ping='ping -c 3'
mkdir
# Make directory and parent directories, and output which directories have been createdalias mkdir="mkdir -pv"
flushdns
# Flush DNS cachealias flushdns='sudo systemd-resolve --flush-caches'