☁️
zsxwz-termux-wiki
姿势论坛主页微信小店
  • termux安装
  • 包管理器
  • 文件目录结构
    • 文件权限
    • 归档文件加解压
    • ranger终端文件管理器
  • bash,zsh等shell
  • 几个常用插件
    • 几个常用api
  • ssh连接
  • 下载工具
    • aria2c配置
  • 文本编辑器
  • ffmpeg视频转码
  • mutt邮箱
  • python
    • notebook,Matplotlib
  • nodejs
  • golang
  • gcc
  • root
    • 一些网络工具
  • 其他一些命令行工具
    • alsit网盘挂载
    • nali ip地址查询
    • CloudflareST 自选ip
    • anyproxy抓包代理
    • android-tools
    • rclone网盘同步
    • yt-dlp视频下载
    • 后台运行命令
    • SMSBoom短信
  • 安装linux发行版
    • 桌面及vnc远程
  • 备份与恢复
由 GitBook 提供支持
在本页

这有帮助吗?

  1. 几个常用插件

几个常用api

在高版本的安卓系统当中有些api已经失效。

termux-api:

# 获取位置
termux-location

# 打开第三方app,如使用打开浏览器打开网页:
termux-open https://127.0.0.1:1024

#开关LED灯
termux-torch [on | off]

#访问电池信息
termux-battery-status

# 手机录音
termux-microphone-record

# 振动设备
termux-vibrate

# 设置壁纸
termux-wallpaper -f /sdcard/Picture/1.jpg

#在手机上显示消息
termux-toast

# 显示系统提醒
termux-notification [options]

# 电池优化
termux-wake-lock
termux-wake-unlock

# 打电话
termux-telephony-call 10086

# 创建内置sdcard软连接
termux-setup-storage

# 设置剪切板:
termux-clipboard-set 123
# 读取剪切板
termux-clipboard-get

# 重载termux设置
termux-reload-settings

# 显示toast
termux-toast 123

小tips:termux-然后按tap键补全,即可查看termux使用的一些api

上一页几个常用插件下一页ssh连接

最后更新于2年前

这有帮助吗?

更多可以参考

https://bbs.zsxwz.com/thread-2720.htm