命令
2024-08-26 21:07:40 0 举报
AI智能生成
1
作者其他创作
大纲/内容
网络管理
ip
ip a
ip address
ping
检查网络连通性
telnet
检查端口是否开启(是否可以连接)
ss
-ant 连接状态
-lntup 查看端口
查看系统所有开启的端口
netstat
与ss类似
dig
host
nslookup
iftop
nethogs
tracert
traceroute
route
查看路由表和默认网关
查询帮助
man
命令--help
cmd.oldboyedu.com
系统管理
shutdown
halt
poweroff
reboot
hostnamectl
修改主机名
hostnamectl
hostnamectl set-hostname xxxx
hostname
查看或临时修改主机名(重启Linux后失效)
nmtui
查看和修改网卡信息
ifdown
关闭指定的网卡
ifup<br>
开启指定的网卡
ubt中网卡配置生效
修改网卡配置文件
netplan apply
networkctl reload
systemctl
管理服务(开启,关闭,重启服务),设置开机自动启
systemctl restart network<br>
start
stop
restart
systemctl disable firewalld
关闭开机自启动
enable
disable
systemctl stop firewalld
关闭正在运行防火墙
systemctl status firewalld
lscpu
查看cpu信息
核心数
cpu型号
free
查询内存信息
-h 人类可读形式查看大小
uname
查看系统的信息,内核,主机名,cpu架构
-r
关闭selinux
setenforce 0
临时关闭
vim /etc/selinux/config 里面SELINUX=行改为SELINUX=disabled<br>getenforce
getenforce<br>
disabled 重启后才会提示
permissive 关闭
enforcing 开启的
ps
查看进程
-ef
aux
auxf
top
默认是交互式的显示系统系统命令
交互式:top
非交互式: top -bn1
kill
kill + pid
kill -9 pid
pkill
名字
killall
名字或pid
&
nohup 命令 &
0 条评论
下一页
为你推荐
查看更多