#uname
Kernel and system
uname [-a]uname -aKernel version, host name and architecture
uname -mJust the architecture (x86_64, aarch64)
unameKernel and system
uname [-a]uname -aKernel version, host name and architecture
uname -mJust the architecture (x86_64, aarch64)
uptimeHow long it has been running
uptimeuptimeTime up, users, and the load average
hostnameServer name
hostname [-I]hostnameThe server's name
hostname -IIts IP addresses
dateDate and time
date [+format]dateCurrent date and time
date +%Y-%m-%d2026-10-10 style date, good for file names
date -uUTC time
lscpuCPU details
lscpulscpuModel, cores and speed
lsb_releaseDistribution name
lsb_release -acat /etc/os-releaseWorks on nearly every distribution
lsb_release -aDebian and Ubuntu style
dmesgKernel messages
sudo dmesg [-T]sudo dmesg -T | tailRecent hardware and driver messages with readable times
lsofOpen files and ports
sudo lsof [options]sudo lsof -i :80Which program uses port 80
sudo lsof -u aliceEverything user alice has open
historyCommands you typed before
historyhistoryNumbered list
history | grep sshFind an earlier command
!123Run command number 123 again
env / printenvEnvironment variables
printenv [name]printenv HOMEShow one variable
envShow all of them
lspci / lsusbHardware lists
lspci | lsusblspciDevices on the PCI bus
lsusbUSB devices
SSH Command is a desktop app for Mac, Windows and Linux that puts a real terminal, SFTP file panes, a sudo switch and a searchable Linux command finder in one window. Type what you want to do, and send the command to your server with one click.
Download free Windows commands with examples SFTP & FTP client