git diff --name-only HEAD~1 HEAD
find /opt/asmslog/159/ /opt/asmslog/163/ /opt/asmslog/165/ -name 'asms-2019-05-08.log' | xargs grep -E '执行XE失败'
find ./ -newermt "2019-05-31 17:08:00" -not -newermt "2019-05-31 17:09:00" | xargs grep -E 'CTU' | grep -E 'PEK' > /tmp/log.txt
ubuntu-linux-find-files-between-specific-times
lsof -Pan -p PID -i
List ports a process PID is listening on (preferably using iproute2 tools)
locate -b '\AsmsBookOrderController.class'
locate command for searching exact filename only
du -ah --max-depth=1 | sort -h
du -sh -- * | sort -h
how-do-you-sort-du-output-by-size
du -h --max-depth=1 | sort -h
find . -type f -exec grep -lZ FIND {} + | xargs -r0 grep -l ME
how-to-search-files-where-two-different-words-exist
find . -type f -exec fgrep -q 'myString1' {} \; \
-exec fgrep -q 'myString2' {} \; \
-exec fgrep -q 'myString3' {} \; \
-print
recursively-locate-all-files-that-have-string-a-and-string-b-using-grep
sqlplus sys/oracle@10.13.131.105:49161/xe as sysdba
nslookup example.com 208.67.222.222 # nslookup example.com using the default DNS server
dig @208.67.222.222 example.com #dig example.com using the default DNS server
troubleshooting-dns-with-dig-and-nslookup
export IP_ADDR="$(ifconfig eth0 | awk '/inet / {print $2}')"
netstat -tn src :80 or src :443