宝塔5.9版本

1
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

国内aria2安装

1
wget -N https://gitee.com/jiangcxy/aria2/raw/master/aria2.sh && chmod +x aria2.sh && bash aria2.sh

一键更换国内软件源脚本

1
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)

移动命令

1
2
mv /www/backup/database/*  /gd/buckup/sql/
mv /www/backup/site/* /gd/buckup/web/

7z安装命令

1
yum install p7zip

批量删除

1
find old -type f -name "*.l" -exec rm -f {} \;

删除当前目录下的所有.log结尾文件

1
sudo rm -f *.log

输入以下命令能让ipv6的机子访问v4网址

1
mv /etc/resolv.conf /etc/resolv.conf.bak && echo -e "nameserver 2001:67c:2b0::4\nnameserver 2001:67c:2b0::6" > /etc/resolv.conf

批量修改文件名,格式

1
rename  原名  替换名  要改的文件 

nat vps

1
2
3
4
5
6
7
8
9
10
11
12
13
    Hax / Woiden OpenVZ VPS开启TUN模块教程

1.在[Hax](https://hax.co.id/vps-control) / Woiden 点击 Enable TUN 按钮
2.待 TUN 模块启动成功后,先 Stop 让 VPS 关机,然后再 Start 开机
3.输入此命令: cat /dev/net/tun, 然后看见 cat: /dev/net/tun: File descriptor in bad state 即为成功启用 TUN 模块
WARP 各大一键脚本

fscarmen 一键脚本:
- 首次运行 wget -N https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh && bash menu.sh
- 日常维护 warp
P3TERX 一键脚本:
- 首次运行 bash <(curl -fsSL git.io/warp.sh) menu
- 日常维护 bash warp.sh

7z压缩带密码

1
7za x 文件名 -p密码

提取一个文件夹内的所有文件名

1
dir>>filenames.txt