常用的终端命令
Pluto Lv2

综合脚本

1
wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh

宝塔Linux面板

CentOS安装命令:

1
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
1
yum install -y wget && wget -O install.sh https://bt.abcyun.co/install/install_6.0.sh && sh install.sh

Debian安装命令:

1
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh
1
wget -O install.sh https://bt.abcyun.co/install/install_6.0.sh && bash install.sh

升级命令

1
curl http://download.bt.cn/install/update6.sh|bash
1
curl https://bt.abcyun.co/install/update6.sh|bash

一键安装docker

1
2
3
4
5
6
7
# 国外
curl -sSL https://get.docker.com/ | sh
# 国内
curl -sSL https://get.daocloud.io/docker | sh
# 卸载docker
sudo apt-get remove docker docker-engine
rm -fr /var/lib/docker/

aria2

1
wget -N git.io/aria2.sh && chmod +x aria2.sh && ./aria2.sh

系统网络重装dd命令

1
2
3
4
# 重装为debian11
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -a -firmware -p 密码 -port 端口
# leitbogioro
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh

说明

1
2
3
4
5
6
7
8
9
10
11
# 甲骨文、三毛、Vir、RN等大部分VPS通用,三毛、甲骨文 记得去掉 -firmware
-firmware 额外的驱动支持
-d Debian系统 后面是系统版本号
-c Centos系统 后面是系统版本号
-v 后面写64位 32位
-a auto,全自动无人值守安装
--mirror 后面是镜像源地址
-p 后面写自定义密码
–ip-addr ifconfig -a 后获取到的 例:194.87.xxx.xxx
–ip-gate route -n 后获取到的 例 194.87.xxx.xxx
–ip-mask 255.255.xxx.xx

镜像

1
2
3
4
5
6
7
8
9
10
11
# 清华源
--mirror 'https://mirrors.ustc.edu.cn/debian/'
# 腾讯源
--mirror 'http://mirrors.tencent.com/debian/'
--mirror 'http://mirrors.cloud.tencent.com/debian/'
# 腾讯源内网(dd完毕后可以修改 走内网速度更快)
http://mirrors.tencentyun.com/
# 阿里源
--mirror 'https://mirrors.aliyun.com/debian/'
# 华为源
--mirror 'https://mirrors.huaweicloud.com/debian/'

bbr

1
wget -N "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh

测速

1
2
3
4
5
6
7
8
# 三网测速
bash <(curl -Lso- https://git.io/superspeed_uxh)
bash <(curl -Lso- https://bench.im/hyperspeed)
# Bench.sh
wget -qO- bench.sh | bash
curl -Lso- bench.sh | bash
# superbench
wget -qO- git.io/superbench.sh | bash

回程路由测试

1
2
wget https://github.com/zhucaidan/BestTrace-Linux/raw/master/besttrace && chmod +x besttrace
./besttrace ip/domain

直接显示回程线路

1
2
3
4
5
6
7
8
curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash

# 第一个
wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
bash testrace.sh

# 第二个
wget -qO- git.io/besttrace | bash

流媒体测试、全媒体测试

1
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

奈飞测试

1
2
3
4
5
6
7
8
# 第一个
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.5/nf_2.5_linux_amd64 && chmod +x nf && clear && ./nf

# 第二个
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

# 第三个
bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")

性能测试

1
2
3
4
5
bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh)
# yabs 机器跑分
curl -sL yabs.sh | bash

curl -sL yabs.sh | bash -s -- -flags

qbittorrent安装 4.3.9

1
2
3
4
5
6
7
8
9
10
11
cd /root
wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.3.9_v1.2.15/x86_64-qbittorrent-nox
chmod +x x86_64-qbittorrent-nox
./x86_64-qbittorrent-nox
# 直接安装
apt update
apt install software-properties-common -y
add-apt-repository ppa:qbittorrent-team/qbittorrent-stable -y
apt update
apt install qbittorrent qbittorrent-nox -y
nohup qbittorrent-nox &

生成大文件

Linux dd命令

1
2
3
4
5
6
7
8
9
10
dd if=/dev/zero of=file bs=1M count=20000
# 会生成一个20G的file 文件,文件内容为全0(因从/dev/zero中读取,/dev/zero为0源)。
# 此命令可以生成一个实际的20G的文件,文件会写入硬盘,文件产生的速度和硬盘读写速度有关系,读写速度越快,产生文件越快。
# 如果只想产生一个大文件的数据,但是并不需要占用磁盘空间,则可以使用如下命令
dd if=/dev/zero of=file bs=1M count=0 seek=20000
```shell
> windows 命令
```dos
# 创建一个1G的文件
fsutil file createnew a.bin 1073741824
  • 本文标题:常用的终端命令
  • 本文作者:Pluto
  • 创建时间:2022-04-13 14:42:28
  • 本文链接:https://blog.aoaostar.com//post/29bc62a2/
  • 版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
 评论