Solaris查找文本内容
没有评论
2010年4月13日
查找包含hello内容的文件,递归子目录:
$ find . xargs | grep "hello"
查找包含hello内容的文件,当前目录:
$ grep "hello" /directory/*
查找包含hello内容的文件,递归子目录:
$ find . xargs | grep "hello"
查找包含hello内容的文件,当前目录:
$ grep "hello" /directory/*
刚在外面有人问 Solaris 网络监控,一时有点犯懵,在回家的路上想起来了 snoop 和 netstat 命令。一个是用来抓包的,一个是用来查看连接状况的。其实当时也想到了 netstat,就是只在 Windows 上用过。另外在 Solaris/Linux 上可以借助 chaosreader 分析网络数据包日志。