#Disk usage
df -h
#Size breakdown of all folders in current directory
sudo du -sh * | sort -rh
#Case sensitive search
grep -Hrn "foobar"
#Case insensitive search
grep -Hrni "fooBAR"
#Pretty formatting
grep -Hrni "foobar" * --color=always | awk -F: '{print "\n"NR ": " $0}' | awk '{$1=$1};1'
#Limit to 500 characters
grep -Hrni "foobar" * --color=always | awk -F: '{print "\n"NR ": " $0}' | awk '{$1=$1};1' | cut -b 1-400
sudo find . -name "wp-content"
sudo find . -iname "Class-WP-Customize-Section.PHP"
#Display the IP address of the current device
ip a | grep eth0 | cut -d " " --fields=6 | sed '2q;d' | awk -F'/' '{print $1}'
#Other methods
dig @resolver4.opendns.com myip.opendns.com +short
(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com