Skip to content

Instantly share code, notes, and snippets.

Shell scripts and one liners

Snippets, tips and tricks in no particular order. FOR ADVANCED USERS ONLY. Some of these one liners may be dangerous since they might delete files in loops. Please pay attention and make backups. :-)

rsync examples

Usage:

rsync --verbose --archive --recursive --checksum --prune-empty-dirs --stats --human-readable --safe-links source-path user@server:/destination-path/
cat /etc/edition
cat /etc/issue
cat /etc/*-release
cat history
cat .cache/
cat .bashrc
cat /proc/version
uname -a
dmesg |grep Linux
ls /boot |grep vmli
cat /etc/edition
cat /etc/issue
cat /etc/*-release
cat history
cat .cache/
cat .bashrc
cat /proc/version
echo "You have a cute little file called infoz from g11tch, check there
for all your post exploitation lulz"