Skip to main content

Command Palette

Search for a command to run...

Basic Linux Commands

Updated
2 min read
Basic Linux Commands
R

Hi there! 👋 I'm Ritik Gupta, a passionate tech enthusiast and lifelong learner dedicated to exploring the vast world of technology. From untangling complex data structures and designing robust system architectures to navigating the dynamic landscape of DevOps, I aim to make challenging concepts easy to understand. With hands-on experience in building scalable solutions and optimizing workflows, I share insights from my journey through coding, problem-solving, and system design. Whether you're here for interview tips, tutorials, or my take on real-world tech challenges, you're in the right place! When I’m not blogging or coding, you can find me contributing to open-source projects, exploring new tools, or sipping on a good cup of coffee ☕. Let’s learn, grow, and innovate together!

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.

More from this blog

ritik gupta blogs

29 posts

Software Engineer Talks about Development, Cloud, and DevOps..