# 文件目录结构

termux运行目录在：/data/data/com.termux/files

如果没有root权限，文件只有termux可以读写。

使用`export`,即可查看默认设置的系统变量。

```
#$HOME
/data/data/com.termux/files/home

#$PREFIX
/data/data/com.termux/files/usr
```

* 打开termux默认的目录是：$HOME
* 软件安装目录一般是：$PREFIX/bin
* 软件配置文件一般在：$PREFIX/etc

查看软件安装位置：

```
# 查看安装位置，以及配置文件目录
whereis bash

# 查看安装位置
which bash
```

`ls -a`，查看目录里的文件。

`cd`切换目录

```
# 进入home目录
cd $HOME

# 回到上级目录
cd -
```


---

# 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://termux-wiki.zsxwz.com/untitled.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.
