Posted on

Ubuntu command prompt

    1. list of directory
      ls
      ls -a
      

  1. change a directory
    cd .
    cd ..
    cd ~
    cd <path>
    
  2. current path
    pwd
    
  3. create a dir
    mkdir
    
  4. remove dir/file
    rm [-r -f]
    
  5. like admin
    sudo <...>
    
  6. move/rename
    mv <source> <dest>
    
  7. content of file
    cat <filename>
    
  8. manual
    man <command>
    
  9. copy
    cp <source> <dest>
    
  10. download
    wget <url>
    
  11. shutdown
    shutdown
    
  12. restart
    restart
    
  13. apt-get
    sudo apt-get [install] [remove] [update] [upgrade]
    
Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.