Commands

From Trisquel Enhancement Project
Jump to: navigation, search
Compress audio files[edit]
find INPUT -type f -execdir flac --output-prefix=OUTPUT/ --best {} \;
Compress files/folders[edit]
7zr a -mx=9 OUTPUT.7z INPUT
Create .sfv checksum[edit]
mv `cfv -rrC INPUT|sed s/:.*//` OUTPUT.sfv
Create checksum file[edit]
find INPUT -type f -exec md5sum {} \;>OUTPUT.md5
Dump audio from DVD-Video[edit]
mplayer dvd:// -dvd-device INPUT -dumpaudio -dumpfile OUTPUT
Dump audio from DVD-Video to .wav[edit]
mplayer dvd:// -dvd-device INPUT -vo dummy -ao pcm:file=OUTPUT.wav
Dump audio from video file[edit]
ffmpeg -i INPUT -vn -acodec copy OUTPUT
Open Root Trash[edit]
gksu dbus-launch nautilus trash:/ &
Purge configuration files[edit]
sudo apt-get purge `dpkg -l|grep ^.c|cut -d' ' -f3`
Record live stream[edit]
while :;do wget URL;done
Split files/folders[edit]
7zr a -mx=0 -vSIZE OUTPUT.7z INPUT
Test .flac files[edit]
find INPUT -name *.flac -exec flac -t {} \;