Oneliners

What is this?

What it says in the title but also commands that doesn’t necessarily warrent their own wiki page. Do also have a look at Bash page as there is some overlap between the two

Hosting shell oneliners until i find a more suitable place

man -t bash | ps2pdf - bash.pdf
mpv playback of stream
mpv -fs --really-quiet --ytdl-format High http://twitch.tv/dreamhacksc2
rsync running system
rsync -aAXHv --progress --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /* /path/to/backup/folder
grab a local copy of page :
wget -p -k http://ExampleSite.com
Find all files and create sha256
find $DIR -type f -print0 | xargs -0 sha256sum > $OUTPUT.sha256
extract urls from a file
egrep -ie "<*HREF=(.*?)>" index.html | cut -d "\"" -f 2 | grep ://

Image Metadata scrubbing

pacman -S perl-image-exiftool
exiftool -all= image.ext

ffmpeg

see ffmpeg page

execute command and return tmp filename as std output

<() It’s a shell feature to execute a command and return a temporary filename to its standard output. For example, if you want to diff the output of two commands, you can do it with:

diff <( command1 ) <( command2 )

sort

sort -h can sort human readable output like du -h

extract urls from a file

egrep -ie "<*HREF=(.*?)>" index.html | cut -d "\"" -f 2 | grep ://

Recursively list files by size

find . -type f -print0 | xargs -0 du -h | sort -hr

Last modified: Sat Apr 19 17:30:18 2025