Skip to content

Instantly share code, notes, and snippets.

@bliotti
Last active August 30, 2024 21:01
Show Gist options
  • Save bliotti/fa2fde5037d1233af050097cbfe3f480 to your computer and use it in GitHub Desktop.
Save bliotti/fa2fde5037d1233af050097cbfe3f480 to your computer and use it in GitHub Desktop.
What machine am I?
#!/usr/bin/env bash
lsb_release -a
echo
cat /etc/os-release
echo
uname -a
# EXAMPLE OUTPUT
#
# [email protected]:~ ₿ ./machine
# No LSB modules are available.
# Distributor ID: Debian
# Description: Debian GNU/Linux 12 (bookworm)
# Release: 12
# Codename: bookworm
# PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
# NAME="Debian GNU/Linux"
# VERSION_ID="12"
# VERSION="12 (bookworm)"
# VERSION_CODENAME=bookworm
# ID=debian
# HOME_URL="https://www.debian.org/"
# SUPPORT_URL="https://www.debian.org/support"
# BUG_REPORT_URL="https://bugs.debian.org/"
# Linux raspberrypi 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment