nmap commands
nmap --reason 192.168.1.1
nmap --packet-trace 192.168.1.1
nmap --iflist
find name of glibc's dynamic linker
readelf -l /bin/bash | grep interpreter
get urls from website
lynx -dump -listonly
http://www.linuxfromscratch.org/lfs/.../packages.html
download all urls from website
lynx -dump -listonly -nonumbers
http://www.linuxfromscratch.org | xargs -n1 wget
or
lynx -dump -listonly -nonumbers
http://www.linuxfromscratch.org | egrep '(\.xz|\.bz2|\.gz|\.tar)' | xargs -n1 wget
debug filesystem
debugfs
make multiple directories
mkdir somedirectory/{this that other}
dd with progress
dd if=/dev/zero | pv | dd of=/dev/somedrive
repeat last command but change word1 to word2
^word1^word2^
remove trailing date from sql files
for f in *.sql; do
mv -- "$f" "${f%%-*}.sql"