Practical Linux guides

CommandLineQuiz Blog

Practical Linux, Bash scripting, hosting and troubleshooting guides built around real commands, useful examples and terminal output. Use the blog to understand the command, then jump into builders, cheat sheets and quizzes to make it stick.

43+Guides and articles
14+Bash topics
9+Network and DNS topics

All guides

Latest command line guides

Open cheat sheets →
2026-05-15

.htaccess Guide: Redirects, Rewrites, HTTPS Rules and Examples

Learn practical .htaccess rules with examples for 301 redirects, HTTPS, www and non-www redirects, clean URLs, directory listing, IP blocking and trou...

.htaccess guidehtaccess exampleshtaccess redirectapache rewrite rule
Read guide
2026-05-08

Best AI Prompts for Bash Scripting: Safer Automation, Debugging and Linux Admin Examples

Use these practical AI prompts to write, debug and improve Bash scripts safely, with examples for backups, logs, uptime checks, cron jobs and Linux se...

AI prompts for Bash scriptingBash script promptsChatGPT Bash promptsLinux automation prompts
Read guide
2026-05-08

Build a Bash 404 Checker to Find Broken Pages and Internal Backlinks

Build a Bash 404 checker that scans a sitemap, checks page status codes, crawls internal links, reports broken backlinks and saves the results to CSV.

bash 404 checkerbroken backlink checker bashfind broken links linuxcurl check 404
Read guide
2026-05-05

10 Common Linux Issues and How to Fix Them

Learn how to fix 10 common Linux issues including high disk usage, failed services, permission denied errors, DNS problems, SSH failures, high load, m...

common linux issueslinux troubleshootingfix linux problemslinux disk full
Read guide
2026-05-05

Bash Functions Explained: Reusable Scripts for Linux Beginners

Learn Bash functions with practical Linux examples. Covers function syntax, arguments, local variables, return codes, output capture, reusable admin s...

bash functionsbash function examplesshell script functionsbash local variables
Read guide
2026-05-05

Bash While Loops Explained: Practical Examples for Linux Beginners

Learn Bash while loops with practical examples for Linux beginners. Covers counters, conditions, reading files safely, menus, retries, website monitor...

bash while loopbash while loop examplesbash while truebash read file line by line
Read guide
2026-05-05

CompTIA Linux+ Hands-On Lab Plan: 30 Practice Tasks for XK0-006

A practical CompTIA Linux+ hands-on lab plan with 30 Linux tasks covering system management, services, users, security, Bash automation, containers, n...

CompTIA Linux+ lab planXK0-006 hands on labsLinux+ practice tasksLinux certification labs
Read guide
2026-05-05

Is Red Hat Certification Worth It in 2026? RHCSA, RHCE and RHEL Career Guide

Is Red Hat certification worth it in 2026? Learn who should take RHCSA or RHCE, what skills to practise, what to expect from Red Hat exams, career val...

red hat certification worth it 2026rhcsa worth itrhce worth itrhel certification
Read guide
2026-05-05

Mastering the Linux Find Command: Practical Examples and Safe Workflows

Master the Linux find command with practical examples, safe delete workflows, output examples, internal links, FAQs and real file search use cases.

find command linuxlinux find command examplesfind files by sizefind files modified today
Read guide
2026-05-03

10 Essential Linux Commands for Beginners: Examples and Output

Learn 10 essential Linux commands with practical examples, command output, common use cases, safe habits, internal links and beginner FAQs.

10 essential linux commandsbeginner linux commandsuseful linux commandslinux commands for beginners
Read guide
2026-05-03

AWK Command Examples: Fields, Filters, Counts and Log Analysis

Learn the AWK command with practical examples for fields, delimiters, filtering, counting, totals, averages and web server log analysis.

awk command examplesawk tutorialawk linuxawk fields
Read guide
2026-05-03

Advanced grep Techniques: Logs, Regex, Context and Recursive Searches

Use advanced grep techniques for logs, recursive searches, regex, context lines, exclusions, pipelines, examples, output and troubleshooting FAQs.

advanced grep techniquesgrep exampleslinux grep commandgrep logs
Read guide
2026-05-03

Automate Linux Backups with rsync and systemd: Practical Backup Guide

Create automated Linux backups with rsync and systemd timers, including safe backup scripts, exclude files, restore checks, logs, troubleshooting and...

linux backups rsync systemdautomated linux backuprsync backup scriptsystemd timer backup
Read guide
2026-05-03

Bash For Loops Explained: Files, Lists, Arrays and Real Examples

Learn Bash for loops with practical examples for files, lists, arrays, logs, command output, safe scripting patterns, common mistakes and FAQs.

bash for loopbash for loop examplesbash loop through filesbash loop array
Read guide
2026-05-03

Bash Operators Explained: File, String, Number and Logic Tests

Learn Bash operators for beginners, including file tests, string tests, numeric comparisons, logic operators, arithmetic operators and practical if st...

bash operatorsbash test operatorsbash file operatorsbash string comparison
Read guide
2026-05-03

Bash Script Arguments Explained: $1, $2, $@, $# and Practical Examples

Learn how to use Bash script arguments including $0, $1, $2, $#, $@ and named variables. Includes practical scripts, output examples, usage checks and...

bash script argumentsbash $1 $2 explainedbash positional parametersbash all arguments
Read guide
2026-05-03

Bash Scripting Hub: Learn Bash Scripts, Loops, Arguments and Automation

A complete Bash scripting learning hub with beginner scripts, arguments, user input, operators, loops, functions, uptime monitoring and automation gui...

bash scripting hublearn bash scriptingbash scripts for beginnersbash script examples
Read guide
2026-05-03

Bash Scripting for Beginners Part 1: First Script, Variables and Output

Start Bash scripting with your first script, variables, echo, chmod, shebangs, output examples, practice tasks, common mistakes and FAQs.

bash scripting for beginnersbash script tutorialfirst bash scriptbash shebang
Read guide
2026-05-03

Bash Scripting for Beginners Part 2: Arguments, If Statements and Exit Codes

Learn Bash script arguments, if statements, test operators and exit codes. Includes practical scripts for checking files and Linux services with examp...

bash argumentsbash if statementbash exit codesbash test operators
Read guide
2026-05-03

Bash Scripting for Beginners Part 3: Loops, Functions and Admin Scripts

Learn Bash loops, functions and real admin scripting patterns with practical examples, outputs, logging ideas, internal links and FAQs.

bash loopsbash functionsbash arraysbash admin scripts
Read guide
2026-05-03

Bash User Input Explained: read, Prompts, Confirmations and Menus

Learn how to get user input in Bash scripts with read. Covers prompts, read -r, default values, confirmations, yes/no checks, simple menus, passwords...

bash read inputbash user inputbash prompt userbash read command
Read guide
2026-05-03

Basic Networking Commands on Linux: ip, ping, ss, dig, curl and More

Learn essential Linux networking commands with practical examples for hostname, ip, ping, ss, curl, dig, traceroute, firewall checks and troubleshooti...

basic networking commands linuxlinux networking commandshostname command linuxping command examples
Read guide
2026-05-03

Best SSH Terminals for Windows, Mac and Linux: Top Clients Compared

Compare the best SSH terminals for Windows, macOS and Linux, including PuTTY, Termius, MobaXterm, Windows Terminal, SecureCRT and iTerm2. Includes a c...

best ssh terminalbest ssh clientssh terminal windowsssh terminal mac
Read guide
2026-05-03

Git Command Guide: Basics, Branches, Merges, Logs and Safe Undo

Learn practical Git commands for status, add, commit, branches, merges, logs, diffs, safe undo, examples, output and FAQs.

git command guidegit commandsgit basicsgit branch
Read guide
2026-05-03

How to Connect to cPanel via SSH Using PuTTY: Step by Step Guide

Connect to cPanel via SSH using PuTTY with step-by-step setup, ports, usernames, keys, troubleshooting checks, examples and FAQs.

connect to cpanel via ssh using puttyputty cpanel ssh guidecpanel ssh windowshow to use putty for cpanel
Read guide
2026-05-03

Is CompTIA Linux+ Worth It in 2026? Cost, Booking and Study Guide

Is CompTIA Linux+ worth it in 2026? Learn who Linux+ is best for, current exam details, cost guidance, how to book the exam, study materials, learning...

is comptia linux+ worth itcomptia linux+ 2026linux+ costlinux+ exam booking
Read guide
2026-05-03

Linux High Disk Usage Troubleshooting: du, df, Logs, Caches and Cleanup

Troubleshoot high disk usage on Linux with df, du, find, log checks, cache cleanup, large file discovery, safe workflows and FAQs.

linux high disk usagelinux disk full troubleshootingfind large files linuxdf du guide
Read guide
2026-05-03

Linux Troubleshooting Hub: Logs, Services, DNS, Disk and Backups

A practical Linux troubleshooting hub for logs, services, DNS, disk usage, backups, cPanel checks, networking commands and command line workflows.

linux troubleshootinglinux server troubleshootingsystemctl troubleshootingjournalctl logs
Read guide
2026-05-03

Search Logs for Errors on Linux: grep, journalctl, tail and awk

Search Linux logs for errors using grep, journalctl, tail, awk and useful pipelines, with examples, output, workflows and FAQs.

search logs for errors linuxgrep logs for errorslinux error logstail log file linux
Read guide
2026-05-03

Understanding Linux Permissions: chmod, chown, rwx and Numeric Modes

Understand Linux file permissions with chmod, chown, rwx, numeric modes, ownership, safe examples, output, common mistakes and FAQs.

understanding linux permissionslinux permissions explainedchmod 644 755linux chmod guide
Read guide
2026-05-03

Using AWK for Text Processing: Columns, Filters, Counts and Output

Learn AWK for text processing with fields, delimiters, filters, counts, totals, examples, output and links to deeper AWK guides.

awk text processingawk command exampleslinux awk guideawk print column
Read guide
2026-05-03

Website Uptime Monitoring Script in Bash

Build a website uptime monitoring script in Bash using curl, HTTP status codes, response times, timeouts, logging, cron and alert-friendly output for...

website uptime monitoring scriptbash uptime monitorwebsite uptime monitor scriptcurl check website status
Read guide
2026-05-03

What Is Nmap? Install, Basics, Safe Scans and Useful Examples

Learn what Nmap is, how to install it, safe authorised scan examples, output, host discovery, port checks, service detection and FAQs.

what is nmapinstall nmap linuxnmap examplesnmap beginner guide
Read guide
2026-05-03

cPanel Domlog Guide: Analyse Apache Access Logs for Traffic and Errors

Learn how to read cPanel domlogs, analyse IP traffic, URLs, status codes, bots, bandwidth, errors and suspicious requests with examples and FAQs.

cpanel domlog guidecpanel access logscpanel domlogsapache domlogs
Read guide
2026-05-03

cPanel Log Locations: Where to Find Useful Server Logs

A practical guide to common cPanel and WHM log locations, including Apache domlogs, cPanel errors, email logs, FTP logs, ModSecurity logs and backup l...

cpanel log locationswhm logscpanel error_logapache domlogs
Read guide
2026-05-03

dig Command Guide: DNS Lookups from the Linux Terminal

Learn how to use the dig command for DNS lookups, including A, AAAA, MX, TXT, NS, CNAME, reverse DNS, custom resolvers and troubleshooting examples.

dig commanddig linuxdns lookup commanddig examples
Read guide
2026-05-03

firewalld Guide: Zones, Services, Ports, Rules and Troubleshooting

Learn firewalld with zones, services, ports, permanent rules, reloads, troubleshooting commands, output examples, common mistakes and FAQs.

firewalld guidefirewall-cmd exampleslinux firewall zonesfirewalld add port
Read guide
2026-05-03

systemd Guide: Services, Timers, Logs and Troubleshooting

Learn systemd basics for Linux service management, including systemctl, journalctl, unit files, service status, enable vs start, timers, targets and t...

systemd guidesystemctl tutorialjournalctl examplessystemd timers
Read guide
2026-05-02

Best Linux Distro for Web Hosting

Discover the best Linux distro for web hosting, including Ubuntu, Debian, AlmaLinux and Rocky Linux. Learn which distribution is best for stability, c...

best linux distro for web hostinglinux distro for hostingalmalinux vs ubuntu hostingrocky linux web hosting
Read guide
2026-05-02

MySQL CLI for WordPress: Practical Database Troubleshooting Commands

Use the MySQL command line for WordPress troubleshooting with safe read-only checks, database size queries, site URL checks, users, backups, examples...

mysql cli wordpresswordpress mysql command linemysql wordpress databasewordpress database troubleshooting
Read guide
2026-05-02

Top 10 Linux Commands for Troubleshooting Websites: Examples and Output

Troubleshoot websites with Linux commands including curl, dig, ss, systemctl, journalctl, tail, grep, df, du and top, with examples and FAQs.

top 10 linux commands for troubleshooting websiteslinux troubleshooting commandswebsite troubleshooting linuxgrep logs
Read guide
2026-05-02

WP-CLI Search Replace Guide: Safely Update WordPress URLs and Domains

Safely use WP-CLI search-replace for WordPress migrations, URL changes and mixed content fixes with dry runs, backups, examples and FAQs.

wp-cli search replacewordpress cli search replacewp search-replacefix mixed content wordpress
Read guide
2026-05-02

WordPress CLI Getting Started: Practical WP-CLI Commands for Beginners

Learn WP-CLI basics with practical commands for WordPress versions, plugins, themes, users, updates, database exports, maintenance workflows and FAQs.

wordpress cli getting startedwp-cli tutorialwp cli commandswordpress command line
Read guide

Browse by goal

Guide categories

Bash scripting

14+ guides covering scripts, arguments, input, loops, functions and practical automation.

Open Bash Hub →

Troubleshooting

23+ guides for logs, errors, services, disk usage and server checks.

Open Hub →

Networking and DNS

9+ guides covering SSH, dig, Nmap, firewalld and basic network checks.

Start networking →

Recommended workflow

How to use the blog

1. Read the guide

Start with an article when you need context, examples and command output.

2. Build the command

Use a command builder to turn the concept into a usable command.

3. Test yourself

Finish with a quiz or cheat sheet so the syntax stays in your head.