{"id":22808137,"url":"https://github.com/sixarm/unix-system-version-information","last_synced_at":"2025-06-20T18:06:59.457Z","repository":{"id":137270583,"uuid":"67364593","full_name":"SixArm/unix-system-version-information","owner":"SixArm","description":"Unix system version information","archived":false,"fork":false,"pushed_at":"2023-09-15T19:30:58.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-06T00:03:51.247Z","etag":null,"topics":["lsb-release","pkginfo","script","shell","sw-vers","system","uname","unix","version"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SixArm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-04T19:38:16.000Z","updated_at":"2023-09-15T19:31:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"a94503a5-9c17-4429-8317-5849d935dbd6","html_url":"https://github.com/SixArm/unix-system-version-information","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Funix-system-version-information","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Funix-system-version-information/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Funix-system-version-information/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Funix-system-version-information/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/unix-system-version-information/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246379379,"owners_count":20767696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lsb-release","pkginfo","script","shell","sw-vers","system","uname","unix","version"],"created_at":"2024-12-12T11:08:05.123Z","updated_at":"2025-03-30T20:53:11.067Z","avatar_url":"https://github.com/SixArm.png","language":"Shell","readme":"# Unix system version information\n\nPrint the current Unix system version information.\n\nSyntax:\n\n    unix-system-version-information\n\nExample:\n\n    $ unix-system-version-information\n    Unix System Version Information\n    timestamp: 2016-09-04T19:32:43Z\n\n    uname -a\n    Darwin host.example.com\n    16.0.0 Darwin Kernel Version 16.0.0: Thu Aug 18 18:25:11 PDT 2016;\n    root:xnu-3789.1.29~5/RELEASE_X86_64 x86_64\n\n    sw_vers\n    ProductName:       Mac OS X\n    ProductVersion:    10.12\n    BuildVersion:      16A304a\n\n\n## Goals\n\nThis script has three goals:\n\n  * Print the OS name, version, build, and related information.\n\n  * Run cross platform on many Unix systems and Unix-like systems.\n\n  * Print information that may be useful for diagnostics and debugging.\n\nThis script prints a timestamp, which can be useful for snapshotting\nsystem information during an upgrade process, or at differing times, etc.\n\nThis implementation looks for information in these places:\n\n  * The `uname` command.\n  * The `sw_vers` command on macOS.\n  * The `pkginfo` command on Solaris.\n  * The `lsb_release` command on Linux.\n  * Files with names including `release`, `version`, `issue`, etc.\n  * We welcome more ways of finding information.\n\nThis implementation is intended to work on current versions of\nmany Unix systems and Unix-like systems, using POSIX shell commands.\n \nThis implementation looks for commands and files suitable for\nAnnvix, Arch Linux, Arklinux, Aurox Linux, BlackCat, BSD Cobalt,\nChakra, Conectiva, Debian, Fedora / Fedora Core, FreeBSD, FreeEOS,\nGentoo Linux, HLFS, HPUX, Immunix, IYCC, Knoppix, Linux-From-Scratch /\nLFS, Linux-PPC, Linux Mint, Apple Macintosh macOS / OS X / Darwin,\nMageia, Mandrake, Mandriva/Mandrake Linux, MkLinux, Novell Linux\nDesktop, PLD Linux, RHEL / RHAS / Red Hat Linux, Rubix, Scientific\nLinux / ScientificSL / ScientificCERNSLC / ScientificFermiLTS /\nScientificSLF, Slackware, SME Server (Formerly E-Smith), Solaris\nSPARC, Sun JDS, SUSE Linux, SUSE Linux ES9, Synology, Tiny Sofa,\nTrustix, TurboLinux, Ubuntu Linux, UltraPenguin, UnitedLinux,\nVA-Linux/RH-VALE, Yellow Dog.\n\n## uname command\n\nThis script calls the `uname` command, which prints the\noperating system name plus more system information.\n\nExample on Apple macOS:\n\n    $ uname -a\n    Darwin hostname 14.0.0\n    Darwin Kernel Version 14.0.0:\n    Fri Sep 19 00:26:44 PDT 2014;\n    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64\n\nExample on Oracle Solaris:\n\n    $ uname -a\n    SunOS sndcc02.sanjose.ibm.com 5.10 Generic sun4u sparc\n    SUNW,Sun-Fire-V490\n\nExample on Ubuntu Linux:\n\n    $ uname -a\n    Linux hostname 2.6.35.4-rscloud #8 SMP\n    Mon Sep 20 15:54:33 UTC 2010\n    x86_64 GNU/Linux\n\n\n## sw_vers command\n\nThe macOS `sw_vers` command prints software version\ninformation, such as the product name and build version.\n\nExample of `sw_vers` running on macOS:\n\n    $ sw_vers\n    ProductName:Mac OS X\n    ProductVersion:10.10\n    BuildVersion:14A389\n\n\n## lsb_release command\n\nThe Linux `lsb_release` command prints distribution \ninformation, such as the release name, codename, \ndescription, etc.\n\nExample of `lsb_release` running on Ubuntu Linux:\n\n    $ lsb_release -a \n    No LSB modules are available.\n    Distributor ID:    Ubuntu\n    Description:       Ubuntu 16.04.1 LTS\n    Release:           16.04\n    Codename:          xenial\n\n\n## release version files\n\nSome systems put release version information in a plain text file.\n\nThe file is often called \"release\", \"version\", \"issue\", or similar.\n\nThe file is stored in a typical location, such as `/etc/version`, or similar.\n\nExamples:\n\n    $ cat /etc/release\n    Solaris 10 5/08 s10x_u5wos_10 X86 ...\n    Solaris 10 10/09 (Update 8) Patch Bundle applied.\n\n    $ cat /proc/version\n    Linux version 4.4.0-34-generic (buildd@lgw01-20) \n    (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1) )\n    #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016\n\n    $ cat /etc/issue.net\n    Ubuntu 16.04.1 LTS\n\n\n## Thanks\n\nThanks for guidance, advice, and improvements:\n\n  * [Linux Mafia FAQ on release files](http://linuxmafia.com/faq/Admin/release-files.html)\n  * [andlrc](https://www.reddit.com/user/andlrc)\n  * [whetu](https://www.reddit.com/user/whetu)\n\n\n## Tracking\n\n* Command: unix-system-info\n* Version: 3.4.0\n* Created: 2014-12-24\n* Updated: 2016-09-05\n* License: BSD, MIT, GPL\n* Contact: Joel Parker Henderson (joel@joelparkerhenderson.com)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Funix-system-version-information","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixarm%2Funix-system-version-information","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Funix-system-version-information/lists"}