Here In this article i want to give you some knowledge about the command used in unix operating system.This is totally different from other operating system.Unix operating system only work with command .It does not take direction by mouse.Now let us discuss some of the command in unix operating system.


Commands 

 1. Cal :- This command is used to print a cyclender.
     Syntex:-
          Cal [[ month] year ]
          Where year must be between 1 and 9999 and month must be in between 1 and 12.
    Example :-
        $ Cal jan
        $ Cal 2005 
..................................................................................................................................................
2. Date:-This command is used to display system date and time.
    Syntax:-
        Date [ +format ]
        Some format are as follws:-
         +%m - Specifies month number.
         +%h - Specifies the abbreviated month such as jan - dec.
         +%d - Specifies day of the month ( 1 to 31)
         +%D - Specifies the date as mm/dd/yy.
      Example:-
           $Date + %D
            It display date as 12/27/10.
................................................................................................................................................

3.BC:- This command is used to invoke a calculator.
   Syntax:-
        Bc
        Simple addition , subtraction , multiplication and division can easily done by using this command.
   Example:-
      $bc         Type bc and then press enter.
      10+40     Type arithmetic expression and the press inter.
       40          The answer is display in unix prompt.
.......................................................................................................................................................
 
4. Spell:- This command is used to chech spelling ad error in unix prompt.
     Syntax:-
        Spell [ file ]
            Where file is the name of the file to be checked.
    Example:-
       $ Spell crickete
        It give right spelling of cricket.
       $ Spell mohit
       It give all the list of the spelling error in file named mohit.
..........................................................................................................................................................
5.  Cat:- This command is used to display the content of the file.It is also used to create smaller file in unix.
    Syntax:-
       Cat [ -v ] filename
       The cat command is used to display content of the file as well as it is also used to create smaller file.
    Example:-
      $ Cat Mohan.txt
      It display content of the file name mohan.
      $ Cat > Mohan2
      Above command create a file name Mohan2.
............................................................................................................................................................
6.Cmp :- This command is used to compare two file in unix.
     Syntax:-
       Cmp [ -i ] file1 file2
       This command compare two files of any type and able to give standard output .
   
    Example:-
        $ Cmp Fruits3
             Apple
             Mango
             Orange    
       $ Cmp fruits5
             Apple
             Grapes
             Orange
       $ Cmp fruits3 fruits5
         This syntex will compare between the two file given above and give result according to that comparision.
..............................................................................................................................................................
7. Cp :- This command is used to copy a file from one place to another place.
     Syntex:-
        Cp [ i ] [- R ]  source target.
       Example:- 
        $ Cp sohan2 sohan3
        This command will copy the content of sohan2 to another file name sohan3.
...............................................................................................................................................................
8. rm :- This command is used to removes unwanted file and directories.
    Syntex:-
       rm [ - ifrR ] File
       rm command must used with caution because a file that is deleted cannot come back by any means.
    Example:-
      $ rm kite
      This command is to remove the file kite . 
...............................................................................................................................................................
9. mv :- This command is used to move or rename a file or directories.
    Syntax:-
       mv [ - i ] Source target
    Example:-
     $ mv rohit mohit
     This command rename a file from rohit to mohit.
..................................................................................................................................................................
10.Comm :- This command is used to findcomman lines or word between the two word or two files.
    Syntax:-
      Comm [ 123 ] file1 file2
    Example:-
       $ comm fruits3  fruits5
       This will give the similar word betwwen both of the file.
       Apple , Mango , Grapes. 

     

 

 

       

           

 


Like it on Facebook, Tweet it or share this article on other bookmarking websites.

No comments