Linux cheatsheet

Search for directories and run getfacl for them: find . -type d -exec getfacl -t ‘{}’ ‘;’

Ping with don’t fragment bit set, packetsize 1472: ping {ip} -M do -s 1472

Ping with timestamp, redirect to file: ping {ip} -M do -s 8972 | while read pong; do echo “$(date): $pong”; done > pinglog.txt

Run command each <interval> seconds and output to stdout: watch –n 1 nfsstat –c (here with nfsstat)

Leave a Reply