System Info

Summary

This note is a quick reference for identifying the current Linux system, checking runtime state, and confirming a few basic host details before you go deeper into troubleshooting.

Commands

CommandPurpose
cat /etc/os-releasecheck Linux distribution metadata
uname -rcheck the current kernel version
hostnamectlshow host identity and OS summary
systemctl status <service>inspect service state
journalctl -xeinspect recent system and service events
journalctl -binspect logs from the current boot

Example usage

cat /etc/os-release
uname -r
hostnamectl
journalctl -b

Notes

  • start here when you need to confirm what system you are on before troubleshooting further
  • hostnamectl, uname, and /etc/os-release answer slightly different questions, so it is normal to use more than one
  • distro-specific host checks, such as rpm-ostree status, belong in Fedora Atomic notes rather than general Linux reference