LINUX命令大全
一、Linux更新及安装命令
[card:https://vpsbbc.com | 热门服务器实时监控 | 提供搬瓦工、DMIT、VMISS等优质商家库存最新消息以及选购指南 | https://img.vpsbbc.com/vpsx.png]
Debian更新:aptget update && aptget upgrade
Centos更新:yum update
Debian安装curl:aptget install curl
Centos安装curl:yum install curl
Debian安装wget:aptget install wget
Centos安装wget:yum install wget
Debian/Ubuntu 基础命令
更新软件源:aptget update
更新升级所有软件:aptget upgrade
Centos安装XZ压缩工具:yum install xz
清理旧版本的软件缓存:sudo aptget autoclean清理所有软件缓存:sudo aptget clean删除系统不再使用的孤立软件:sudo aptget autoremove
查看内核版本:uname a查看ubuntu版本:cat /etc/issue
查看当前的内存使用情况:free m查看当前有哪些进程:ps A杀死一个进程:kill id / killall id / kill 9 id
安装 opensshserver
sudo aptget install opensshserver
ps e | grep ssh 确认sshserver是否启动
Centos安装neofetch
Github官网:https://github.com/dylanaraps/neofetch/wiki/Installation
Linux开启原版BBR
echo "net.core.default\_qdisc=fq" /etc/sysctl.conf
echo "net.ipv4.tcp\_congestion\_control=bbr" /etc/sysctl.conf
sysctl p
lsmod | grep bbr
二、Linux 常用的一键脚本
UnixBen...
阅读量: -