ChinaUnix.net
相关文章推荐:

ps aux grep

在网上看到了下面这个命令: 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命令对应的这个进程?

by sayigood - Shell - 2011-01-18 10:45:20 阅读(3928) 回复(10)

相关讨论

在线请教 有老/新两台机器 通过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...

java

by wdong_2001 - Shell - 2015-04-16 15:09:54 阅读(1479) 回复(4)

ps aux | grep app 返回的結果中,包含app的進程,也包含grep app本身 問題在於grep app本身對於進程查詢是沒有意義的,所以其實沒必要顯示它 那麽,如何讓grep app不顯示呢 以前看到過,但是沒記住,好像是修改grep的正則表達式

by ztkx - Shell - 2014-05-09 15:57:06 阅读(18254) 回复(23)

计算apache平均占用系统内存的值,谁给解释解释怎么算出来的。谢谢

by greysky-zfj - Linux系统管理 - 2008-12-13 09:36:10 阅读(3701) 回复(3)

很不明白,为什么在正常运行中的FreeBSD6 + Apache2 中 打 ps -aux | grep httpd 命令, 总是只显示root用户,用户数为1... www用户怎么不显示的。 谁指点下,感谢呀

by rzwrq - 服务器应用 - 2007-05-31 08:31:09 阅读(3237) 回复(3)

最后一行总是自己,如何不要这一行?? 比如 [root@server57 bin]# ps axu|grep tty root 2477 0.0 0.0 1524 408 tty1 Ss+ Jun21 0:00 /sbin/mingetty tty1 root 2478 0.0 0.0 2248 404 tty2 Ss+ Jun21 0:00 /sbin/mingetty tty2 root 2479 0.0 0.0 1540 408 tty3 Ss+ Jun21 0:00 /sbin/mingetty tty3 root 2480 0.0 0.0 2556 408 tty4 Ss+ Jun21 0:00 /sbin/mi...

by winvista - Shell - 2006-06-22 21:35:44 阅读(8654) 回复(4)

n多的(LOCAL=NO),ps aux|grep oracle查出来的,这都是什么东西阿?有经验的,可以点解一下么?

by linuxaid - Oracle - 2006-02-16 19:32:01 阅读(3334) 回复(1)

我按着网上的例子,安装了ssh, 然后启动,发现: [root@localhost .ssh]# service sshd start 启动 sshd [ 确定 ] [root@localhost .ssh]# ps -ax | grep sshd 3380 pts/0 S 0:00 grep sshd 我想问一下, 是不是因为我的ssh没有配置好的缘故,但它明明显示ssh启动了啊, 我应该怎样追查和处理这个问题? 多谢.

by frlssimi - 系统管理 - 2006-10-17 16:33:58 阅读(1144) 回复(3)

我按着网上的例子,安装了ssh, 然后启动,发现: [root@localhost .ssh]# service sshd start 启动 sshd [ 确定 ] [root@localhost .ssh]# ps -ax | grep sshd 3380 pts/0 S 0:00 grep sshd 我想问一下, 是不是因为我的ssh没有配置好的缘故,但它明明显示ssh启动了啊, 我应该怎样追查和处理这个问题? 多谢.

by frlssimi - Linux系统管理 - 2006-10-17 16:33:58 阅读(1220) 回复(3)
by tryhard - AIX - 2005-09-05 19:45:45 阅读(1394) 回复(3)
by tryhard - AIX - 2005-09-05 18:02:25 阅读(2891) 回复(0)