ls -lah
List with sizes/hidden files
ls -lah
files
tar
Archive & extract
tar -czf backup.tgz /etc # create
tar -xzf backup.tgz # extract
archive
rsync -av --progress
Copy/sync efficiently
rsync -av --progress src/ dest/
copy
scp / sftp
Secure copy / file transfer
scp file user@host:/path
sftp user@host
copyssh
sed -n / awk
Stream editing & reports
sed -n '1,50p' file
awk -F, '{sum+=$3} END{{print sum}}' data.csv
text
cut | sort | uniq -c
Slice, sort, de-dup with counts
cut -d, -f2 file.csv | sort | uniq -c | sort -nr
text
xargs
Build cmds from stdin
find . -name '*.log' -print0 | xargs -0 rm -f
shell
locate / updatedb
Fast filename search (DB)
sudo updatedb
locate nginx.conf
search
sha256sum
Checksum verification
sha256sum file.iso
integrity