Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 version

Examples:

$ 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