5 essential commands in Linux

terminal image

Everyone who has ever worked with Linux knows that the best way to get the most out of it is with the command console. The console allows you to control practically the entire operating system, as long as you know the essential commands.

If you are a newbie in the world of Linux and do not know these commands, today I bring you the 5 most useful commands in Linux, Essential commands you won't be able to do without.

Sudo

The first command we have in the list it's the famous sudo, a simple word that if preceded by any command, will execute it with administrator privileges.

sudo

Ls

When we are browsing folders and directories in the console, we need a command that tells us the content of the folders, to know where we are. This is done by the ls command, a command that we say is the equivalent of the Windows dir.
ls (show simple listing)

your code here

Ls -l (show list with details of each file such as size, permission or date).

your code here

Male

Many times we are executing a command and we have forgotten the syntax and the usefulness of each option. That's what the man command is for, a command that if placed in front of any command, will get you a complete manual from this.
Get a manual of the nano command

man nano

Essential commands to use package managers (apt, pacman ...)

In the Linux command console we will always be installing and updating packages, especially if we are managing a system. For this, so-called package managers are used, which are used with certain commands that we must know by heart. I am going to explain the commands of the two best known, apt-get (Ubuntu and Debian) and pacman (Arch Linux and Manjaro).
Update with apt-get

apt-get update
apt-get upgrade

Install dhcpd package with apt-get

apt-get install dhcpd

Install dhcpd package with pacman

pacman -S dhcpd

Update system with pacman (widely used in rolling release distributions)

pacman -Syu

Nano (text file editor)

If you are a linux system administrator, you will know that you always have to be modifying configuration files, in which we have to modify lines to adapt them to our needs. This can be done easily from the command line with the nano program, the most comprehensive command text editor available. To run it, we just have to type nano followed by the file path.
Edit the linux network configuration file

nano /etc/network/interfaces

Leave a Comment

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

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.