Friday, March 30, 2018

Basic Linux Commands

There is the basic linux command and it's operation

  • ls – List

    ls lists the contents (files and folders) of the current working directory.

  • mkdir – Make Directory

    mkdir makes (or creates) a new directory.

  • pwd – Print Working Directory

    pwd prints the current working directory.

  • cd – Change Directory

    cd sets the given folder (or directory) as the current working directory for the current running session of the terminal

  • rmdir – Remove Directory

    rmdir removes (or deletes) the given directory.

  • rm – Remove

    rm removes the given file or folder. You can use rm -r to delete folders recursively.

  • cp – Copy

    cp copies the file or folder from one location to another location. You can use its cp -r option to copy folders recursively.

  • mv – Move

    mv moves a file or folder from one location to another location.

  • help

    --help lists all the available commands in the terminal. You can use ‘-h’ or ‘–help’ (help has two hyphens here) option with any command to get help for that specific command.

  • man – Manual

    man shows the manual page for the given command.

  • who – Who Is logged in

    who shows the list of currently logged in users.

  • exit

    exit ends the current terminal (bash) session.

  • shutdown

    shutdown shuts down your computer. You can use shutdown -r to restart your computer.


You can refer this screenshots to get best understand of above commands




$ man ls

No comments:

Post a Comment