Category

Linux Tutorials and Command Line Guides

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, or scroll to see all Linux articles.

382 articles

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

Browse by distribution

Choose your Linux distribution to see install guides and configuration tutorials written for that OS.

All Linux articles

linux

How to Add User to Sudoers File in Linux

Learn how to add a user to sudoers safely with visudo, sudoers.d drop-in files, command-specific rules, NOPASSWD examples, syntax checks, aliases, and tested sudo -l verification output.

Deepak Prasad5 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

How to Check Ubuntu Version: Command Line, GUI, Server & WSL

Learn how to check Ubuntu version from the command line or GUI. Use lsb_release, /etc/os-release, hostnamectl, /etc/issue, or Settings to find your Ubuntu release, version number, codename, and kernel.

Deepak Prasad8 min read
linux

How to List Groups in Linux and Check User Group Membership

Learn how to list groups in Linux and check user group membership using commands like groups, id, getent, compgen, and /etc/group. This guide explains how to view all groups, list groups for a user, and display users …

Omer Cakmak12 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

Restart Crontab in Linux (Cron Reload & Restart Commands)

Learn when and how to restart crontab in Linux. See cron restart and reload commands for Ubuntu, Debian, RHEL, CentOS—and when a restart is NOT required.

Omer Cakmak4 min read
linux

5 commands to copy file from one server to another in Linux or Unix

commands to copy file from one server to another in Linux or Unix with examples using sftp scp rsync sshfs nfs. copy using shell script between two machine

Deepak Prasad9 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 Prasad4 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

How to install ImageMagick on Ubuntu?

This tutorial will guide you through step by step instructions to install ImageMagick on Ubuntu, covering various methods like APT and compiling from source. We'll also explore basic usage, including image conversion and …

Deepak Prasad7 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 Cakmak9 min read
linux

Add User to Group in Linux Efficiently

Discover how to add user to group in Linux using various methods like usermod, gpasswd, and adduser. Efficiently manage permissions and access control with these essential techniques.

Deepak Prasad13 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

Remove dot(.) in Linux Permissions the RIGHT way!

Step by step instructions to remove dot in Linux permission section for file and directory. What is the meaning of having dot (.) in the end of Linux permission field.

Omer Cakmak6 min read
linux

Install Plex media server Debian 11 [Step-by-Step]

Step by step instructions to install plex media server on Debian 11 Bullseye

Deepak Prasad4 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 Prasad13 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 Prasad3 min read
linux

5+ practical examples to learn sticky bit in Linux

What is Unix or Linux Sticky Bit special permission. How to apply sticky bit for directories and files. What is the difference between small 't' and capital "T"

Deepak Prasad10 min read
linux

How to perform tar incremental backup with example in Linux

Learn about tar incremental backup with examples in Linux. You can use tar incremental backup script to automate tasks for backup and recovery in Linux/Unix

Deepak Prasad6 min read
linux

How to check last password change date of user in Linux/Unix

check last password change date in Linux check password expiration, check password status of system and active directory user. chage command examples.

Deepak Prasad6 min read
security

OpenSSL & PKI Certificates Tutorial for Beginners

Complete OpenSSL and PKI tutorial - generate keys, build a Certificate Authority, issue SAN and ECC certificates, configure mTLS, renew and revoke certificates. 24 hands-on lessons tested on Linux.

Deepak Prasad1 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

RPM Downgrade in Linux (yum, rpm, Install Specific Version + Rollback)

Learn how to downgrade RPM packages in Linux using yum and rpm. This guide covers installing specific versions, handling dependencies, forcing downgrade, rollback using yum history, and fixing common errors in CentOS, …

Deepak Prasad5 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