Posted on Leave a comment

Ubuntu command prompt

    1. list of directory

      [code language=”java”]
      ls
      ls -a
      [/code]

  1. change a directory

    [code language=”java”]
    cd .
    cd ..
    cd ~
    cd <path>
    [/code]

  2. current path

    [code language=”java”]
    pwd
    [/code]

  3. create a dir

    [code language=”java”]
    mkdir
    [/code]

  4. remove dir/file

    [code language=”java”]
    rm [-r -f]
    [/code]

  5. like admin

    [code language=”java”]
    sudo <…>
    [/code]

  6. move/rename

    [code language=”java”]
    mv <source> <dest>
    [/code]

  7. content of file

    [code language=”java”]
    cat <filename>
    [/code]

  8. manual

    [code language=”java”]
    man <command>
    [/code]

  9. copy

    [code language=”java”]
    cp <source> <dest>
    [/code]

  10. download

    [code language=”java”]
    wget <url>
    [/code]

  11. shutdown

    [code language=”java”]
    shutdown
    [/code]

  12. restart

    [code language=”java”]
    restart
    [/code]

  13. apt-get

    [code language=”java”]
    sudo apt-get [install] [remove] [update] [upgrade]
    [/code]

Leave a Reply

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