书签
文件仓库
Aria2NG Web UI
http://file.fly2x.cn/Aria2Ng/
https://file.fly2x.cn/Aria2Ng/
硬盘IO速度测试
sync; dd if=/dev/zero of=/tmp/tempfile bs=1M count=1024; sync; rm /tmp/tempfile -rf;
LNMP
安装BBR
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
验证:运行sysctl net.ipv4.tcp_available_congestion_control
返回值带BBR就成功了。
Bench.Monster
curl -LsO bench.monster/speedtest.sh; chmod +x speedtest.sh;sh speedtest.sh -all share
ZBench
wget -N --no-check-certificate https://github.com/FlyxFly/ZBench/raw/master/ZBench-CN.sh;sh ZBench-CN.sh
LemonBench
wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s fast
SuperBench
curl -Lso- -no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
SuperSpeed三网测速
bash <(curl -Lso- https://git.io/superspeed)
Yet-Another-Bench-Script
curl -sL yabs.sh | bash
Besttrace
yum install unzip nano wget -y
cd /usr/local
rm besttrace4linux -rf
wget https://static.fly2x.com/soft/besttrace4linux.zip
mkdir besttrace4linux
cd besttrace4linux
unzip besttrace4linux.zip
chmod +x besttrace
echo "alias bt=\"/usr/local/besttrace4linux/besttrace -g cn -q 1\"" >> ~/.bashrc
source ~/.bashrc
Rclone 挂载
rclone mount myod:/ /home/onedrive --copy-links --allow-other --allow-non-empty --umask 000 --daemon
sshfs 挂载
sshfs root@[2a04:1234::1]:/home/remote_folder /home/local_folder -o IdentityFile=/home/private.key -o port=23333 -o allow_other
- 取消挂载
fusermount -u /home/local_folder
或者umount /home/local_folder
复制文件,带进度条
rsync -avP source/ destination/
通过SSH从其他VPS复制文件
带进度条,如果出错,多运行几次,不会重新传输已有文件rsync -Pavu -e "ssh -p 22 -i private.key" root@11.22.33.44:/source/ /destination/
rsync -Pavu -e "ssh -p 22 -i private.key" /source/ root@[2001::1]:/destination/
将多个子目录下的文件移动到一个目录
用cmd命令行运行这个命令。FOR /R "D:\源文件夹" %i IN (*.mp4) DO MOVE "%i" "D:\目标文件夹"
Hostloc论坛发链接
[url=[url][url]https://baidu.com[/url][/url]]自定义文字[/url]
aria2c 多线程下载
aria2c -x 5 -s 5 https://exmple.com/e.tar
Linux处理特殊字符名的文件
ls -i #查询inode编号
find . -inum 12321475 -exec mv {} new-filename \; # 重命名文件
find . -inum 12321475 -print0 | xargs -0 mv -t new-filename # 重命名文件
find . -maxdepth 1 -type f -inum 12321475 -delete # 删除文件
FFmpeg 转为H265 10Bit
ffmpeg -i source.avi -map 0 -c:v libx265 -crf 18 -c:a copy -c:s copy -pix_fmt yuv420p10le out.mkv
Linux 日志
命令 | 作用 | 清理命令 |
---|---|---|
last | 查看当前用户历史登陆的时间、IP | echo > /var/log/wtmp |
lastb | 查看ssh密码错误的时间、IP | echo > /var/log/btmp |
lastlog | 查看所有用户最近登陆时间、IP | echo > /var/log/lastlog |
列出当前文件夹和子文件夹内所有文件的完整路径
find $PWD