https://github.com/justintimperio/nixinfo
A tool designed to return info about a target *nix machine
https://github.com/justintimperio/nixinfo
Last synced: 2 months ago
JSON representation
A tool designed to return info about a target *nix machine
- Host: GitHub
- URL: https://github.com/justintimperio/nixinfo
- Owner: JustinTimperio
- License: mit
- Created: 2020-09-25T16:50:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T21:24:32.000Z (over 5 years ago)
- Last Synced: 2026-03-31T19:54:29.508Z (3 months ago)
- Language: Shell
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NixInfo
Nixinfo is a tool designed to return info about a target \*nix based machine.
# Usage
Sample output for each distro [here](https://github.com/JustinTimperio/nixinfo/blob/master/sample_output.md).
### Print For a User
```shell
$ curl -s https://raw.githubusercontent.com/JustinTimperio/nixinfo/master/nixinfo.sh | sh
Distribution='SHORTNAME'
Full_Name='Full Pretty Name'
Package_Manager='pkg_manager'
Kernel='#.#.#'
Major='####'
Minor='####'
Patch='####'
```
### Import In a Shell Script
```shell
source /your/path/nixinfo/nixinfo.sh no-print
# Imported Vars Below
$distro
$full_name
$pkg_manager
$kernel
$major
$minor
$patch
```
## Offically Supported Distros
Debian Based:
- Ubuntu
- Debian
- Kali Rolling
- Parrot OS
RHL Based:
- Fedora
- CentOS
- RHEL
- Oracle
Suse Based:
- Leap
- TumbleWeed
- SLES
Arch Based:
- Arch
Alpine Based:
- Alpine
BSD Based:
- FreeBSD