Basic Linux Commands

Basic Linux Commands

In this blog, I'm going to list the basic Linux commands everyone should know about.

What is a shell?

A shell in Linux is the command line interface that will take all my commands as input, give them to the operating system to process, and also show the output.

Basic Linux commands

  1. ls

    The ls command is used to list files. ls on its own lists all files in the current directory except for hidden files.

    to list down the hidden files ls -a is used.

  2. mkdir

    Creates a directory or subdirectory mkdir <dir name>

  3. cd

    cd stands for change directory. this command is used to change the current working directory.

  4. pwd
    Print working Directory - It prints the path of the working directory, starting from the root.

  5. cat

    Cat(concatenate) command is very frequently used in Linux. It reads data from the file and gives their content as output.

  6. touch

    to create a new file touch <filename> is used.

  7. cp

    copy command used to make the copy of the file.

  8. mv

    move file from one location to another.

  9. rm

    deleting a file from a directory.

  10. man

    man command in Linux is used to display the user manual of any command that we can run on the terminal.

Did you find this article valuable?

Support Ritik Gupta Blog's by becoming a sponsor. Any amount is appreciated!