Aliases are one of those things that follow you, from laptop to laptop, and server to server—like snippets of your educational DNA.
Here are some of mine that have followed me for two decades:
$ alias f="find . -name"
You can do this with a utility, but I like using built-in tools as much possible.
$ alias bt="wget http://cachefly.cachefly.net/400mb.test > /dev/null"
$ alias gip="curl ipinfo.io/ip && curl ipinfo.io/org"
ncat is the nc equivalent within the nmap suite.
$ alias nc="ncat"
$ alias s="du -hs * | sort -rh | head -5"
$ alias np="openssl rand -base64 24"
A more secure version using urandom.
Get a weekly breakdown of what's happening in security and tech—and why it matters.
$ alias sp="echo -n `python -c ‘from os import urandom; print(urandom(32).hex())’`"
$ alias grep="grep –color=auto -n"
$ alias hs="history | grep –color=auto -n"
Sorry for the immature language. It’s funny; get over it.
$ alias fucking="sudo"
$ alias isaid="sudo"
I also use zsh instead of bash.