who Command in Linux: Show All Logged-In Users and Sessions

2 months ago

When you share a server with a team or investigate unexpected activity, the first question is simple: who is on…

file Command in Linux: Identify File Types Without Extensions

2 months ago

The file command inspects the actual contents of a file and reports its type — regardless of the name or extension. A…

chattr Command in Linux: Set File Attributes with lsattr

2 months ago

chattr sets and removes special file attributes that operate at the filesystem level, separate from standard permission bits. You can mark…

env Command in Linux: Show and Set Environment Variables

2 months ago

env prints the current environment, sets or removes variables for a single command, and can start a process with an entirely…

nmap Command in Linux: Port Scanning and Host Discovery Guide

2 months ago

nmap (Network Mapper) discovers live hosts, identifies open ports, and detects which service is running behind each one. It is…

id Command in Linux: Display User and Group Information

2 months ago

The id command prints user and group identity for any account on the system. It shows the real user ID, primary group…

sed Delete Lines: Remove Lines by Number, Pattern, or Range

2 months ago

sed processes input line by line, applies your commands, and writes the result to standard output. The original file stays untouched…

How to Rename Directories in Linux: mv, Loops, and rename

2 months ago

Linux provides two main tools for renaming directories: mv for single renames and the rename utility for batch pattern-based operations. How to Rename a…

w Command in Linux: Show Logged-In Users and System Activity

2 months ago

The w command in Linux shows who is currently logged in to the system and what each user is doing. It combines…

sysctl Command in Linux: View and Change Kernel Parameters

2 months ago

The sysctl command reads and modifies Linux kernel parameters from the command line. Changes take effect immediately at runtime but are not…