# Terminal

The terminal UI in AIOS is powered by the LLM-based semantic file system, which is published in ICLR2025, with its paper can be found at [From Commands to Prompts: LLM-based Semantic File System for AIOS](https://arxiv.org/pdf/2410.11843).

Before running the AIOS terminal, please make sure you have read the instructions in [AIOS](https://github.com/agiresearch/AIOS) to set up the environment and launch the AIOS kernel.&#x20;

And you need to create a folder to put the files you want to manage, the default folder is `./root`

After that, you can run the following command to start the AIOS terminal.

```
python scripts/run_terminal.py
```

When you successfully enter the system, the interface is as follows:

<figure><img src="/files/uT09JQVIGUErmzstSk4J" alt=""><figcaption><p>Example of Launched AIOS terminal</p></figcaption></figure>

Then you can start interacting with the AIOS terminal by typing natural language commands.&#x20;

For instructions of how to use commands, refer to <https://github.com/agiresearch/AIOS-LSFS>.&#x20;

<pre><code>@inproceedings{
    shi2025from,
<strong>    title={From Commands to Prompts: {LLM}-based Semantic File System for AIOS},
</strong>    author={Zeru Shi and Kai Mei and Mingyu Jin and Yongye Su and Chaoji Zuo and Wenyue Hua and Wujiang Xu and Yujie Ren and Zirui Liu and Mengnan Du and Dong Deng and Yongfeng Zhang},
    booktitle={The Thirteenth International Conference on Learning Representations},
    year={2025},
    url={https://openreview.net/forum?id=2G021ZqUEZ}
}
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aios.foundation/aios-docs/aios-kernel/terminal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
