Last active
September 22, 2020 12:50
-
-
Save travelhawk/80ef42f1084bd52f4598fa68dc7cf4d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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