windows下的那些被遗忘的命令

admin2013-08-12教程52
红色为命令,蓝色为命令返回的记录 ################################################## windows 查看arp列表可以使用arp -a 如果arp列表非常的长但只需要查看其中的一条记录 笨办法:arp -a > c:/1.txt 然后打开1.txt文件查看 或者: arp -a | findstr 192.168.0.1 192.168.0.1           c8-3a-35-3e-4d-60     动态 centos系统下相同的命令 arp -a | grep 192.168 ? (192.168.194.1) at 00:09:B8:98:FA:90 [ether] on eth0 ################################################## windows下查看某一个端口是被什么程序占用 netstat -aon | findstr 80 TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       3516 tasklist | findstr 3516 java.exe                      3516                            1     40,748 K centos系统下相同的命令 netstat -anlp | grep 2100 tcp        0      0 0.0.0.0:2100                0.0.0.0:*                   LISTEN      681/pure-ftpd (SERV ################################################## 整理硬盘碎片命令 defrag c: -v -f > c:defrag.txt -f      即使可用空间不足,也强制碎片整理 -v      详述结果 自豪的说centos下不需要 ##################################################