Linux: Zipping all files recursively to different names

Hey people,

Quickly, using shell script, one can tar the required files in a folder recursively to ’.tar.gz’

for i in `ls *`; do tar czvf $i.tar.gz $i; done

# specific selection - zipping all avi movie files to specific tar

for i in `ls *.mp3`; do tar czvf $i.tar.gz $i; done

Have fun,

Sukhdeep Singh

ogv to mp4 converter (Record my desktop)


Record my desktop produces .ogv files but for uploading to youtube, I would recommend some fancy format like .mp4 or .avi.

Use this tool called ‘mencoder’ to convert the files, using command

install it using

sudo apt-get install mencoder

run it using

mencoder out.ogv -of lavf -lavfopts format=mp4 -oac mp3lame -lameopts cbr:br=128 -ovc x264 -x264encopts bitrate=1000 -o final.mp4

input ogv file = out.ogv

output mp4 file = final.mp4

Cheers Sukhi