Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abranhe/os
Know you operating system from your terminal. Written in C.
https://github.com/abranhe/os
c-library c-module cli clib clibs freebsd linux macos operating-system os win32 win64 windows
Last synced: 8 days ago
JSON representation
Know you operating system from your terminal. Written in C.
- Host: GitHub
- URL: https://github.com/abranhe/os
- Owner: abranhe
- License: mit
- Created: 2018-11-11T05:45:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T06:19:57.000Z (over 5 years ago)
- Last Synced: 2024-10-12T12:15:13.691Z (about 1 month ago)
- Topics: c-library, c-module, cli, clib, clibs, freebsd, linux, macos, operating-system, os, win32, win64, windows
- Language: C
- Homepage: https://projects.abranhe.com/os
- Size: 8.79 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
os: Know your operating system from your terminal
## Installation
Installing with [Clib](https://github.com/clibs/clib)
```sh
$ clib install abranhe/os
```Otherwise you can install by running the following on your terminal (**Unix** only)
```sh
$ curl -s https://sh.abranhe.com/os | bash
```to uninstall it you can use
```sh
$ curl -s https://sh.abranhe.com/os/uninstall | bash
```## Usage
If you run:
```
$ os --help
```You will get:
```
Usage: os [options]Options:
-h, --help output help information
-v, --version output os versionExamples:
$ os
macOS
```## Related
- [os.c][os]: API for this module written in C.
## Team
|[![Carlos Abraham Logo][abranhe-img]][abranhe]|
| :-: |
| [Carlos Abraham][abranhe] |## License
[MIT][license] License © [Carlos Abraham][abranhe]
[abranhe]: https://github.com/abranhe
[abranhe-img]: https://avatars3.githubusercontent.com/u/21347264?s=50
[license]: https://github.com/abranhe/os/blob/master/license
[travis-badge]: https://img.shields.io/travis/abranhe/os.svg
[travis-status]: https://travis-ci.org/abranhe/os
[os]: https://github.com/abranhe/os.c