Built-in Linux commands for post-exploitation situational awareness — the Linux counterpart to windows-reconnaissance-commands. These require no external tools, work on virtually any Linux system, and map to MITRE ATT&CK Discovery techniques. They are also LOLBins — living-off-the-land binaries that blend in with normal administration.
System identity
Command
Purpose
cat /etc/issue
OS distribution banner
cat /proc/version
Kernel version and build info
hostname
System hostname
uname -a
Kernel, architecture, hostname, OS
Users and privileges
Command
Purpose
cat /etc/passwd
All local user accounts
id
Current user’s UID, GID, and groups
w
Currently logged-in users and their processes
who
Logged-in users (with source IP for network sessions)