Linux Commands
Command references for core Linux tools, syntax, examples, and practical one-liners.
How to Rename a Directory or Folder in Linux
Rename a folder in Linux with mv, avoid the move-inside-existing-directory trap with -T, and batch rename directories using loops, find, and rename.

git fetch vs git pull: What Is the Difference?
git fetch downloads remote changes without touching your branch, while git pull also merges or rebases them. See when to use each and how to fix pull errors.

nmap Command in Linux with Practical Examples
Practical nmap examples for Linux: find live hosts, scan specific or top ports, run sudo nmap SYN scans, detect service versions, and speed up scans with -T4.

Linux patch Command: Apply Diff Files
The Linux patch command applies diff files to your original files. Examples cover creating a patch with diff, testing it with --dry-run, -p1 for Git patches, backups, and reversing changes.

How to Diagnose OOM Killer Events in Linux
Diagnose Linux OOM kills with dmesg and journalctl, identify affected processes, check service memory limits, and investigate systemd-oomd events.

How to Use the Linux ftp Command to Transfer Files
Transfer files to and from a remote server using the Linux ftp command. Covers connections, downloads, uploads, passive mode, and scripted transfers.

fdisk Command in Linux: Create Disk Partitions
Use the fdisk command in Linux to list disks, create GPT or MBR partitions, change partition types, format new partitions, and mount them safely.

timedatectl Command in Linux: Manage Time, Date, and Time Zone
Check and change the system time, time zone, and NTP sync with timedatectl, plus how to see and set NTP servers with chrony or systemd-timesyncd.

How to Check Listening Ports in Linux: ss, netstat, lsof
Use ss, netstat, or lsof to list all listening ports in Linux, identify which process is using a specific port, and filter results by protocol or port number.

How to Check Linux Version: Distro and Kernel Commands
Terminal commands that show your Linux distribution, release number, and kernel version, including the exact point release on Debian and RHEL systems.

rename Command in Linux: Rename Multiple Files
Batch rename files in Linux with the rename command using Perl regular expressions. Includes syntax, examples, and tips for the Perl and C versions.

dd Command in Linux: Copy Disks, Partitions, and Files
This guide explains how to use the dd command in Linux to write ISO images, clone disks, back up partitions, wipe drives, and test disk speed.

How to Mount and Unmount File Systems in Linux
Mount and unmount file systems in Linux with the mount and umount commands. Examples cover USB drives, ISO files, NFS shares, bind mounts, and persistent /etc/fstab entries.

How to Rename Files and Directories in Linux
Rename files and directories in Linux using mv for single renames and rename for batch filename changes, including extension changes, case conversion, and safe previews.

How to Create Groups in Linux: groupadd Command
This guide explains how to create groups in Linux using the groupadd command, including how to set a custom GID, create system groups, and manage group options.

scp Command in Linux: Secure File Transfer Examples
SCP copies files securely between local and remote hosts over SSH. This guide covers syntax, uploads, downloads, custom ports, and the options you need for everyday transfers.

Free Command in Linux
Learn how to use the Linux free command to check RAM and swap usage. Includes output explained, human-readable format, and useful options.

How to Check Memory Usage in Linux
Check RAM and swap usage in Linux with free, top, /proc/meminfo, and ps_mem, and find out which processes are consuming the most memory.

ifconfig Command in Linux: Configure Network Interfaces
Read the ifconfig output field by field, fix command not found, and assign IPv4 and IPv6 addresses, MTU, and MAC values, with the ip equivalent alongside.

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.
