Termux should support copy and paste installation with the system as follows:
pkg install termux-api
At the same time, install the termux:API app file on the tablet or mobile phone system
Support running in the background and on top of other applications.
How termux uses aliases:
vim .bashrc
sshd #自动开启 ssh
alias jp='jupyter notebook' #jupyter will run on 8080 #简写 jupter
alias pb='ping www.baidu.com' #简写 ping 命令进行网络测试
alias ip='ifconfig' #快速查看自己的ip
alias du='du -sh' #只显示文件夹总大小
alias la='ls -a'
alias ll='ls -alh'
alias ls='ls -CF' #ls 带颜色和文件类型
alias l='ls' #l 简写ls
alias lx='ls -lSr' #lx 按照大小排序
alias lt='ls -ltr' #lt 按照修改时间排序
alias cset='termux-clipboard-set' #cset copyfile
alias gget='termux-clipboard-get' #cset copyfile
alias cls='clear' #cls 简写clear
alias ftpd='~/tools/ftpd.sh'
alias su=‘su & source getMyTermuxOrders’ # 获取root 权限之后还可以执行 termux 命令
source .bashrc
It is ready to use.
termux-clipboard-set Copy from termux to the system clipboard
termux-clipboard-get Paste from system to termux
How to use: The aliases given above are divided into cset and gget
For example, copy the contents of the 123.cpp file to the clipboard, namely cat 123.cpp | cset
In this way, you can go to the website of the tablet or mobile phone and use ctrl+V to paste
If you copy from the tablet webpage to the termux terminal, that is, ctrl+C
Use gget on the tablet to paste it to the termux terminal~~