Essential Linux Commands Cheat Sheet

Table of Content
    Add a header to begin generating the table of contents
    We've curated list of essential Linux commands based on different categories such as file management
      Add a header to begin generating the table of contents

      While some users might find using Linux difficult, learning some basic and essential Linux commands and understanding their use can turn out to be very helpful.

      This article aims to provide you with a cheat sheet of commonly used and essential Linux commands.

      What is Linux OS?

      Linux is a family of operating systems developed by Linus Torvalds and it was released on September 17, 1991. It is a Unix-like, open-source operating system. Some of the most common Linux distributions include Ubuntu, Debian, Kali Linux, and Fedora.

      In addition to desktops and servers, Linux also offers versions for mobile phones, laptops, and embedded devices.

      Essential Linux Commands

      We highlight essential Linux commands that are useful even for beginners. Additionally, we’ve arranged the commands by their intended purpose and explained how to use them.

      File Management Commands

      Firstly, we’ll highlight the commands that are essential for file management.

      lsTo list all the files and directories present in the current directory
      cdThe change directory is used to navigate between the directories
      mkdirThe make directory command allows the user to create a new folder
      rmTo remove a file or directory
      cpTo copy files and directories
      chmodTo change mode/permissions of a file or directory
      touchTo create a new file/directory
      chownTo change the owner of a file or directory
      mvTo move files from one location to the other

      Text Management Commands

      Here, we’ve curated some essential commands for editing and organizing text files.

      catTo read the text files and their output
      grepTo search through text in files
      sedA stream editor used to edit files
      awkTo extract and scan text in files
      cutScans and extracts text from a line
      sortTo organize text in files
      uniqTo arrange data by removing duplicates
      wcTo count the number words, lines, and bytes in files

      System Management Commands

      Furthermore, we’ll discuss the commands that are essential for basic system management in Linux.

      unameTo display the system’s information including username, operating system, etc
      dfTo display the amount of disc space free or available
      topTo manage/monitor the system processes and performance
      freeTo display the amount of memory free and used in the system
      uptimeTo display the current running time of the system
      whoShows that who is currently logged into the system
      wTo display the list of users currently logged into the system along with their details

      Network Management Commands

      Now, we’ll briefly discuss the commands that aid in managing the system’s network.

      pingTo check the network connectivity between the two devices
      ipTo check the IP address of the device
      ssUsed in troubleshooting and detecting malicious activities
      if configTo display the parameters of the network
      tracerouteTo troubleshoot network routing issues by tracing the path

      Process Management Commands

      Adding to the list, let’s list some of the process management commands.

      killTo kill/terminate the processes
      psTo monitor the process status running in the system
      jobsTo display the current processes
      bgTo resume a previous job
      fgTo bring the background job to the foreground and directly interact with it
      niceTo run a command at a lesser priority than the normal priority
      reniceTo change the priority of a process that is already running

      Disk Management Commands

      Furthermore, we’ll discuss some disk management commands that allow the user to manage the hard disk and its tasks.

      fdiskUsed for partitioning a hard disk in the system
      mkfsTo make a file system or storage device on the system
      mountTo mount and add a file system
      umountTo unmount an already added file system
      ddTo convert and copy data

      User Management Commands

      Lastly, we’ll discuss the commands that allow user management within the system. The user management includes the password and username controls.

      passwdTo change the password of the system’s user
      useraddTo add/create a new user
      groupaddTo create a new group
      groupmodTo modify an existing group
      usermodTo modify an existing user of the machine

      Conclusion

      To sum up, this article has highlighted all the essential and daily use Linux commands and their purposes. The aforementioned commands are essential for a beginner-level user. While it may be difficult to learn all of them at once, the more you use these commands, the easier it becomes to remember them. Moreover, you can bookmark this article to revisit it whenever you need to check the purpose of any command.

      Latest Post

      Contents
        Add a header to begin generating the table of contents
        We've curated list of essential Linux commands based on different categories such as file management
        Latest Post
        Do You Enjoy My Blog

        Supports from reader you like keeps this blog running. By a cup of coffee for me , its a affordable way to show your appreciation

        Previous Post
        ABOUT THE AUTHOR
        Maryam Nasir

        I'm currently pursuing my Bachelor's degree. Alongside my studies, I specialize in jotting down my knowledge about Linux by effectively and practically using my hobby of writing.

        Scroll to Top