linux
packages
# install
sudo apt install package
# install .deb
sudo dpkg -i file.deb
# update
sudo apt update && sudo apt dist-upgrade
# purge orphans
sudo apt purge `deborphan`
# view installed packages
sudo apt list --installed
# view upgradeable packages
sudo apt list --installed
imagemagick
# resize image to 400px width
mogrify -resize 400x image.jpg
# desaturate image
convert image.jpg -colorspace Gray image.jpg
# dithering
convert image.jpg -dither FloydSteinberg -colors 8 dithered.jpg
ffmpeg
# clip a video (works on audio too)
ffmpeg -i video.mp4 -ss 00:01:10 -to 00:01:30 -c copy clipped.mp4
random
See the top 10 most used commands from your history
history 0 | awk '{print \$2}' | sort | uniq -c | sort -n -r | head
Find duplicate files
fdupes -r ./
resources
- ArchWiki — a great resource even for a Debian user
- ImageMagick Command-line Processing — I haven’t had to use many of their features but ImageMagick can do a lot