* ../

linux spellbook

the terminal feels like a alchemical mixing table. random cuncoctions of letters make the computer do cool and wacky things.

# convert video with ffmpeg ---------------------- ffmpeg -i my_video.mkv -c:v copy output.mp4 # convert pdf to image --------------------------- pdftoppm -png pdf_filename image_name # convert wav to mp3 ffmpeg -i input.wav -acodec libmp3lame output.mp3 # batch covert images to png --------------------- for file in *.webp; do ffmpeg -i "$file" "${file%.webp}.png"; done # print the size of a folder --------------------- du -sh /path/to/folder/ # merge multiple pdfs into one pdf --------------- pdfunite 1.pdf 2.pdf n.pdf out.pdf # beware, the last file is always the output file. # create a bootable usb stick -------------------- # find your usb stick sudo fdisk -l # use the dd command to write to the disk sudo dd bs=4M if=/path/to/file.iso of=/path/to/usb status=progress oflag=sync