Articles by Rohan Timalsina
How to Extend an LVM Logical Volume with lvextend
Use lvextend to grow a Linux logical volume: pre-checks, size syntax (-L and -l), grow ext4 with resize2fs or XFS with xfs_growfs, post-checks, and what to do when the volume group is full.
20 netstat command examples in Linux [Cheat Sheet]
netstat command in Linux is used to get the list of listening TCP and UDP sockets. Get the list of ESTABLISHED, TIME_WAIT, LISTEN sockets with program name. Get the routing information.
40+ grep Pattern Matching Examples in Linux (Regex, OR, Pattern File)
Learn advanced grep pattern matching in Linux with practical examples. This guide covers grep regex examples, OR conditions, pattern files, matching words before or after patterns, extracting data using regex, and many …
locate Command in Linux: Cheat Sheet, Syntax & Examples (vs find)
Learn how to use locate command in Linux with cheat sheet, syntax, and practical examples. Understand how locate works, install it on Ubuntu and CentOS, and compare locate vs find command for faster file search.
sudo Command in Linux: Cheat Sheet, Syntax & 15+ Practical Examples
Learn how to use sudo command in Linux with cheat sheet, syntax, and 15+ real-world examples. Understand sudoers configuration, run commands as root or another user, and fix common sudo errors.
nmcli Command in Linux: Network Configuration, IP, DNS, Routing & Examples (RHEL/CentOS/Ubuntu)
Learn the nmcli command in Linux with syntax, options, and practical examples. Configure IP address (IPv4/IPv6), DNS, routing, hostname, bonding, bridging, and NetworkManager connections using nmcli on RHEL, CentOS, and …
Nmap Command in Linux: 30+ Nmap Command Examples and Cheat Sheet
Learn the Nmap command in Linux with 30+ practical examples and a quick cheat sheet. This guide explains how to perform host discovery, port scanning, service detection, OS detection, firewall detection, and network …
ipcs Command in Linux: Syntax, Options, Cheat Sheet & IPC Monitoring Examples
Learn how to use the ipcs command in Linux with syntax, options, cheat sheet, and practical examples. This guide explains how to view shared memory segments, message queues, and semaphore arrays, inspect IPC resources, …
ip route Command in Linux: Syntax, Examples, Cheat Sheet & Routing Guide
Learn how to use the ip route command in Linux with syntax, cheat sheet, and practical examples. This guide explains how to view routing tables, add and delete routes, configure multiple gateways, troubleshoot routing …
iotop Command in Linux: Syntax, Options, Cheat Sheet & Practical Examples
Learn how to use the iotop command in Linux with syntax, options, cheat sheet, and practical examples. This guide explains how to monitor disk I/O usage by processes, identify applications causing high disk activity, and …
hping3 Command in Linux: Syntax, Options, Cheat Sheet & Practical Examples
Learn how to use the hping3 command in Linux with syntax, options, cheat sheet, and practical examples. This guide explains how to perform packet crafting, port scanning, firewall testing, traceroute analysis, and …
groupadd Command in Linux: Syntax, Options & Practical Examples
Learn how to use the groupadd command in Linux with syntax, options, and practical examples. This guide explains how to create groups, assign custom GIDs, create system groups, manage users in groups, and troubleshoot …
iostat Command in Linux Explained: Syntax, Options, Cheat Sheet & Practical Examples
Learn how to use the iostat command in Linux with syntax, options, cheat sheet, and practical examples. This guide explains how to monitor CPU utilization, disk I/O performance, device throughput, and storage bottlenecks …
find Command in Linux: Complete Cheat Sheet with 25+ Examples
Learn how to use the find command in Linux with this complete cheat sheet. This guide covers find command syntax, commonly used flags, and practical examples for searching files by name, extension, size, permissions, …
elinks Command in Linux: Browse Websites and Extract Text from HTML
Learn how to use the elinks command in Linux to browse websites from the terminal and extract text from HTML pages. This practical cheat sheet covers elinks examples including browsing websites in text mode, using the …
finger Command in Linux (User Information Lookup) [Cheat Sheet]
Learn how to use the finger command in Linux to display user account information such as login name, terminal, idle time, home directory, and shell. This cheat sheet includes practical examples for checking logged-in …
journalctl Command in Linux: View, Filter, and Troubleshoot System Logs
Learn how to use the journalctl command in Linux to view, filter, and troubleshoot systemd logs. This practical cheat sheet covers journalctl examples for viewing logs, following logs in real time, filtering by service, …
dumpe2fs Command in Linux (ext4 Superblock & Recovery Guide)
Learn how to use the dumpe2fs command in Linux to inspect ext2, ext3, and ext4 superblock information, view backup superblocks, check inode and block details, and recover corrupted filesystems with practical examples.
dpkg Command in Linux: Practical Examples & Complete Cheat Sheet
Learn how to use the dpkg command in Linux with practical examples. This cheat sheet covers installing and removing .deb packages, fixing broken packages, querying installed software, force operations, downgrading …
cut Command in Linux: Practical Examples & Cheat Sheet
Learn how to use the cut command in Linux with clear, practical examples. This guide covers selecting bytes, characters, and fields, working with delimiters, ranges, complements, and common real-world text-processing use …
DNF Command Cheat Sheet in Linux (With Practical Examples)
A complete DNF command cheat sheet for Linux with practical examples. Learn how to use dnf to install, update, remove packages, manage repositories, work with package groups, undo transactions, and troubleshoot common …
crontab Command in Linux: Practical Examples & Cheat Sheet
Learn how to use the crontab command in Linux with practical examples. Understand cron syntax, scheduling formats, special time strings, managing user crontabs, debugging cron jobs, and best practices.
curl Command in Linux: Practical Examples & Cheat Sheet
Learn how to use the curl command in Linux with clear, practical examples. This cheat sheet covers downloading files, HTTP headers, silent mode, redirects, POST requests, authentication, and common troubleshooting use …
cpio Command in Linux: Practical Examples & Cheat Sheet
Learn the cpio command in Linux with clear, practical examples. Understand copy- in, copy-out, and pass-through modes, create and extract archives, preserve permissions, work with initramfs, and compare cpio with tar.
dmidecode Command in Linux: BIOS, Serial, Memory & CPU (Cheat Sheet)
Learn dmidecode with practical examples to read SMBIOS/DMI data in Linux. Get BIOS version, system manufacturer, serial number, UUID, memory slot details, and CPU information, plus troubleshooting for permission errors …
chown Command in Linux: Change File & Directory Ownership (Cheat Sheet)
Learn how to use the chown command in Linux to change file and directory ownership safely. Covers recursive chown, symbolic links, --from, --reference, verbose output, and best practices.
cmp Command in Linux: Compare Files Byte by Byte (Examples & Cheat Sheet)
Learn how to use the cmp command in Linux to compare files byte by byte. Includes practical examples, options like -l, -b, -s, exit codes, and real-world scripting use cases.
chage Command in Linux: Password Expiry, Aging, and Account Policies
Learn how to use the chage command in Linux to manage password expiry, account aging, inactivity locks, and user expiration with practical examples and best practices.
chattr Command in Linux: Change File Attributes Using Immutable and Append-Only Flags
Learn the chattr command in Linux with 11 practical examples. Understand file attributes, immutable files, append-only mode, and how to use lsattr to inspect attributes.
chgrp Command in Linux Explained: Change Group Ownership with Examples
Learn how to use the chgrp command in Linux to change group ownership of files and directories. Includes recursive usage, sudo examples, symbolic links, error handling, and a quick reference cheat sheet.
