Category

Linux Tutorials and Command Line Guides - Page 7

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

Kickstart %post Script Examples on RHEL

Kickstart %post script examples on RHEL 10: chrooted post-install tasks, --nochroot log copy, --interpreter for Python and Bash, systemctl enable, and lab verification script.

Omer Cakmak7 min read
linux

Linux umask Explained with Examples

Learn how Linux umask masks permissions at file creation: calculate modes from typical 0666 and 0777 requests, set session and persistent umask, configure systemd UMask, and troubleshoot common mistakes.

Deepak Prasad12 min read
linux

Configure Kickstart PXE Boot Server on Linux

Build a Kickstart PXE boot server on RHEL 10 with Apache HTTP, dnsmasq DHCP and TFTP, BIOS pxelinux and HTTP iPXE, local inst.stage2 from DVD, and inst.ks delivery for automated netboot installs.

Deepak Prasad18 min read
linux

How to Get RHEL for Free with a Developer Subscription

Get RHEL at no cost with the Red Hat Developer Subscription for Individuals: create an account, activate the subscription, pick the Boot or DVD ISO, and verify the download.

Deepak Prasad21 min read
linux

Register RHEL with Subscription Manager

Register RHEL with subscription-manager, verify Simple Content Access, enable BaseOS and AppStream repositories, configure a proxy, and unregister.

Deepak Prasad12 min read
linux

Configure SELinux Port Labels and Booleans

Configure SELinux port labels and booleans on Linux: read name_bind denials, add a port to http_port_t with semanage port, use -m when a port is already defined, and switch optional behaviour with getsebool and setsebool …

Deepak Prasad32 min read
linux

Manage SELinux Modes and File Contexts

Manage SELinux modes and file contexts on Linux: getenforce and setenforce, ls -Z, matchpathcon, restorecon, semanage fcontext, AVC denials, and an httpd content fix without disabling SELinux.

Deepak Prasad13 min read
linux

Configure Hostname Resolution in Linux

Learn how Linux resolves hostnames through NSS, /etc/hosts, and DNS: use getent hosts and getent ahosts, dig and host, configure DNS servers and search domains with nmcli, and troubleshoot resolution failures.

Deepak Prasad11 min read
linux

Configure the GRUB2 Bootloader on RHEL

Configure GRUB2 on RHEL with grubby and BLS entries: list kernels, set the default boot kernel, add or remove kernel parameters, use /etc/default/grub with grub2-mkconfig, and recover from bad boot arguments.

Deepak Prasad11 min read
linux

Schedule Tasks with systemd Timers in Linux

Schedule recurring and boot-relative jobs with systemd timers: pair a timer unit with a service unit, use OnCalendar and monotonic triggers, enable with systemctl, inspect list-timers and journalctl, and compare timers …

Deepak Prasad13 min read
linux

Manage TuneD Performance Profiles in Linux

Manage TuneD profiles in Linux with tuned-adm: list and read profiles, apply throughput-performance, check the recommendation, verify applied settings, inspect tuned.conf inheritance, and revert cleanly.

Deepak Prasad28 min read
linux

Reset the Root Password on RHEL 10

Reset a forgotten root password on RHEL 10 from the GRUB menu with rd.break, remount /sysroot, chroot, passwd, and SELinux autorelabel before you log in again.

Deepak Prasad15 min read
linux

Manage systemd Targets in Linux

Learn systemd targets as boot synchronization points: get-default, set-default, isolate multi-user or graphical, rescue and emergency mode, and one-boot overrides with systemd.unit=.

Deepak Prasad13 min read
linux

Boot, Reboot and Shut Down Linux with systemd

Reboot, power off and shut down Linux with systemctl and shutdown. Schedule or cancel reboots, notify users, and verify the new boot.

Deepak Prasad16 min read
linux

Install and Manage Flatpak Applications in Linux

Install Flatpak on Linux, configure remotes, search Flathub or vendor catalogs, install update and remove sandboxed apps with flatpak run, permissions, and troubleshooting.

Deepak Prasad11 min read
linux

Linux File Permissions and Ownership Explained

Learn Linux file permissions and ownership: rwx for files vs directories, chmod symbolic and octal modes, chown and chgrp, umask, SUID SGID sticky bit, and permission denied diagnosis.

Deepak Prasad15 min read
linux

Create and Edit Text Files in Linux

Create and edit Linux text files with Vim, Nano, touch, redirection, search and replace, backups, and safe configuration edits from the command line.

Omer Cakmak12 min read
linux

Linux Input, Output Redirection and Pipes

Learn Linux stdin, stdout and stderr redirection with >, >>, 2>&1, pipes, tee, /dev/null, here documents, PIPESTATUS and pipefail.

Deepak Prasad13 min read
linux

Linux Command Line Basics for Beginners

Learn Linux command line basics: how the shell parses commands, navigate with paths, use quoting and expansion, find help with man and --help, and practice safe identity checks before you move on to file management and …

Deepak Prasad13 min read
linux

Linux Filesystem Hierarchy Explained

Understand the Linux filesystem hierarchy—what /etc, /var, /usr, and /home contain—and navigate with absolute and relative paths using pwd, cd, ls, file, stat, and find.

Deepak Prasad14 min read
linux

Linux Process Management and Troubleshooting

Manage Linux processes with ps, pgrep, top, jobs, signals, and systemctl. Find high-CPU tasks, inspect process states, and stop processes safely.

Deepak Prasad13 min read
linux

Install DVWA on Kali Linux

Install DVWA on Kali Linux with the native dvwa package, Docker Compose, or a manual Apache and MariaDB stack, then verify port 42001 or 4280 and fix common setup errors.

Deepak Prasad14 min read
linux

Install OWASP Juice Shop on Kali Linux

Install OWASP Juice Shop on Kali Linux using the native package, Docker, or Node.js source, then verify access, connect Burp Suite, and fix common errors.

Deepak Prasad14 min read
linux

Linux Boot Process Explained: From UEFI and GRUB to systemd

Learn the Linux boot process from UEFI or BIOS through GRUB, the kernel, initramfs, and systemd, with inspection commands and troubleshooting.

Deepak Prasad25 min read
linux

Create and Roll Back Linux System Snapshots with snapm

Create coordinated LVM snapshot sets with snapm, boot into a snapshot through Boom and GRUB, inspect an earlier system state, revert failed changes, monitor snapshot capacity, and delete snapshot sets on Rocky Linux …

Deepak Prasad11 min read
linux

Migrate ISC DHCP Server to Kea DHCP

Convert an existing dhcpd.conf to Kea JSON with KeaMA, correct unsupported directives, test reservations and leases on an isolated lab, compare DHCP offers, and cut over from ISC DHCP to Kea with a tested rollback path.

Deepak Prasad16 min read
linux

Configure Kea DHCP Server on Rocky Linux, RHEL, and AlmaLinux

Install and configure the Kea DHCPv4 server on Rocky Linux 10, RHEL 10, or AlmaLinux 10 with a JSON address pool, gateway and DNS options, MAC reservation, and lease verification on an isolated lab network.

Deepak Prasad17 min read
system-administration

Reset the Directory Manager Password in 389 Directory Server

Reset or change the Directory Manager password in 389 Directory Server with online dsconf over LDAPS, offline pwdhash and dse.ldif editing, verification, rollback, and per-replica rollout.

Deepak Prasad9 min read
system-administration

Troubleshoot Slow LDAP Searches in 389 Directory Server

Troubleshoot slow LDAP searches in 389 Directory Server using client timing, access-log metrics, unindexed-filter notes, indexes, caches, and replica comparison.

Deepak Prasad14 min read
system-administration

Fix Missing or Stale memberOf Attributes in 389 Directory Server

Fix missing or stale memberOf in 389 Directory Server by checking group data, plug-in scope, fix-up filters, shared configuration, and replication.

Deepak Prasad14 min read