service --status-all 查看所有服务当前的运行状态
systemd-analyze blame 查看每个服务的启动耗时
service openbsd-inetd status 查看某个服务的状态
update-rc.d –f openbsd-inetd remove
添加一个服务:sudo update-rc.d srv_name defaults 99
删除一个服务 :sudo update-rc.d –f test remove
systemctl list-unit-files | grep enabled 列出所有开启的服务
systemctl disable mongodb.service 禁用该服务开机启动
service unattended-upgrades status
service smbd status
service nmbd status
service lighttpd status
route add -net default gw 192.168.1.1 dev eth0
route add -net default gw 10.0.0.1 dev enx001e101f0000
dpkg -L packagename
dpkg -L +软件包的名字,可以知道这个软件包包含了哪些文件, 这个方法可以列出所有安装后留在系统里的文件
ping www.baidu.com -I enx001e101f0000 -c 5
ping 114.114.114.114 -I enx001e101f0000 -c 5
ping www.baidu.com -S 10.73.87.153 -c 5
ping 114.114.114.114 -S 10.73.87.153 -c 5