Category

Linux Tutorials and Command Line Guides - Page 16

Learn Linux with step-by-step tutorials, command line examples, and system administration guides for Ubuntu, RHEL, CentOS, and more.

Welcome to the Linux tutorials section, your complete resource for mastering Linux commands and system administration.

This category covers everything from basic commands to advanced system-level operations across multiple distributions such as Ubuntu, RHEL, and CentOS.

Linux is the backbone of modern infrastructure, and understanding it is essential for DevOps, cloud computing, and system administration. You may also explore System Administration and Security for advanced topics.

Browse by distribution using the cards below — RHEL family (RHEL, Rocky Linux, AlmaLinux, CentOS, Fedora) and individual APT-based hubs (Ubuntu, Debian, Kali Linux, Linux Mint) — then see featured articles and the full article list.

639 articles

Linux category illustration with terminal, commands, permissions, and troubleshooting features

All Linux articles

linux

How to Check Memory Usage per Process in Linux

Learn how to check memory usage by process in Linux with tested ps, top, pmap, /proc, smaps_rollup, statm, free, and pidstat examples. Understand RSS, VSZ, PSS, USS, shared memory, and how to find the top …

Deepak Prasad11 min read
linux

Linux memory limits in containers (cgroups, Docker, Kubernetes)

Learn how Linux enforces memory limits inside containers using cgroups, how cgroup v1 and v2 differ, why tools disagree, and how Docker and Kubernetes map limits to the kernel.

Deepak Prasad24 min read
linux

How to Change Username in Linux Using usermod

Learn how to change username in Linux with usermod, rename the home directory, update the primary group, verify UID/GID ownership, and fix common username rename errors safely.

Omer Cakmak8 min read
linux

How to Check Sudo Access for a User in Linux

Learn how to check sudo access in Linux. Check if you or another user has sudo privileges with sudo -l, test sudo access non-interactively in a bash script with sudo -n, and list all sudo users, with real tested output.

Deepak Prasad11 min read
linux

How to Check Disk Space in Linux: df, du, lsblk & What They Actually Show

Learn how to check disk space in Linux from the command line. Use df to check free space, du to check disk usage by folder, and find what is eating your storage, with real tested output and fixes for "No space left on …

Deepak Prasad13 min read
linux

CPU, Processors, Cores, Threads, Hyper-Threading and Cache Explained

Understand CPU, processor, socket, core, thread, hyper-threading, CPU cache, frequency scaling and Linux commands like lscpu, nproc, mpstat and cpupower with validated output.

Deepak Prasad19 min read
linux

How to Refresh Network Settings in Ubuntu

Learn how to refresh network settings in Ubuntu after IP address, route, DNS, DHCP, Netplan, NetworkManager, or systemd-networkd changes. Includes safe remote-server workflow, tested verification commands, and practical …

Deepak Prasad14 min read
linux

How to Backup Brave Browser Profile, Settings, Bookmarks, and Session on Linux

Learn how to backup and restore Brave Browser profile data on Linux, including settings, bookmarks, session files, cache, profile paths, tar archives, checksums, and safe restore steps.

Omer Cakmak7 min read
linux

How to Install a Specific Version with APT

Learn how to install a specific package version with apt or apt-get on Ubuntu and Debian, list available versions, simulate installs safely, handle dependency conflicts, and hold or unhold package versions.

Omer Cakmak9 min read
linux

How to Add User to Sudo Group in Linux

Learn how to add a Linux user to the sudo group on Ubuntu and Debian, use the wheel group on RHEL-based systems, verify sudo access, and avoid confusing group-based sudo with custom sudoers file rules.

Omer Cakmak6 min read
linux

How to Check Linux Kernel Version from Command Line

Learn how to check Linux kernel version with tested uname, hostnamectl, procfs, journalctl, dmesg, boot image, dpkg, and apt commands, and understand the difference between the running kernel and installed kernel …

Deepak Prasad8 min read
linux

How to check thread count per process in Linux

Tested Linux commands to check thread count per process using proc task directories, proc status, ps NLWP/LWP, ps -T, top -H and pstree, plus system thread limits.

Deepak Prasad8 min read
linux

Linux Show Hidden Files with ls, find, and du

Tested Linux commands to show hidden files with ls, list only hidden files, find hidden files recursively, and check hidden file or directory size with du.

Deepak Prasad7 min read
linux

Install YARN on Linux and Windows

Step by Step instructions to install yarn on Linux and WIndows. Installation on Ubuntu (Debian based) and Rocky Linux (Red hat based) and Windows.

Omer Cakmak7 min read
linux

Fix: cpio premature end of archive, List (lsinitrd) & Extract initramfs in RHEL Linux

How to extract/unpack/uncompress the contents of the initramfs image on RHEL7 and RHEL8? How do I list initramfs image file content? How do I modify the contents of an initrd or initramfs? How do I view an initrd or …

Deepak Prasad5 min read
linux

Perform cURL POST Request

In this article we learned how to properly perform a curl POST request with practical examples

Deepak Prasad11 min read
linux

[SOLVED] pip command not found in Ubuntu

There are two different versions of pip which you can install to solve the error i.e. pip command not found in Ubuntu 20.04 Linux. Step by Step instructions to fix pip command not found error.

Deepak Prasad5 min read
linux

9 easy steps to create custom ISO RHEL/CentOS 8

To create custom ISO in RHEL/CentOS 8, create a kickstart file and modify the isolinux.cfg for boot menu. You can also minimze the package list and update repodata

Deepak Prasad15 min read
linux

Install XFCE Desktop on Ubuntu (Minimal, Full & Server Guide)

Learn how to install XFCE on Ubuntu using multiple methods including minimal XFCE installation, full Xubuntu desktop setup, and GUI installation on Ubuntu Server. This guide also explains how to switch desktop …

Omer Cakmak10 min read
linux

How to count files in directory in Linux? [SOLVED]

When managing files and directories in Linux operating systems, there may be a need to know how many files are in a given directory. For example:

Omer Cakmak9 min read
linux

How to create user in Linux?

If you have not integrated Linux servers into a central user authentication such as LDAP/Active Directory, you will have to create local users many times.

Omer Cakmak6 min read
linux

15 steps to setup Samba Active Directory DC CentOS 8

Step by Step tutorial to configure samba active directory domain controller in CentOS 8 Linux. Install Windows AD alternative in Linux. Free domain controller software in Linux

Deepak Prasad14 min read
linux

What is tar --strip-components & zip --junk-paths with examples in Linux

How to use tar --strip-components and zip --junk-paths with examples to strip absolute path in Linux and Unix. Force unzip / zip not to create a subdirectory

Deepak Prasad4 min read
linux

How to Check CPU Usage in Linux (Top, htop, vmstat & More)

Learn how to check CPU usage in Linux using top, htop, vmstat, mpstat, sar, and ps commands. Monitor CPU utilization, load, and processes in real-time with practical examples.

Deepak Prasad10 min read
linux

grep Exact Match in Linux (Match Whole Word or Exact String)

Learn how to grep exact match in Linux using the grep command. This tutorial explains how to match exact words, exact strings, and entire lines using options like -w and regex patterns. Includes practical grep examples …

Deepak Prasad8 min read
linux

How to Mount USB Drive in Linux (Command Line Guide for Ubuntu, Debian, RHEL)

Learn how to mount a USB drive in Linux using command line tools. This step-by-step guide explains how to identify USB devices, install required filesystem packages, mount USB drives manually, verify mount points, …

Omer Cakmak12 min read
linux

Linux find -exec Command (Multiple Commands, Examples & Practical Guide)

Learn how to use the Linux find -exec command with practical examples. This guide explains find exec syntax, running multiple commands, combining find exec with grep, sed, pipes, and shell scripts for powerful file …

Deepak Prasad11 min read
linux

zsh: command not found: pip – Fix with pip3 & PATH in 2 Minutes

We explore the different root cause for getting zsh: command not found: pip error in Linux and how to fix those errors.

Omer Cakmak4 min read
linux

Dashed Filename in Linux: What It Means and How to Fix It

How to create, read, modify, find and remove dashed filename and directories in Linux. Open and access files & directories starting with (dash) and double dash (--)

Deepak Prasad10 min read
linux

Install phpMyAdmin on Rocky Linux 9 [Step-by-Step]

Step by step instructions to install phpMyAdmin on Rocky Linux 9 using 2 different methods.

Omer Cakmak4 min read