Linux Commands
Command references for core Linux tools, syntax, examples, and practical one-liners.
hostnamectl Command in Linux: Set and Query Hostname
Use hostnamectl to view and change the Linux hostname. Covers static, transient, and pretty names, system metadata, remote hosts, and common errors.

host Command in Linux: DNS Lookup
The host command is a simple DNS lookup tool. This guide covers forward and reverse lookups, querying specific record types, using a chosen name server, and reading the output.

pidof Command in Linux: Find Process IDs by Name
The pidof command finds the process ID (PID) of a running program by name. This guide explains how to use pidof, its options, and how to pair it with kill to manage processes.

Linux Pipes Explained: How to Use the | Operator
Linux pipes connect command output to another command's input. Learn the | operator, pipefail, stderr piping, xargs, named pipes, and process substitution.

Linux Time Command
This guide shows how to use the Linux time command to measure execution time, explains real/user/sys, and covers Bash, Zsh, and GNU time.

Uptime Command in Linux
The uptime command shows how long a Linux system has been running, the number of logged-in users, and the load averages for the last 1, 5, and 15 minutes.

pnpm Command: Install and Manage Node.js Packages
This pnpm command guide covers installation, project setup, dependency management, scripts, lockfiles, npm migration, and workspace filtering.

ls Command in Linux: List Files and Directories
The ls command lists files and directories in Linux. See how to use ls -l, ls -al, hidden-file options, sorting, and other practical combinations.

npm Command: Install and Manage Node.js Packages
This npm command guide covers project setup, local and global package installs, npm ci, updates, dependency removal, scripts, and one-off package runs.

Fix "sudo: command not found" on Linux
How to fix the 'sudo: command not found' error on Linux by installing the sudo package, adding your user to the right group, and recovering from a broken PATH.

Grep Multiple Patterns: Match Strings, Words, and Regex
Search for multiple patterns or strings at once with grep using the -e flag, fixed-string matching, alternation, and pattern files.

chgrp Command in Linux: Change File Group Ownership
The chgrp command changes the group ownership of files and directories in Linux. This guide covers syntax, recursive changes, symlink handling, and practical examples.

dpkg Command in Linux: Install and Manage Debian Packages
Use dpkg to install, remove, query, and inspect Debian packages on Ubuntu, Debian, and other Debian-based distributions.

reboot Command in Linux: Restart with systemctl and shutdown -r
Three commands cover common Linux reboot scenarios: reboot for an immediate restart, systemctl reboot for the systemd path, and shutdown -r for scheduled restarts with user notifications.

CPU Info on Linux: Check CPU Details from the Command Line
Two commands give you everything about your CPU on Linux: /proc/cpuinfo for raw per-core details, and lscpu for a readable summary. See how to use both.

tr Command in Linux: Translate, Delete, and Squeeze Characters
The tr command translates, deletes, and squeezes characters from standard input. This guide covers tr syntax, character sets and ranges, case conversion, removing line endings, and practical pipeline examples.

Understanding the /etc/fstab File in Linux
The /etc/fstab file defines how filesystems and storage devices are mounted at boot. This guide explains the fstab format, field meanings, mount options, and how to add new entries safely.



