OS(1)

πŸ“¦
version 2021-03 Β· 2 versions
, in nixos 26.05

πŸ’– 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} β€” NAME from /etc/os-release on Linux, or lowercase output of uname -s on other os's.
  • ${id} β€” ID from /etc/os-release on Linux, or output of uname -s on other os's.
  • ${pretty_name} β€” PRETTY_NAME from /etc/os-release on Linux, or output of uname -s on 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 🧚

fetchutils(1)

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