↑ ↓ select, Enter open, Esc close

Show operating system, kernel and hardware at a glance

user@server
hostnamectl

Summarizes the key system data: Operating System, Kernel, Architecture and, on virtual servers, Virtualization (for example kvm). On Debian 12 and Ubuntu 24.04, Hardware Vendor and Hardware Model also appear if the firmware provides them. Ideal as the first command on an unfamiliar server.

Note: The exact Debian point release is only in /etc/debian_version.

Also searched as

  • which linux is running on the server
  • show system info
  • is this a vm or bare metal

Related one-liners

All in System and hardware

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.