> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tsukineos.top/llms.txt
> Use this file to discover all available pages before exploring further.

# Command Reference

> Quick reference for TsukineOS commands.

# Command Reference: TsukineOS Quick Reference

## Core System Commands

| Command                         | Function                                       | Example                                                                 |
| ------------------------------- | ---------------------------------------------- | ----------------------------------------------------------------------- |
| `taskmgr` / `tsukine_top`       | Task manager, shows process list               | `taskmgr -u` (user processes only) `taskmgr -c` (kernel processes only) |
| `net` / `tsukine_net`           | Network configuration daemon                   | `net &` (run in background)                                             |
| `netui` / `tsukine_net_ui`      | Network traffic monitor                        | `netui`                                                                 |
| `ping` / `tsukine_ping`         | ICMP connectivity test (custom implementation) | `ping -c 4 8.8.8.8`                                                     |
| `iwr` / `tsukine_iwr`           | HTTP download tool                             | `iwr http://example.com/file -o out.txt`                                |
| `reboot` / `tsukine_reboot`     | Reboot the system                              | `reboot`                                                                |
| `shutdown` / `tsukine_shutdown` | Shut down the system                           | `shutdown`                                                              |

## Package Management Commands

| Command                        | Function                                       | Example                          |
| ------------------------------ | ---------------------------------------------- | -------------------------------- |
| `tknpkg install <package.tkn>` | Install a `.tkn` package                       | `tknpkg install hello-1.0.0.tkn` |
| `tknpkg remove <package>`      | Uninstall a package                            | `tknpkg remove hello`            |
| `tknpkg list`                  | List installed packages                        | `tknpkg list`                    |
| `tknpkg build <directory>`     | Build a `.tkn` package from a source directory | `tknpkg build mypkg/`            |

## Text Editing and File Viewing

*These commands are provided by BusyBox and work the same as on standard Linux.*

| Command | Function                  | Example                    |
| ------- | ------------------------- | -------------------------- |
| `nano`  | Text editor               | `nano /etc/profile`        |
| `cat`   | View file contents        | `cat /etc/hostname`        |
| `ls`    | List directory contents   | `ls -l /usr/bin/`          |
| `cp`    | Copy files or directories | `cp file1 file2`           |
| `mv`    | Move or rename files      | `mv old new`               |
| `rm`    | Delete files              | `rm /tmp/test.txt`         |
| `mkdir` | Create directories        | `mkdir /home/user`         |
| `chmod` | Change file permissions   | `chmod +x /usr/bin/script` |

## Shell and Environment

| Command    | Function                           | Example                           |
| ---------- | ---------------------------------- | --------------------------------- |
| `dash`     | Default shell (`/bin/sh`)          | Entered automatically after login |
| `echo`     | Print text                         | `echo "Hello"`                    |
| `export`   | Set environment variables          | `export PATH=/usr/bin:$PATH`      |
| `whoami`   | Show current username              | `whoami`                          |
| `id`       | Show user ID and group information | `id`                              |
| `hostname` | Show or set the hostname           | `hostname`                        |

## System Information and Logs

| Command                        | Function                        | Example             |
| ------------------------------ | ------------------------------- | ------------------- |
| `dmesg`                        | Show kernel logs                | `dmesg \| tail -20` |
| `cat /proc/cpuinfo`            | View CPU information            | —                   |
| `cat /proc/meminfo`            | View memory information         | —                   |
| `cat /proc/version`            | View kernel version             | —                   |
| `cat /var/log/tsukine_net.log` | View network configuration logs | —                   |

## User Management

| Command  | Function                                    | Example                   |
| -------- | ------------------------------------------- | ------------------------- |
| `login`  | Login prompt (called automatically at boot) | `login:` shown after boot |
| `su`     | Switch user                                 | `su - dmin`               |
| `whoami` | Show current user                           | `whoami`                  |

## Network Related

| Command    | Function                                          | Example             |
| ---------- | ------------------------------------------------- | ------------------- |
| `ip addr`  | Show network interface information                | `ip addr show eth0` |
| `ip route` | Show routing table                                | `ip route`          |
| `ping`     | Test network connectivity (custom implementation) | `ping -c 4 8.8.8.8` |
| `net`      | Configure network (daemon)                        | —                   |

## Shortcuts (Symlinks)

| Actual Command     | Symlink    | Description           |
| ------------------ | ---------- | --------------------- |
| `tsukine_top`      | `taskmgr`  | Task manager          |
| `tsukine_net`      | `net`      | Network configuration |
| `tsukine_net_ui`   | `netui`    | Network monitor       |
| `tsukine_ping`     | `ping`     | ICMP test             |
| `tsukine_iwr`      | `iwr`      | HTTP download         |
| `tsukine_reboot`   | `reboot`   | Reboot                |
| `tsukine_shutdown` | `shutdown` | Shut down             |

## Configuration File Paths

| File                       | Purpose                                   |
| -------------------------- | ----------------------------------------- |
| `/etc/profile`             | Environment variables and prompt settings |
| `/etc/passwd`              | User account information                  |
| `/etc/shadow`              | User passwords (encrypted)                |
| `/etc/group`               | User group information                    |
| `/etc/hostname`            | Hostname                                  |
| `/etc/network/interfaces`  | Network configuration (static IP / DHCP)  |
| `/var/log/tsukine_net.log` | Network service logs                      |
| `/var/lib/tknpkg/db`       | Installed package database                |

## Prompt Explanation

| User        | Prompt             | Example           |
| ----------- | ------------------ | ----------------- |
| root        | `root@tsukine:\W#` | `root@tsukine:/#` |
| dmin        | `dmin@tsukine:\W$` | `dmin@tsukine:/$` |
| Other users | `user@tsukine:\W$` | `user@tsukine:/$` |

<Note>
  This page was translated by AI and may contain inaccuracies. The Simplified Chinese version is authoritative.
</Note>

***

© 2024-2026 TsutokiTeo/JunweiZhang. All rights reserved.
