Common Network Commands

1. 查看本机网络信息

1
2
ip -a    #新方法
ifconfig #旧方法

2.无线连接

1
iwconfig

3. 地址解析协议ARP

1
2
ip n
arp -a

4.路由表

1
ip -r

5.检测机器在线

1
ping

Starting and Stopping Service

1
2
3
4
5
sudo service apache2 start / stop

python3 -m http.server 80

sudo systemctl disable / enable ssh #start a service when startup

Common Network Commands
https://128374.xyz/2026/04/08/笔记/Common Network Commands/
作者
KingPenguinMan
发布于
2026年4月8日
更新于
2026年4月8日
许可协议