Notice:

Convert PDF to Text on Linux

Posted By: Eric Lin
Category: Linux - General
Tags: feisty , gutsy , hardy , linux , ubuntu
Posted Date: 2008-11-17 09:36 PM
No of Comments: 0
Clicks: 69
Some people might encounter the experience that they can't view a pdf file they want from a terminal when no GUI is available. This is when pdftotext comes in handy. This utility allows you to export a pdf file to a plain text format and view from any text editor. It also allows you to export only certain parts of the pdf file. [ Read More ]

Useful Linux Commands

Posted By: Eric Lin
Category: Linux - General
Tags: linux , ubuntu
Posted Date: 2008-11-11 09:27 PM
No of Comments: 0
Clicks: 67
I have compiled a list of useful linux commands for day to day operation.

make a pdf of a manual page

user@www$ man -t man | ps2pdf - > man.pdf


Run a low priority command

user@www$ nice <command>


Go to previous directory

user@www$ cd -


Go to dir, execute command and return to current dir

user@www$ (cd dir && command)


Make compressed archive of dir/

user@www$ tar -c dir/ | bzip2 > dir.tar.bz2


Extract archive (use gzip instead of bzip2 for tar.gz files)

user@www$ bzip2 -dc dir.tar.bz2 | tar -x


Display a calendar for a particular month year

user@www$ cal 9 2008


What date is it this friday.

user@www$ date -d fri


What day does xmas fall on, this year

user@www$ date --date='25 Dec' +%A


Convert seconds since the epoch (1970-01-01 UTC) to date

user@www$ date --date='@2147483647'


Email reminder

user@www$ echo "mail -s 'reminder' user@address.com < /dev/null" | at 20:00


Show name and version of distribution

user@www$ head -n1 /etc/issue


Show all partitions registered on the system

user@www$ cat /proc/partitions


Download url at 1AM to current dir

user@www$ echo 'wget url' | at 01:00


You can find more commands from Linux Commands - A Practical Reference.

Or more on Top 10 Best Cheat Sheets for Linux Commands [ Read More ]

Using VI while Viewing Files In More or Less

Posted By: Eric Lin
Category: Linux - General
Tags: linux , ubuntu , vim
Posted Date: 2008-11-05 08:57 PM
No of Comments: 0
Clicks: 77
When you are viewing text files using more/less command, sometimes you would like to edit that particular file directly using vi without going back to shell and fire up another command. You can do that easily by doing the following. [ Read More ]

Running Internet Explorer in Linux

Posted By: Eric Lin
Category: Linux - General
Tags: ie6 , linux
Posted Date: 2008-06-30 01:01 AM
No of Comments: 0
Clicks: 259
IEs4Linux is the simple way to have Microsoft Internet Explorer running on any Linux which runs Wine. All you need is one script to setup different versions of IE on your machine. It’s free and open source and will be very useful for designers and web developers to test their applications in the legacy browsers. [ Read More ]