Category

Linux Tutorials and Command Line Guides - Page 6

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 Add a User to a Group in Linux

Add a user to a supplementary group in Linux with usermod -aG, gpasswd -a, or adduser on Debian. Verify with id, apply changes with newgrp or re-login, and avoid the missing -a mistake.

Omer Cakmak7 min read
linux

Configure BIND Primary and Secondary DNS on RHEL Linux

Configure BIND primary and secondary DNS on RHEL-family Linux with allow-transfer, slave zones, named-chroot on Rocky Linux 8, and dig verification after AXFR zone replication.

Deepak Prasad10 min read
linux

Linux sysctl Performance Tuning for High-Performance Servers

Important Linux sysctl parameters for performance — what each knob controls, what to check on your host, and the impact when you raise or lower it, without copying paste-and-go sysctl.conf lists.

Omer Cakmak19 min read
linux

Setgid in Linux: chmod g+s, 2775 and Practical Examples

Learn Linux setgid on directories and executables: chmod g+s, 2775 group inheritance, write and plocate examples, s vs S, find, and when to use setgid on shared folders.

Deepak Prasad8 min read
linux

Setuid in Linux: chmod u+s, 4755 and Practical Examples

Learn Linux setuid on executables: what chmod u+s and 4755 do, why passwd uses setuid, lowercase s vs uppercase S, how to find setuid files, and when not to add your own.

Deepak Prasad7 min read
linux

Sticky Bit in Linux: chmod +t, 1777 and Practical Examples

Learn the Linux sticky bit on directories: what chmod +t and 1777 do, why /tmp uses them, lowercase t vs uppercase T, how to remove the bit, and how to find sticky directories.

Omer Cakmak9 min read
linux

Fix sysctl: reading key net.ipv6.conf.*.stable_secret

Suppress sysctl stable_secret read errors when piping sysctl -a to grep, understand why net.ipv6.conf.*.stable_secret returns I/O error, and check IPv6 settings without disabling IPv6.

Omer Cakmak6 min read
linux

How to List Services with systemctl in Linux

List systemd services with systemctl list-units and list-unit-files — filter running, enabled, disabled, failed, and inactive units, compare loaded vs installed unit files, and check one service with is-active and …

Omer Cakmak8 min read
linux

How to Extract tar.gz and .gz Files in Linux

Extract tar.gz and tgz archives with GNU tar, decompress plain .gz files with gunzip, list members without unpacking, and avoid mixing up gzip streams with tar archives.

Omer Cakmak10 min read
linux

ulimit Command in Linux: Check and Set Resource Limits

Check and change ulimit resource limits in Linux, including open files, soft vs hard limits, persistent limits.conf settings, systemd LimitNOFILE, and prlimit for running processes.

Omer Cakmak9 min read
linux

How to Exclude Users from pam_faillock Lockout in RHEL

Learn how to exclude selected users from pam_faillock account lockout on RHEL, Rocky Linux, AlmaLinux, and Oracle Linux using authselect and PAM rules.

Omer Cakmak10 min read
linux

How to Extract Specific Files and Directories from tar.gz

Extract one file, multiple files, directories, wildcards, or symlinks from a tar.gz archive with tar, including custom destinations and --strip-components.

Omer Cakmak8 min read
security

Where Is OpenSSL Config, Certificates, and Libraries? (Linux & Windows)

Find where OpenSSL keeps openssl.cnf, trust-store certificates, libssl libraries, and the openssl binary on Linux and Windows. Use openssl version -d, which openssl, ldconfig, and OPENSSL_CONF when paths differ between …

Deepak Prasad10 min read
linux

Create, Copy, Move and Delete Files in Linux

Create, copy, move, rename, and delete files and directories in Linux with touch, mkdir, cp, mv, rm, and rmdir—plus wildcards, brace expansion, and safe verification with ls, stat, and du.

Deepak Prasad39 min read
linux

How to Exclude Users from `Match Group` in sshd

Exclude one or multiple users from an OpenSSH Match Group with negated User patterns, validate sshd_config safely, and verify the effective SSH settings.

Omer Cakmak7 min read
linux

Create and Mount Filesystems in Linux

Create ext4, XFS and VFAT filesystems in Linux with mkfs: identify the right block device, add labels, mount and unmount, read capacity correctly, and check or repair each filesystem type.

Deepak Prasad53 min read
linux

at Command in Linux to Schedule One-Time Tasks

Schedule one-time tasks in Linux with the at command: start atd, write relative and absolute time specs, list jobs with atq, inspect with at -c, cancel with atrm, capture job output, and control access with at.allow and …

Deepak Prasad36 min read
system-administration

Update and Upgrade 389 Directory Server Safely

Update 389 Directory Server safely with dnf, pre-upgrade health checks, verified backups, standalone and rolling replica updates, post-upgrade validation, and recovery when a package update fails.

Deepak Prasad25 min read
linux

RHEL kernel-core vs kernel and kernel-modules Explained

Understand kernel-core on RHEL, the difference between kernel, kernel-modules-core and kernel-modules, which packages you need, and how DNF updates them safely.

Omer Cakmak8 min read
linux

How to Update the Kernel on RHEL with DNF

Update the kernel safely on RHEL with DNF. Check available versions, install the latest kernel, verify the default boot entry, reboot, and confirm the new kernel.

Omer Cakmak8 min read
linux

RHEL Patch Management: Security Updates, CVEs and DNF Patching

Learn RHEL patch management with DNF: identify security advisories and CVEs, apply security-only updates, patch specific RHSA or CVEs, and verify remediation.

Omer Cakmak13 min read
linux

How to Fix "There Are No Enabled Repositories" on RHEL

Fix "There are no enabled repositories" on RHEL by checking DNF repositories, system registration, BaseOS/AppStream, Subscription Manager, and offline repository configuration.

Omer Cakmak9 min read
linux

How to Safely Remove Old Kernels Using DNF or YUM

Remove old Linux kernels safely on RHEL, Rocky Linux and AlmaLinux with dnf remove --oldinstallonly, protecting the running kernel and a bootable fallback.

Omer Cakmak7 min read
linux

How to Downgrade RPM Packages in Linux with DNF and YUM

Downgrade an installed RPM package on RHEL-family systems with dnf downgrade, install an exact older build, handle common errors, and lock the version with versionlock.

Omer Cakmak8 min read
linux

How to Exit Full Screen Mode in virt-manager

To exit full screen in virt-manager, move the pointer to the top-center edge and click the hidden restore button. Learn why Ctrl+Alt+F may not work.

Omer Cakmak8 min read
linux

How to Check Open Ports in Linux

Learn how to check open and listening ports in Linux with ss, lsof, nmap, and nc. Find the process using a port and test remote port access.

Omer Cakmak10 min read
linux

How to List Running Processes in Linux

Learn how to list running processes in Linux with ps, top, pgrep, and pstree. Filter processes by user, PID, name, CPU, memory, and state.

Omer Cakmak9 min read
linux

Automate RHEL Installation with Kickstart

Automate RHEL installation with Kickstart on RHEL 10: file structure, ksvalidator, anaconda-ks.cfg templates, inst.ks boot options, rhsm registration, lab harness kickstart, and post-install verification.

Deepak Prasad14 min read
linux

Solved: Kickstart clearpart Not Working on RHEL

Fix kickstart clearpart not working on RHEL 10: scope disks with ignoredisk and clearpart --drives, wipe old LVM with a %pre script, and validate storage before autopart.

Omer Cakmak6 min read
linux

Kickstart %pre Script Examples on RHEL

Kickstart %pre and %pre-install script examples on RHEL 10: --log, --interpreter, disk wipe before clearpart, NIC inventory, and copying logs with %post --nochroot.

Omer Cakmak6 min read