Popular Linux commands every beginner should know

Linux commands – Explanation

Linux commands are Linux operating system utilities. An interface that receives lines of text and converts them into instructions for your computer is known as a command line.

In addition, we use the Linux terminal to run the commands. Similar to the command prompt in the Windows OS, the terminal is a command-line interface for interacting with the system. A graphical user interface (GUI) is simply a command-line application abstraction. 

List of the Basic Linux commands

  1. su / sudo command

On a Linux system, several commands require higher privileges in order to execute. These have to be executed in system administrator mode.

The shell is modified by the su command to function as a super user. You can use the sudo command if you just need to run something as the super user. This will enable you to execute the command with elevated access, and after it has finished, your rights and permissions will revert to normal.

  1. mtr command

The Linux MTR command is a powerful tool that makes diagnosing and troubleshooting network issues easy. It combines the functionality of the traceroute and ping tools to provide detailed information about the routes your traffic takes and the network’s performance along the way. By running MTR, you can quickly identify where packet losses occur and pinpoint potential trouble spots in the network infrastructure.

  1. host command

In Linux, a straightforward program called host is used for DNS lookups. It is typically used to convert a hostname to an IP address or the other way around.

  1. mv command

Linux’s mv command stands for “move.” It serves two key purposes in Linux:

  • Using this command, a file or directory can be renamed.
  •  A file or directory can be readily moved from one place to another.
  1. ipconfig command

Show the system’s IP and Mac address.

  1. dig command

You can use the dig command to find out details about different DNS records, such as host addresses, mail exchanges, and name servers. Because of its adaptability and simplicity, system administrators utilize it the most frequently to troubleshoot DNS issues.

  1. cat command

Cat is an abbreviation for “concatenate.” It’s a common multi-purpose Linux command. This command generates, displays, and copies file content to standard output.

  1. ping command

You may check if you are connected to another network device with the ping command. It is frequently used to assist in troubleshooting networking problems. Give the other device’s IP address or machine name in order to utilize ping.

  1. man command

Man pages are included with almost all Linux commands. A man or manual page is a type of documentation that describes the function of command, provides examples of how to use it, and lists the inputs it will accept.

  1. grep command

The grep command looks for lines that include a search pattern. It may also search the contents of files. When examining the alias command, we used it to browse the output of ps. Here, we’re looking for the term “train” anywhere in the current directory’s text files.

Conclusion

You are now familiar with the fundamental Linux commands. What is your next step? To put them into action and to practice your new knowledge. 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>