Author: Danilo
Infrastructure Engineer with experience in Virtualization, Linux, Windows Server and learning automation using Python. DPC Virtual Tips was created to share practical tutorials, lab experiences and troubleshooting guides focused on enterprise infrastructure technologies.
The find command on Linux is one of the most powerful utilities for locating files and directories across a file system. It allows administrators to search based on multiple conditions, including file name, type, size, permissions, and modification time. Unlike simple search tools, the find command can perform recursive searches through directory structures and execute actions on the results. This makes it an essential tool for Linux administrators managing servers and troubleshooting file-related issues. In this guide, we will explore the basic syntax of the find command and several practical examples. You will learn how to search files by different…
Installing and Updating Packages with DNF shows how to find, install, and update software packages using DNF. What is DNF? DNF stands for Dandified YUM.It’s the next-generation package manager used in RHEL 8, RHEL 9, Fedora, and CentOS Stream. It replaces the older yum tool, but the command syntax is almost the same. DNF is a high-level package manager that works on top of RPM. It makes our life easier because it: Fundamental Difference Between rpm and dnf rpm → low-level tool. Works only with single .rpm files. Doesn’t resolve dependencies. Good for querying. dnf → high-level tool. Talks to…
Working with RPM Software Packages explains how Red Hat and other sources provide software as RPM packages, and investigates the installed system packages. First and foremost: What is an RPM Software Package? The RPM Package Manager, which Red Hat originally developed, provides a standard way to package software for distribution. Managing software in the form of RPM packages is simpler than working with software that is extracted to a file system from an archive. With RPM packages, administrators can track which files the software package installs, which files the software package removes if you uninstall it, and it verifies that supporting packages…
Gaining Superuser Access on RHEL shows how to access the system with superuser privileges. We’re using Red Hat Enterprise Linux; however, these examples apply to any Linux distribution. Most operating systems have a superuser (administrator) responsible for administrative and restrictive tasks. In the majority of Linux distributions, the superuser is the “root” account. For tasks such as installing or removing software, and to manage system files and directories, users must escalate their privileges to the root user. In some Linux distributions, for security purposes, the root account has no valid password by default, so we cannot directly log in as the root…
Working with Local Users and Groups on RHEL demonstrates how to manage Linux users and groups in a Linux system using the command line. All examples provided here are based on Red Hat Enterprise Linux 10; however, they should also work with any other Linux distribution. Linux Users A user account provides security boundaries between people and programs that can run commands. Users have usernames to identify them to human users and for ease of working. Internally, the system distinguishes user accounts by the unique identification number, the user ID (UID), which is assigned to them. In most scenarios, if a human uses…
Working with Shell Input and Output on RHEL aims to provide essential knowledge of standard input, standard output, and standard error on a Linux system. We’ll demonstrate how to manipulate each one and how to utilize it with pipelines to achieve a wide range of possible outcomes. All examples are run on Red Hat Enterprise Linux (RHEL); however, they apply to any Linux distribution. Standard Input (stdin), Standard Output (stdout), and Standard Error (stderr) A running program, or process, reads input and writes output. When we run a command from the shell prompt, it typically reads its input from the keyboard…