Linux & shell: System info
9 Linux & shell commands: System info. Click a command to see what each part does.
Linux & shell: System infoIndex
- Whole sheet251
- Navigate & list13
- Create, copy, move, delete13
- View & compare files9
- Permissions & ownership31
- Help & shell basics11
- Users & groups6
- Install packages7
- Package & software versions29
- System info9
- Network basics & SSH10
- Zip & compress4
- Shell operators6
- Processes6
- Files & search8
- Text processing pipelines4
- Disk3
- Network5
- Services & logs6
- Archives & copying4
- Firewall7
- Scheduling: cron & systemd timers6
- Storage, mounts & LVM10
- Kernel, hardware & limits8
- Performance & tracing10
- TLS & certificates8
- Packet capture & network debugging10
- Terminal tools8
System info9
uname -aKernel and architectureWhat each part does
unamesystem information-aall: kernel name, hostname, release, version, architecture
cat /etc/os-releaseWhich Linux distribution and version?What each part does
/etc/os-releaseNAME, VERSION_ID, ID of the distro (ubuntu, debian, rhel…)
hostname; hostname -IHost name and IP addressesWhat each part does
hostnamethe machine name-Iall IP addresses of the host
uptimeHow long has it been running? Load?What each part does
uptimetime since boot, logged-in users, load average over 1/5/15 minutes
date; timedatectlDate, time and timezoneWhat each part does
datecurrent date and timetimedatectltimezone and whether NTP sync is active
nproc; lscpuCPU cores and modelWhat each part does
nprocnumber of CPUs availablelscpuCPU model, cores, threads, architecture
lsblkDisks and partitionsWhat each part does
lsblkblock devices as a tree: disks, partitions, sizes, mount points
findmntWhat is mounted whereWhat each part does
findmntmounted filesystems as a tree (cleaner than mount)
sudo reboot; sudo shutdown -h nowReboot / shut downDestructiveWhat each part does
rebootrestart the machineshutdown -h now-h = halt/power off, now = immediately (or +10 for 10 minutes)
Nothing matches.
My DevOps Playbook by Angelo John Calleja