命令行公交,可以直接在android 下执行命令
并且支持 apt 包的安装
安装一些笔记
- 音量下 代表
ctrl
-
音量上 + q
可以调出小键盘 - 安装软件包可以直接使用
pkg install *
的命令 - 访问本机存储 执行
termux-setup-storage
- 可以开启 sshd
a.pkg install openssl
a. 电脑的id_rsa.pub
放到storage/downloads/id_rsa.pub
a. 将cat storage/downloads/id_rsa.pub >> ~/.ssh/authorized_keys
a. 通过电脑 可以连接上手机了
A. 手机当前termux当前用户whoami
B.ssh u0_a201@192.163.0.5 -p 8022
(为了安全,termux 默认是 8022 端口)
https://android.stackexchange.com/questions/166538/where-is-the-folder-that-termux-defaults-to/167870#167870
You don't need to root your device. All you need to do is run the following command on a non-rooted (or rooted) device to allow termux to access your existing directories, particularly /storage/emulated/0
:
termux-setup-storage
this creates a new directory in termux, ~/storage
, which contains simlinks to /storage/emulated/0
and can be accessed by a standard gui file manager.
You will need to grant file access to termux when prompted after you run the command.
See here.
网友评论