Skip to content

Instantly share code, notes, and snippets.

@travelhawk
Last active September 22, 2020 12:50
Show Gist options
  • Save travelhawk/80ef42f1084bd52f4598fa68dc7cf4d1 to your computer and use it in GitHub Desktop.
Save travelhawk/80ef42f1084bd52f4598fa68dc7cf4d1 to your computer and use it in GitHub Desktop.
# basics
alias lt="ls --human-readable --size -1 -S --classify"
alias mnt="mount | awk -F' ' '{ printf \"%s\t%s\n\",\$1,\$3; }' | column -t | egrep ^/dev/ | sort"
alias hgrep="history|grep"
alias cpuinfo="cat /proc/cpuinfo"
alias latest="ls -t -l"
alias count="find . -type f | wc -l"
function cl() {
DIR="$*";
# if no DIR given, go home
if [ $# -lt 1 ]; then
DIR=$HOME;
fi;
builtin cd "${DIR}" && \
# use your preferred ls command
ls -F --color=auto
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment