System and user information

User

Display current username (or user when using sudo)

whoami
sudo whoami

Show currently logged in user

who

Permission details for current user

id

List users for system

users

Display information about system user

finger <username>

Show login history for system (or system reboot history)

last
last reboot

Operating System

Display the Unix system type being used

Display the processor architecture (-p) or machine hardware (-m). (Examples: Processor arm, i386 / Hardware arm64, x86_64)

Display system OS information (Linux)

Show distribution specific version information (Linux)

Display basic system OS information or more detailed system config (macOS)

Command Info

Search system commands and display short description

Show location of command for current user path config

Show all locations for command

Uptime

Display system uptime, memory, who is logged in and what they are doing

System uptime statistics

Hostname

Display the machine short hostname

Display the machine fully qualified hostname

Processes

Display real time information about process

Display detailed real time information about the system

Show list of running processes

Memory

Show memory usage (in megabytes)

Network

Network settings including computer IP

Local machine IP

Show smb info for network volumes

Terminal

Output key / value pairs of current environment variables

Output current terminal settings

Log Files

Log files location

System Mail

System mail messages for users

Show mail messages

Empty mail messages (via truncate operator >)

Empty mail messages (alternative command)

Last updated