GitHub -> DajinPang

Men just want to be hard !

Linux

yum -y install tree

grep -rn "status:fail" > log ;

cut -d ":" -f 7 log > log2 ;

cut -d "," -f 1 log2 > log3.csv

linux下如何查找nginx配置文件的位置

ps -ef | grep nginx

例如查看 reids安装目录

  如果命令 which 和whereis 都找不到安装目录,可使用以下办法

   ps -ef|grep redis

得到了进程号 xxxx

 然后 ls -l /proc/xxxx/cwd

posted @ 2018-04-19 15:52  StevenPang  阅读(82)  评论(0)    收藏  举报