常用的 Linux 命令

  1. ls — List ls会列举出当前工作目录的内容(文件或文件夹)。
    2.mkdir — Make Directory mkdir 用于新建一个新目录 执行mkdir命令创建相应的文件夹
    3.pwd — Print Working Directory 显示当前工作目录 显示当前工作目录
    4.cd — Change Directory 切换文件路径,cd 将给定的文件夹(或目录)设置成当前工作目录。 切换路径到桌面
    5.rmdir— Remove Directory 删除给定的目录。 创建的文件夹会被删除
  2. rm— Remove rm 会删除给定的文件 删除某个文件

赋予程序执行权限

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
脚本收集

宝塔企业版(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)

ln 创建软连接

ln -s 文件 链接

标签: none

添加新评论