Commands
DNS
dig domain.tlddig @ns.server.tld domain.tld: ask ns.server.tld to know domain.tld dns informationsdig -x XXX.XXX.XXX.XXX: domain reverse
Network
netstat -atnpu: port stats
GPG
gpg -c file.txt: encrypt file.txt with a passphrasegpg -d file.txt.gpg: decrypt file.txt.gpg file with the passphrase
Compression
tar cfz archive.tar.gz target_dir_or_file: archive and compress file or directory into tar.gztar xfz archive.tar.gz /path/to/unarchive: unarchive a tar.gz file
Borg Backup
borg info 'REPOSITORY::ARCHIVE': get archive infosborg export-tar 'REPOSITORY::ARCHIVE' backup.tar.gz: download an archive
Sources:
- https://www.cyberciti.biz: nixCraft website