
One-liners
$ telnet towel.blinkenlights.nl
$ echo "text" | pv -qL 10
$ du -h . | sort -hr | head -20
$ tar czf backup.tar.gz directory/
$ < /dev/urandom tr -dc A-Za-z0-9 | head -c 32; echo
$ find . -type f -size +100M
$ rsync -ah --progress src dest
$ sshfs user@host:/remote /local
$ command -v cmd >/dev/null && echo yes
$ tar cjf archive.tar.bz2 dir/
$ convert -delay 10 -loop 0 *.png animation.gif
$ sed -i 's/old/new/g' *.txt
$ command | xclip -sel clip
$ git branch --show-current
$ find . -mtime +30 -delete
$ find . -type d -empty -delete
$ upower -i $(upower -e | grep BAT) | grep percentage
$ mount -t tmpfs -o size=1G tmpfs /mnt/ram
$ split -b 1G largefile part-
$ command | pv -s $(du -b input | cut -f1)
$ dd if=iso.iso of=/dev/sdX bs=4M status=progress
$ dd if=/dev/urandom of=/dev/sdX
$ dd if=/dev/zero of=test bs=1G count=1 oflag=dsync
$ for i in {1..50}; do echo -e "\e[${((RANDOM%7+31))}m✨\e[0m"; sleep 0.1; done
$ find . -type l -! -exec test -e {} \; -print
$ ruby -run -e httpd . -p 8000
$ history | awk '{print $2}' | sort | uniq -c | sort -nr | head
$ a() { case $1 in *.tar.gz) tar xzf $1;; *.zip) unzip $1;; esac; }; a file
$ gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf
$ ffmpeg -i input.mp4 output.gif
$ for f in *.txt; do mv "$f" "${f%.txt}.bak"; done
$ while true; do echo -e "HTTP/1.1 200 OK\n\n$(date)" | nc -l 8080; done

Copied to clipboard