# `Apero.OS`
[🔗](https://github.com/Lorenzo-SF/apero/blob/3.0.0/lib/apero/os.ex#L1)

Operating system information utilities for Apero (pure-Elixir subset).

Provides a minimal interface for querying OS type and hostname using
only pure Erlang/Elixir standard library calls — no shell execution.

For shell-based operations (arch, kernel version, distribution, CPU
count, memory, root check, WSL/container detection) see `Trebejo.OS`.

# `os_type`

```elixir
@type os_type() :: :linux | :macos | :windows | :unknown
```

# `hostname`

```elixir
@spec hostname() :: binary()
```

Returns the machine hostname.

# `type`

```elixir
@spec type() :: os_type()
```

Returns the operating system type.

Possible values: `:linux`, `:macos`, `:windows`, `:unknown`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
