Linux Tip: Listing Files by Their Age

Introduction Ever wondered how to find files in a directory that haven’t been touched in ages? Whether you’re cleaning up old files, archiving data, or checking for stale files, Linux’s find command is your go-to solution. In this tip, we’ll show you how to list files by their age in Linux using a simple yet powerful command. … Read more

Why Can’t I cd Into a Directory in Linux? Troubleshooting Tips

Navigating directories in Linux using the cd command is usually straightforward, but sometimes you might run into issues. Here’s a step-by-step guide to troubleshoot and resolve common problems when you can’t cd into a directory. 1. Check for Typos The first step is to ensure the directory name is spelled correctly. A typo can prevent you from accessing the … Read more

Understanding .d Folders in Linux

Introduction If you’ve worked with Linux systems, you may have noticed directories with names like /etc/logrotate.d/ or /etc/cron.d/. These .d folders follow a convention used by many services, from MariaDB to SSH, and from the kernel to PAM. Once you understand their purpose, you’ll start seeing them everywhere—such as mariadb.conf.d, sshd_config.d, modprobe.d, and pam.d. But why does a system need directories like /etc/logrotate.d/ for placing configuration files … Read more

The hb_report Command for SLES Clusters

Introduction In SUSE Linux Enterprise Server (SLES) clusters, the hb_report command is an essential tool for gathering detailed diagnostic information about a High-Availability (HA) cluster. This tool is crucial for troubleshooting cluster issues, identifying failures, and analyzing the health of the cluster environment. Whether you’re an administrator working on an HA cluster or a support engineer diagnosing issues, hb_report simplifies the process by … Read more

The nl Command in Linux: Adding Line Numbers to Text Files

Linux provides various commands for text formatting and editing, and one particularly useful command is the nl command. This tool allows you to add line numbers to each line of a text file or input, making it easier to read and organize content. What Does the nl Command Do? The nl command displays the contents of a text file with line numbers added … Read more

10 Handy Linux Command Tricks to Save You Time

Mastering Linux commands can significantly improve your efficiency in the terminal. Whether you’re a beginner or an experienced user, these handy tips will help you navigate, manage files, and optimize your workflow. 1. Switch Back to the Last Directory If you need to quickly return to the last directory you were in, use: This command … Read more

Linux Tips: 10 Things You Shouldn’t Do (And What to Do Instead)

Avoid common pitfalls in Linux administration by following these practical tips. Learn how to handle permissions, troubleshoot errors, and secure your system effectively. 1. Avoid Running Commands That Change Multiple Properties Instead of running commands that change a large number of properties, focus on specific files or directories related to the issue you are troubleshooting. … Read more

Linux Tip: 10 Essential find Command Examples for File and Directory Management

The find command is a powerful tool for Linux system administrators and users alike. It allows you to search for files and directories within a directory hierarchy based on specific criteria. Whether you’re managing on-premises systems or cloud-based environments, mastering the find command can significantly improve your efficiency. In this article, we’ll explore the most common scenarios for using … Read more

Understanding the Wheel Group in RHEL

The wheel group is a special user group commonly used on Unix-based systems, including Red Hat Enterprise Linux (RHEL), to manage access to privileged commands. Users in the wheel group are granted the ability to execute commands as the superuser (root) by using the sudo command. This guide explains how to add a user to the wheel group and … Read more

How to Manage User Account Password Expiry in Linux

Managing user account password expiration is an essential task for Linux system administrators to ensure system security and compliance with organizational policies. The chage command is a powerful tool that allows you to view and modify password expiration settings for user accounts. In this guide, we’ll explore how to check password expiration details, set expiration dates, and … Read more