OS(1)
π OS(1) β get operating system or Linux distro name π
okay bestie, this is the OS(1) page from the General Commands Manual β and itβs literally all about os, the tiny icon that tells you your operating system or Linux distro name. β¨
π¦ NAME π¦
os β get operating system or Linux distro name
β¨ SYNOPSIS β¨
os [format]
πΈ DESCRIPTION πΈ
os retrieves the name and id of the current distro (in the case of Linux), or the operating system name in the case of another system (such as BSD). no cap, thatβs the whole vibe. π
π FORMAT SPECIFIERS π
${name}βNAMEfrom/etc/os-releaseon Linux, or lowercase output ofuname -son other os's.${id}βIDfrom/etc/os-releaseon Linux, or output ofuname -son other os's.${pretty_name}βPRETTY_NAMEfrom/etc/os-releaseon Linux, or output ofuname -son other os's.
π₯ EXAMPLES π₯
Executing os with no format, like so:
os
runs os with the default format, '${name}'.
sample result on Linux: 'Ubuntu' sample result on FreeBSD: 'FreeBSD'
A custom format can be used, e.g.:
os '${name},${id},${pretty_name}'
sample result on Linux: 'Ubuntu,debian,Ubuntu 18.04.4 LTS' sample result on FreeBSD: 'FreeBSD,freebsd,FreeBSD'
π REPORTING BUGS π
Please report any bugs to https://github.com/lptstr/fetchutils/issues or to kiedtl@tilde.team. π«Ά
π§ SEE ALSO π§
The full documentation for os is not maintained as a Texinfo manual. If the info and os programs are properly installed on your system, the command
info os
should not give you access to the complete manual.
π LICENSE π
Copyright Β© 2020 KiΓ«d Llaentenn and contributors
This utility is licensed under the MIT license.
later, bestie β this OS(1) page came from the General Commands Manual and is dated 1980-01-01 π
β¨
π¦ where this page comes from
- nixos 26.05: fetchutils-unstable 2021-03-16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms