Debian常用命令

1、查看端口被占用的程序

lsof -i:25

--------------------------

2、修改域名解析

nano /etc/resolv.conf           --修改域名配置

/etc/init.d/networking restart  --重启网卡

3、SSH传输文件命令

man scp

1. scp /etc/resolv.conf username@B_HOST:/etc/resolv.conf.A

2.scpusername@B_HOST:/etc/resolv.conf/etc/resolv.conf.B

3.scpusername_on_A@A_HOST:/etc/resolv.confusername_on_B@B_HOST:/etc/resolv.conf.A

相关推荐