常用命令与脚本收集
Xhofe Lv3

常用命令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 赋予程序执行权限
chmod +x satrt
# 查看日志(最后50行)
tail -n 50 log.log
# 后台运行进程
nohup ./start > log.log 2>&1 &
# 根据进程名称杀进程
pkill start
# 查看某个端口是否占用
lsof -i:port
# 查看网络信息
ip addr
ifconfig
# 重启网络接口
ifdown eth0 && ifup eth0
# 测试磁盘I/O
dd if=/dev/zero of=1GB.bin count=2048k conv=fsync
dd if=/dev/sda of=/dev/null bs=4k

脚本收集

1
2
3
4
5
6
7
8
9
10
11
12
# 宝塔企业版(centos)开心版
yum install -y wget && wget -O install.sh https://download.fenhao.me/ltd/install/install_6.0.sh && sh install.sh
# 宝塔专业版(centos)开心版
yum install -y wget && wget -O install.sh https://download.fenhao.me/install/install_6.0.sh && sh install.sh
# BBR加速四合一
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
# trojan多用户管理
source <(curl -sL https://git.io/trojan-install)
# bench.sh
wget -qO- bench.sh | bash
# 全国测速
bash <(curl -Lso- https://git.io/superspeed)
  • 本文标题:常用命令与脚本收集
  • 本文作者:Xhofe
  • 创建时间:2021-01-27 14:08:00
  • 本文链接:https://nn.ci/posts/commands-scripts.html
  • 版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
 评论