一款基于Android平台的开源Linux终端模拟神器
$ sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable main@' $PREFIX/etc/apt/sources.list
$ sed -i 's@^\(deb.*games stable\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/game-packages-24 games stable@' $PREFIX/etc/apt/sources.list.d/game.list
$ sed -i 's@^\(deb.*science stable\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/science-packages-24 science stable@' $PREFIX/etc/apt/sources.list.d/science.list
# 更换源文件
$ pkg up
# 更新源文件
$ pkg udpate -y && pkg upgrade
# 更新系统及软件
$ termux-setup-storage
# 开启存储权限
$ sh -c "$(curl -fsSL https://html.sqlsec.com/termux-install.sh)"
# 色彩方案:14,字体方案:6
$ pkg install vim curl wget git unzip unrar
# 安装常用软件
$ export EDITOR=vi
$ apt edit-sources
# 查看软件源列表
$ pkg install aria2 man
# 安装aria2
$ vi .hushlogin
# 去除开头文字
$ apt install tree cmatrix
$ tree -P
# 树形结构列出权限文件目录
$ cmatrix
# 动态显示字符
$ q
# 退出字符雨
$ ln -s /data/data/com.termux/files/home/storage/shared/tencent/TIMfile_recv TIM
# 创建tim文件夹软链接
$ vim ~/.termux/termux.properties
$ extra-keys = [ \
['ESC','|','/','HOME','UP','END','PGUP','DEL'], \
['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN','BKSP'] \
]
# 定制常用按键
$ pkg install figlet
$ ls $PREFIX/share/figlet
$ figlet -f letter '今天你上王者了吗'
# 创建简单的命令行实用程序
$ git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
$ zsh
# 启用拷贝autosuggestions
- HTTP Server电脑手机互传
-
安装python
pkg install python -y
-
路由器查看ip地址
http://192.168.31.1
ip a
-
开启端口
python -m http.server
-
浏览器访问文件服务器
http://192.168.31.250:8000
- cmatrix代码雨
q
退出- 0-9改变速度
- figlet创建ASCII logo
```
$ figlet -f standard ‘TERMUX’
$ figlet -f standard ‘GEOSTROPHIC’
___ ___ __ __ __ _ ___ __
|_ | ____| _ | \/ | | | \ \/ /
| | | _| | |) | |\/| | | | |\ /
| | | || _ <| | | | || |/
|| |__|| __| ||_//_/_\
/ | ____/ _ \/ __|_ | _ \ / _ | _ | | | | / __|
| | | _|| | | ___ \ | | | |) | | | | |) | || || | |
| || | |__| || |) || | | _ <| || | /| _ || | |_
_|_/|__/ || || _\/|| || ||_|
8. neofetch显示软硬件信息
* `pkg install neofetch`
9. [termux-api访问手机硬件](https://f-droid.org/packages/com.termux.api/)
pkg install termux-api apt-cache show termux-api
版本低
termux-battery-status termux-camera-info termux-contact-list pkg install exiftool
```