> ## 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.

# TsukineOS コマンドリファレンス

> TsukineOS のコマンド速查表

# コマンドリファレンス — TsukineOS コマンド速查

## システムコアコマンド

| コマンド                            | 機能                     | 例                                                |
| ------------------------------- | ---------------------- | ------------------------------------------------ |
| `taskmgr` / `tsukine_top`       | タスクマネージャー、プロセスリストを表示   | `taskmgr -u`（ユーザープロセスのみ）`taskmgr -c`（カーネルプロセスのみ） |
| `net` / `tsukine_net`           | ネットワーク設定デーモン           | `net &`（バックグラウンド実行）                              |
| `netui` / `tsukine_net_ui`      | ネットワークトラフィック監視         | `netui`                                          |
| `ping` / `tsukine_ping`         | ICMP 接続性テスト *(注：独自実装)* | `ping -c 4 8.8.8.8`                              |
| `iwr` / `tsukine_iwr`           | HTTP ダウンロードツール         | `iwr http://example.com/file -o out.txt`         |
| `reboot` / `tsukine_reboot`     | システムの再起動               | `reboot`                                         |
| `shutdown` / `tsukine_shutdown` | システムのシャットダウン           | `shutdown`                                       |

## パッケージ管理コマンド

| コマンド                          | 機能                          | 例                                |
| ----------------------------- | --------------------------- | -------------------------------- |
| `tknpkg install <パッケージ名.tkn>` | `.tkn` パッケージをインストール         | `tknpkg install hello-1.0.0.tkn` |
| `tknpkg remove <パッケージ名>`      | インストール済みパッケージをアンインストール      | `tknpkg remove hello`            |
| `tknpkg list`                 | インストール済みパッケージを一覧表示          | `tknpkg list`                    |
| `tknpkg build <ディレクトリ>`       | ソースディレクトリから `.tkn` パッケージを生成 | `tknpkg build mypkg/`            |

## テキスト編集とファイル閲覧

*これらのコマンドは BusyBox によって提供され、使い方は標準の Linux と同じです。*

| コマンド    | 機能                | 例                          |
| ------- | ----------------- | -------------------------- |
| `nano`  | テキストエディタ          | `nano /etc/profile`        |
| `cat`   | ファイル内容を表示         | `cat /etc/hostname`        |
| `ls`    | ディレクトリ内容を一覧表示     | `ls -l /usr/bin/`          |
| `cp`    | ファイルまたはディレクトリをコピー | `cp file1 file2`           |
| `mv`    | ファイルを移動または名前を変更   | `mv old new`               |
| `rm`    | ファイルを削除           | `rm /tmp/test.txt`         |
| `mkdir` | ディレクトリを作成         | `mkdir /home/user`         |
| `chmod` | ファイル権限を変更         | `chmod +x /usr/bin/script` |

## Shell と環境

| コマンド       | 機能                      | 例                            |
| ---------- | ----------------------- | ---------------------------- |
| `dash`     | デフォルトの shell（`/bin/sh`） | ログイン後に自動的に入る                 |
| `echo`     | テキストを出力                 | `echo "Hello"`               |
| `export`   | 環境変数を設定                 | `export PATH=/usr/bin:$PATH` |
| `whoami`   | 現在のユーザー名を表示             | `whoami`                     |
| `id`       | ユーザー ID とグループ情報を表示      | `id`                         |
| `hostname` | ホスト名を表示または設定            | `hostname`                   |

## システム情報とログ

| コマンド                           | 機能            | 例                   |
| ------------------------------ | ------------- | ------------------- |
| `dmesg`                        | カーネルログを表示     | `dmesg \| tail -20` |
| `cat /proc/cpuinfo`            | CPU 情報を確認     | —                   |
| `cat /proc/meminfo`            | メモリ情報を確認      | —                   |
| `cat /proc/version`            | カーネルバージョンを確認  | —                   |
| `cat /var/log/tsukine_net.log` | ネットワーク設定ログを確認 | —                   |

## ユーザー管理

| コマンド     | 機能                 | 例                    |
| -------- | ------------------ | -------------------- |
| `login`  | ログイン画面（起動時に自動呼び出し） | 起動後に `login:` が表示される |
| `su`     | ユーザーを切り替え          | `su - dmin`          |
| `whoami` | 現在のユーザーを表示         | `whoami`             |

## ネットワーク関連

| コマンド       | 機能                       | 例                   |
| ---------- | ------------------------ | ------------------- |
| `ip addr`  | ネットワークインターフェース情報を表示      | `ip addr show eth0` |
| `ip route` | ルーティングテーブルを表示            | `ip route`          |
| `ping`     | ネットワーク接続性をテスト *(注：独自実装)* | `ping -c 4 8.8.8.8` |
| `net`      | ネットワークを設定（デーモン）          | —                   |

## ショートカット（シンボリックリンク）

| 実際のコマンド            | シンボリックリンク  | 説明          |
| ------------------ | ---------- | ----------- |
| `tsukine_top`      | `taskmgr`  | タスクマネージャー   |
| `tsukine_net`      | `net`      | ネットワーク設定    |
| `tsukine_net_ui`   | `netui`    | ネットワーク監視    |
| `tsukine_ping`     | `ping`     | ICMP テスト    |
| `tsukine_iwr`      | `iwr`      | HTTP ダウンロード |
| `tsukine_reboot`   | `reboot`   | 再起動         |
| `tsukine_shutdown` | `shutdown` | シャットダウン     |

## 設定ファイルのパス

| ファイル                       | 用途                     |
| -------------------------- | ---------------------- |
| `/etc/profile`             | 環境変数とプロンプトの設定          |
| `/etc/passwd`              | ユーザーアカウント情報            |
| `/etc/shadow`              | ユーザーパスワード（暗号化）         |
| `/etc/group`               | ユーザーグループ情報             |
| `/etc/hostname`            | ホスト名                   |
| `/etc/network/interfaces`  | ネットワーク設定（静的 IP / DHCP） |
| `/var/log/tsukine_net.log` | ネットワークサービスログ           |
| `/var/lib/tknpkg/db`       | インストール済みパッケージデータベース    |

## プロンプトの説明

| ユーザー     | プロンプト              | 例                 |
| -------- | ------------------ | ----------------- |
| root     | `root@tsukine:\W#` | `root@tsukine:/#` |
| dmin     | `dmin@tsukine:\W$` | `dmin@tsukine:/$` |
| その他のユーザー | `user@tsukine:\W$` | `user@tsukine:/$` |

<Note>
  このページは AI によって翻訳されており、不正確な部分が含まれる可能性があります。簡体中国語の原文を正とします。
</Note>

***

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