# root

安装root源：

```
apt install root-repo
```

安装sudo：

```
apt install tsu 

#进入tsu之后就可以使用安卓系统自带的命令了，刷了面具之后，就可以使用magisk命令
tsu
```

su

```
# 无需切换终端执行教本
su -c "脚本"

# 使用root-repo源的软件需要sudo运行，比如mtr
sudo mtr zsxwz.com
```

系统设置termux环境变量

```
su

export PATH=/data/data/com.termux/files/usr/bin:$PATH
```


---

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