Month: June 2008

Create ISO Image of a Folder

Create an iso image of a directory mkisofs -J -allow-leading-dots -R -V “Label CD” -iso-level 4 -o ./cd.iso data_cd

Uncompressing a BZ2 File

Decompress a file called ‘file.bz2’ bunzip2 file.bz2

XMLStarlet

Using XMLStarlet… curl -s ‘http://bashcurescancer.com/rss/’ | xml sel -t -m ‘//link’ -v ‘.’ -n http://bashcurescancer.com http://bashcurescancer.com/processing-xml-on-the-command-line.html http://bashcurescancer.com/do-not-close-stderr.html http://bashcurescancer.com/prepend-to-a-file-with-sponge-from-moreutils.html http://bashcurescancer.com/bug-in-curl-is-fixed.html http://bashcurescancer.com/using-kill-to-see-if-a-process-is-alive.html…

My KMix Settings

This kmix setting will setup your microphone for recording. I got it thru trial and error – its not perfect…

Compare contents of two files

Compare contents of two files by deleting only unique lines from ‘file1’ comm -1 file1 file2

Create Compressed Tarball

Create a compressed tarball tar -czf archive.tar file_name

Text type convert

Convert a text file format from MSDOS to UNIX dos2unix input_file output_file

Script to Convert FLV to AVI

This will convert a flv file to a avi file. I got this off linux.com. It uses mencoder – so…

Building an RPM from a Spec File

Use this command to build an RPM if you have a Spec File rpmbuild -ba SPEC_FILE

Show routing table

show routing table route -n