很不明白,为什么在正常运行中的FreeBSD6 + Apache2 中 打 ps -aux | grep httpd 命令, 总是只显示root用户,用户数为1... www用户怎么不显示的。 谁指点下,感谢呀
在网上看到了下面这个命令: ps aux | grep [e]macs 运行如下: test@ubuntu:~$ ps -ef|grep vim test 2481 1797 0 18:35 pts/1 00:00:00 vim test 2507 1815 0 18:36 pts/0 00:00:00 grep --color=auto vim test@ubuntu:~$ ps -ef|grep [v]im test 2481 1797 0 18:35 pts/1 00:00:00 vim 请问为什么ps -ef|grep [v]im会滤掉grep命令对应的这个进程?
#ps -ef|grep httpd 用以显示httpd进程的详细信息. -e 显示系统中的所有进程,除了核心进程 -f 显示进程的详细信息 | 管道命令,前一个命令的输出做为后一个命令的输入 grep 查找字符 "httpd" 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19919/showart_360666.html
在线请教 有老/新两台机器 通过ps aux |grep java |grep "t-5"|grep -vw "sh" 查看t-5进程,老机器能有值,新机器上查不到 老/新机器的bash/grep 版本如下 ###老机器 $bash --version GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2005 Free Software Foundation, Inc. $man --grep man: unrecognized option `--grep' man, version 1.6d ###新机器 $ bash --version GNU bash, version 4.1...
ps aux | grep app 返回的結果中,包含app的進程,也包含grep app本身 問題在於grep app本身對於進程查詢是沒有意義的,所以其實沒必要顯示它 那麽,如何讓grep app不顯示呢 以前看到過,但是沒記住,好像是修改grep的正則表達式