Linux Basics - OS
Betriebssystem anzeigen
cat /etc/os-release
Output:
root@SYS_1:/ # cat etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@SYS_1:/ #
oder
. /etc/os-release && echo "$PRETTY_NAME"
Output:
root@SYS_1:/ # cat etc/os-release
Debian GNU/Linux 11 (bullseye)
root@SYS_1:/ #
No Comments