VPS常用命令及工具备忘录
Linux更新及安装命令Debian更新:apt-get update && apt-get upgradeCentos更新:yum updateDebian安装curl:apt-get install curl
Centos安装curl:yum install curlDebian安装wget:apt-get install wget
Centos安装wget:yum install wgetCentos安装XZ压缩工具:yum install xzDebian/Ubuntu 基础命令更新软件源:apt-get update
更新升级所有软件:apt-get upgrade清理旧版本的软件缓存:sudo apt-get autoclean
清理所有软件缓存:sudo apt-get clean
删除系统不再使用的孤立软件:sudo apt-get autoremove查看内核版本:uname -a
查看ubuntu版本:cat /etc/issue查看当前的内存使用情况:free -m
查看当前有哪些进程:ps -A
杀死一个进程:kill id / killall id / kill -9 id安装 openssh-server:sudo apt-get install openssh-server
确认sshserver是否启动:ps -e | grep sshCentos安装neofetch
Github官网:https://github.com/dylanaraps/neofetch/wiki/InstallationLinux开启原版BBRecho "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
lsmod | grep bbrLinux 常用的一键脚本
UnixBench跑分工具测试UnixBench下载地址:https://code.google.com/archive/p/byte-unixbench/downloadswget --no-check-certificate http://tools.laobuluo.com/tools/unixbench.sh
chmod +x unixbench.sh
./unixbench.shbench.sh 测速脚本Github地址:https://github.com/teddysun/acrosswget -qO- bench.sh | bash
或者
curl -Lso- bench.sh | bashBestTrace 路由追踪wget https://cdn.ipip.net/17mon/besttrace4linux.zip
unzip besttrace4linux.zip
chmod +x besttrace
./besttrace 114.114.114.114流媒体解锁检测脚本Github地址:https://github.com/sjlleo/netflix-verify
Netflix 解锁检测脚本wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.61/nf_2.61_linux_amd64 && chmod +x nf && clear && ./nf一键DD纯净系统脚本(萌咖) CentOS/Debian/Ubuntu系统安装完成后的默认用户名为root,默认密码为: MoeClub.orgbash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a # Debian 11 64位bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 20.04 -v 64 -a # Ubuntu 20.04 64位
页:
[1]