Basic Linux commands ( FOR REDHAT )


Hi Guys....i am presenting this posts for those who new to Linux  :-) . Actualy Linux is very intersting Operating system which is available in market for free of cost . yes its true there is no need to buy any licence for Linux.

So Let's get start.................................................................


1) General Purpose utilities :-

# cal   Command to see calender for any specific month or a complete year
         Usage: cal [ [month] year]

      $ cal april 2009
      
       April 2009
Su  Mo  Tu  We  Th  Fr  Sa
                    1     2   3    4

5     6     7     8    9   10  11 
12  13   14    15  16  17  18
19  20   21    22  23  24  25
26  27   28    29  30




# echo   Prints message on the terminal  
         usage : echo “<message>”

 $ echo "Welcome to the workshop"
       Welcome to the workshop



# who  command tells you the users currently logged on to the system 
          Usage : $  who

srihari pts/0 2009-04-15 11:58 (:10.129.41.3)
nithin pts/1 2009-04-15 16:09 (:10.129.20.5)
avadhut pts/2 2009-04-13 14:39 (:10.129.45.20)
anil pts/3 2009-04-13 16:32 (:10.129.23.45)



2) Linux file system :-


First let see file structure in Linux :-

 1) Standard directory structure 

     / - the topmost  ( / means where the file system is stored like C: in windows )
     /dev - all the devices are accessible as files
     /var -
“variable” data such as mails, log files, databases
     /usr -
almost all the packages installed
     /etc -
configuration files
     /home -
home directories for all the users
     /root -
home directory of the privileged user root
    /mnt -
used to mount other directories/partitions.



#  rm  it is used to delete files
                                 &
 # rm -r it is use to delete directorys  recursively
          usage : $ rm -r /root/folder




 #  mkdir  it is used to create directory (folder)

            usage : $ mkdir /etc/folder


#  touch   it is used to create files   
            usage : $ touch /root/temp



LETS SEE A IMAGE ABOUT >>HOW TO EXECUTE ABOVE COMMANDS 






















Hope that you find this commands usefull ...if you have any quiry then you can mention it in comments of this post......... .
                               
                                        ***********THNX************




No comments:

Post a Comment