Tuesday, 31 August 2010

Monday, 30 August 2010

Saturday, 28 August 2010

Friday, 27 August 2010

How to Check the spelling of the contents of the file

To check the spelling of the content of the specified files.

    $ ispell files

Monday, 23 August 2010

How to display all background jobs

To Display all background jobs.

    $ jobs

How to load a module dynamically

Dynamically loads the specified module .It requires root privileges

    $ insmod module

Friday, 20 August 2010

How to display the name of the host

To display or sets the name of the host


    $ hostname
    $ hostname name

Thursday, 19 August 2010

How to print the first several lines of the file

To print the first several lines of each specified file.

    $ head filename

Wednesday, 18 August 2010

Make a pdf of a manual page

make a pdf of a manual page

~$ man -t man | ps2pdf - > man.pdf

How to expand the specified files

To expand the specified files. Generally, a compressed file has the same name as the original file, followed by  . gz


         $ gunzip filename

Tuesday, 17 August 2010

How to compress the specified files

To compress the specified files,generally a compressed file has the same name as the original file, followed by . gz

          $ gzip files

Monday, 16 August 2010

How to format the media inserted in the specified drive

To format the media inserted in the specified floppy disk drive. The command performs a low-level format only. it does not create a filesystem. To create a filesystem, issue the mkfs command after formatting the media.

    $ fdformat device

Sunday, 15 August 2010

How to search the specified files for text matching

To search the specified files for text matching the specified pattern  and print matching lines. The -i option specifies that matching is performed without regard to case. The -n option specifies that each line of output is preceded by the file name and line number. The -v option reverses the matching, causing non-matched lines to be printed.





    $ grep pattern files
    $ grep -i pattern files
    $ grep -n pattern files
    $ grep -v pattern files

How to open a FTP connection to the specified host

To open a FTP connection to the specified host


  $ ftp hostname

Thursday, 12 August 2010

Monday, 9 August 2010

How to search the specified path for files with specified pattern

To search the specified path for files with names matching the specified pattern (usually enclosed in single quotes) and prints their names.

    $ find path  -name pattern  -print

How to run a jar file ?

 To run a jar file

$ java -jar filename.jar

Wednesday, 4 August 2010

Brings the current jobs to the foreground.

To bring the current job (or the specified jobs) to the foreground.

    $ fg
    $ fg job