List of useful shell aliases and CLI tools

#+ ### Download a whole website with wget

alias mirrorweb='wget –mirror –page-requisites –adjust-extension –convert-links '

### Download a whole website with wget over Tor

alias mirrorwebtor='torsocks wget –mirror –page-requisites –adjust-extension –convert-links '

### Download audio from Youtube/Soundcloud/et c.

alias dlmp3='yt-dlp –embed-thumbnail –audio-format mp3 –audio-quality 0 –extract-audio –add-metadata'

### Compress data with "ultra"-settings with 7zip

I stole this one from the 7z(1) man page. The first argument is the name of the archive. Everything after that is the content of the archive.

alias compressmax='7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on'

### Generate passwords from /dev/urandom

alias genpasswd='tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 30 | head -n 1'

### Finding the exact video snippet, where an anime screenshot is from

Of course I didn't invent this, but I stole it from this Anon: https://desuarchive.org/g/thread/104593576/#104594496. I put it here for archival reasons.

curl -sS –data-binary @shot.jpg https://api.trace.moe/search | jq '.result[0].video' | xargs -I@ -n1 curl -sSO '@&size=l'

### List all manually installed packages on Debian

alias manualapt='apt list –manual-installed'

Date: 2025-05-11