Linux Commands
Command references for core Linux tools, syntax, examples, and practical one-liners.
ssh Command in Linux: Connect to Remote Servers
The ssh command connects you to a remote Linux server. This guide covers its syntax, the most useful options, key-based login, and port forwarding.

update-alternatives Command on Ubuntu and Debian
Use update-alternatives on Ubuntu and Debian to list, register, switch, and remove program alternatives, with automatic and manual mode examples.

How to Find Which Process Is Using a Port in Linux
Find the Linux process listening on a TCP or UDP port with ss, lsof, fuser, or netstat, then inspect and stop it safely.

Linux uname Command: Print System Information
The uname command prints kernel name, version, architecture, and hostname. This guide covers all uname options with examples and practical scripting uses.

which Command in Linux: Find Executable Locations
Use the which command to locate executables in PATH, list every match, and check command availability. Compare which with command -v, type, and whereis.

How to Set or Change the Time Zone in Linux
Check and change the Linux system time zone with timedatectl, choose the correct Region/City value, verify /etc/localtime, and handle non-systemd systems.

head Command in Linux: Print the First N Lines of a File
The head command prints the first lines or bytes of a file. This guide shows how to display a specific number of lines, preview files, and limit command output in pipelines.

lsusb, lspci, and lshw: List Hardware in Linux
Identify the hardware in a Linux machine: list USB devices with lsusb, find PCI cards and their drivers with lspci, and get a full inventory with lshw.

tail Command in Linux: Show Last Lines and Follow Logs
Use the Linux tail command to show the last N lines or bytes of a file, follow logs in real time with tail -f, and filter live output with grep.

umask Command in Linux: Set Default File Permissions
The umask command sets the default permission mask for newly created files and directories. This guide explains how umask works, how to calculate its value, and how to make it permanent.

export Command in Linux: Set Bash Environment Variables
Use export to turn Bash shell variables into environment variables that child processes inherit, list exported variables, and make them permanent across sessions.

lsof Command in Linux: Find Open Files and What Is Using a Port
Use the lsof command to find what is using a port, identify processes holding files open, and locate deleted files that still consume disk space.

How to Unzip a .gz File in Linux
Unzip a .gz file in Linux with gzip or gunzip, keep the original file when needed, and extract .tar.gz archives with tar.

sha256sum and md5sum: Verify Checksums in Linux
Check a file's SHA-256 or MD5 checksum in Linux: generate digests with sha256sum and md5sum, verify SHA256SUMS lists with -c, and confirm ISO downloads.

What Is stdin, stdout, and stderr in Linux
stdin, stdout, and stderr are Linux's three standard streams. See how file descriptors 0, 1, and 2 connect commands to terminals, files, and pipes.

less Command in Linux: Navigate and Search Files
How to use the less command in Linux to view files page by page, search for text, follow log files in real time, and navigate with vi-style key bindings.

passwd Command in Linux: Change User Passwords
Change your own, another user's, or the root password in Linux with the passwd command. Covers password expiry with chage, forcing a change at next login, and account locking.



