| 
                    Question                   | 
                
                    Answer                   | 
            
        
        | 
     start learning
 | 
 | 
    
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      -l long listing (ls -l),-al (ls -al) Listing With Hidden Files  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      grep PATTERN [FILE], grep failed auth. log  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      Forward slashes instead of backward, cd /var/log  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      Safely turn off the computer in software     sudo shutdown 2 (turn off in 2min), -r restart, -c cancel or ctrl+c  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      Displays the current working directory path     Useful when changing directories often  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      Change a user account password   
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      mv first. txt second. txt  
 | 
 | 
 | 
      cp first. txt second. txt   start learning
 | 
 | 
    
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      Remove files or directories     Does not remove directories by default, -r (removes directory)  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
    
 | 
 | 
 | 
      r=read, w=write, x=execute   start learning
 | 
 | 
      Change mode of a file system object     chmod mode FILE, chmod 744 script. sh  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      Change file owner and group     sudo chown [OWNER: GROUP] file, sudo chown professor script. sh  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      View or change wireless network configuration   
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      View or configure a network interface and IP     Slowly being replaced by ip (ip address)  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      View the current processes     ps -e | more (View all processes)  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      Some command require elevated rights     There are some things normal users can’t do  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      You continue to be that user until you exit  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      Execute a command as the super user     Only that command executes as the super user  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      Advanced Packaging Tool (Install, update, remove)     sudo apt-get install wireshark  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      Full screen editing with copy, paste, and more  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      Backup and restore an entire partition     dd if=<source file name> of=<target file name> [Options]  
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      dd if=/dev/sda of=/tmp/sda-image. img   
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      dd if=/tmp/sda-image. img of=/dev/sda   
 | 
 | 
 | 
| 
     start learning
 | 
 | 
    
 | 
 | 
 | 
| 
     start learning
 | 
 | 
      kill an app with one click  
 | 
 | 
 |