02 2018 档案
摘要:个人原创,转载请注明,否则依法追究法律责任 2018-02-28 16:01:26 tcpdump 倾倒网络传输数据,直接启动tcpdump将监视第一个网络接口上所有流过的数据包。 1 不接任何参数,表示监听本机的eth0网卡。 如果不指定网卡,默认tcpdump只会监视第一个网络接口,一般是eth
阅读全文
摘要:2018-02-28 15:29:26 [root@linux ~]# routeKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface192.168.10.0 * 255.255.255.0 U 0
阅读全文
摘要:windows中是自带的,不用安装,直接在cmd窗口直接使用 Linux中需要安装: yum -y install bind-utils nslookup www.baidu.com [root@bogon ~]# nslookup www.baidu.comServer: 192.168.13.2
阅读全文
摘要:2018-02-28 10:43:18 linux压缩和解压缩命令大全 tar命令:tar本身仅是一个打包的命令,不具有压缩的功能。打包后源文件仍然存在,具有将多个文件归档成一个文件的功能[root@shiyan a]# ls a3 a4 a5 a6 a7 a8 a9[root@shiyan a]#
阅读全文
摘要:1, 挂载U盘和USB接口的移动硬盘一样对linux系统而言U盘也是当作SCSI设备对待的。使用方法和移动硬盘完全一样。插入U盘之前[root at pldyrouter root]# fdisk -l 插入U盘后,再用fdisk -l 查看系统的硬盘和硬盘分区情况。 [root at pldyro
阅读全文
摘要:25.1 由于sort默认是把结果按照行排序后输出到标准输出,所以需要用重定向才能将结果写入文件,形如sort filename > newfile[root@shiyan a]# cat a.txt aaaaaa[root@shiyan a]# sort a.txt >c.txt 在重定向前会自动
阅读全文
摘要:find命令 2018-2-27日整理完成 1,结合-exec的用法 查当前目录下的所有普通文件,并在 -exec 选项中使用ls -l命令将它们列出# find . -type f -exec ls -l {} \; -rw-r–r– 1 root root 34928 2003-02-25 ./
阅读全文
摘要:1,只能对文件进行追加操作: [root@localhost tmp]# cat yum.log 22222222222222[root@localhost tmp]# chattr +a yum.log > chattr -a yum.log 取消该文件的特殊权限[root@localhost t
阅读全文