What is Linux?

Linux is a family of open-source operating systems that are based on the Linux kernel, first released on 09/17/1991 by Linus Torvalds. You can find the Linux OS packaged into distributions that include the kernel and supporting system software, libraries, and packages. Linux is a popular and versatile operating system that powers many devices, from personal computers to servers, smartphones, and other embedded systems. 

Linux is an open-source operating system, which means that anyone can access, modify, and distribute its source code. The source code is the set of instructions that tells the computer how to operate. Popular distributions include AlmaLinux, RockyLinux, Ubuntu, Arch Linux, RedHat, Debian, CloudLinux, and CentOS among many others. 

Ubuntu System Output Shown by the Neofetch package

 

How Does Linux Work?

The Linux operating system consists of two main components: the kernel and the user space. The kernel is the core of the system that manages the CPU, memory, and peripheral devices and is the only part of the system that is called “Linux”. The user space is the part of the system that contains the programs, tools, and services that the user interacts with. The space includes a graphical server, which displays the graphics on the monitor, and a desktop environment, which provides a user interface with icons, menus, and windows.

One of the unique features of Linux is that it is modular and customizable. Unlike other operating systems that come as a fixed package, Linux allows users to choose and install different components according to their needs and preferences. For example, users can choose from various desktop environments, such as GNOME, KDE, Xfce, etc., or use a command-line interface instead. Users can also install different applications and utilities from various sources.

 

What is a Linux SuperUser?

A superuser is a user who has the highest level of access and privileges on a computer system. This user can perform any task, modify any file, install any software, and change any setting on the system along with being able to create, delete, and manage other users and their permissions. A superuser is also known as a root user in a Linux environment. The name may vary depending on the operating system or the software. For example, on Linux and Unix systems, the superuser is usually called root, while on Windows systems, the superuser is usually called administrator.

 

whoami command to show who is the currently logged user

groups command to see which group does the root user belongs to

 

Being a superuser gives you complete control over your system. You can customize it to your liking, install any software you want, fix any problem you encounter, and access any data you need. You can also perform advanced tasks that require superuser privileges, such as backing up your system, managing network settings, configuring security features, monitoring system performance, and pushing for system updates.

Taking actions that can only be performed by a SuperUser/root, will display the following messages or will be met with your actions failing.

 

Attempting to run commands without being root or in the sudoers/root group

 

To gain access to the root user, you will need to use the sudo command, which is a Linux command that allows a user to execute a command with elevated privileges temporarily, as shown in the example below.

 

Running the apt command using sudo for elevated privileges

 

In the previous example, despite using sudo I was still met with an error. That is because whichever user is trying to run a command with elevated privileges must be part of the group that allows such actions.  

To add a user to the sudoers/root group, you can use the command usermod -aG sudo <username> once you have logged back into the server as the root user.

 

Adding the user “pascal” to the sudo group for escalated privileges

 

Once that is done, you can then use sudo to run commands with elevated privileges such as done below where I was attempting to update the package manager and was met with a password prompt.

 

Being able to update the system with escalated privileges after being added to the sudo group

 

If you wish to temporarily move to the root user from the regular user to perform more operations with escalated privileges without having to type sudo, you can use sudo su, as shown in the example below.

 

Showing the process of being able to change a user to root once in the sudo group

 

Being a superuser also comes with great responsibility. You need to be careful with what you do as a superuser, as you can potentially damage your system or compromise its security. You can accidentally delete important files, change critical settings, install malicious software, or expose sensitive data. You can also make your system vulnerable to attacks from hackers or malware that can exploit your superuser privileges.

Therefore, it is advisable to use your superuser privileges only when necessary and for a limited time. You should also follow some best practices, such as using strong passwords, updating your system regularly, avoiding suspicious links or downloads, and scanning your system for viruses or malware. 

Leave a Comment

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

Related Articles

Informational

Top 5 Linux Server Distributions for 2024

Overview 2023 was an active year in the Linux world! Red Hat, the biggest open-source company decided to lock the source code behind a paywall, Ubuntu dropped default support for Flatpak for all its flavors, Vim creator, Bram Moolenar, passed away, and Linux rose above MacOS in gaming stats with …

Continue read
Informational

Linux: The Open-Source Solution – Benefits and Overview

Overview This blog post is intended to provide you with information and an overview of crucial topic points involving the Linux OS. Whether you are reviewing and contemplating which OS to use for your production environment or your desktop setup, the following seven topics will assist with understanding what Linux …

Continue read
Hero image showing the Linode and Akamai logos.
Informational

Linode Price Increase & Customer Exodus

When it was announced earlier this year that content delivery network (CDN) provider Akamai would acquire IaaS cloud platform provider Linode for a staggering $900 million, it left many feeling uncertain: especially Linode’s existing customer base. While the merger has boosted Akamai’s financial numbers for this quarter, like the acquisition …

Continue read