Monthly Archives: August 2009

Print the exact contents for a file

If you want to print the exact contents of a file (the white spaces, the new lines), use this command: more file_name | od -c

Tagged , | Leave a comment

Count number of lines in a text file

wc -l file_name

Tagged , | Leave a comment

Extract Lines From a Text File

“sed -n 2,4p file_name” extracts lines from 2 to 4 from that file

Tagged , | Leave a comment

How to compress using bzip2 without deleting the original file

bzip2 deletes the original file and replaces it by the compressed one, and to stop it from doing that use the “-k” option as follows: “bzip2 -k file_name“

Tagged | Leave a comment

XFCE 4.6, an amazingly fast – yet good-looking – Desktop Environment For Linux

I was always using GNOME as my default Desktop Environment in Ubuntu (which comes by default), and I have tried many others such as KDE, XFCE …etc), and I always admired GNOME the most as it has a good balance … Continue reading

Tagged , | Leave a comment