Linux Basic Commands


 mkdir         make directories                                                                 
                 Usage: mkdir [OPTION] DIRECTORY...                               
                 eg. mkdir hacknology

        ls             list directory contents                                                                 
                 Usage: ls [OPTION]... [FILE]...                                               
                                                                   eg. ls, ls ­l, ls hacknology

         cd           changes directories                                                                    
                Usage: cd [DIRECTORY]                                                        
                eg. cd hacknology

pwd ­         print name of current working directory                               
                Usage: pwd

tar            to archive a file                                                                       
                 Usage: tar [OPTION] DEST SOURCE                                    
                 eg. tar ­cvf /home/archive.tar /home/original                            
                  tar ­xvf /home/archive.tar



zip            package and compress (archive) files                                    
                Usage: zip [OPTION] DEST SOURSE                                    
                eg. zip original.zip original

unzip        list, test and extract compressed files in a ZIP archive     
                 Usage: unzip filename
                 eg. unzip original.zip

reboot     reboot the system                                                     
                Usage: reboot [OPTION]                                                 
                     eg. reboot                                                              

poweroff       power off the system                                           
                     Usage: poweroff [OPTION]
                     eg. Poweroff

mount            mount a file system                                                  
                     Usage: mount ­t type device dir                                          
                     eg. mount /dev/sda5 /media/target
  
 unmount –  unmount file systems                                             
                    Usage: umount [OPTIONS] dir | device...                          
                     eg.  umount /media/target    
Previous
Next Post »