This can prevent 'grep' from showing up in ps results
来源:互联网 发布:nginx 禁止svn目录 编辑:程序博客网 时间:2024/06/04 19:22
$ ps aux | grep terminaluser 2064 0.0 0.6 181452 26460 ? Sl Feb13 5:41 gnome-terminal --working-directory=..user 2979 0.0 0.0 4192 796 pts/3 S+ 11:07 0:00 grep --color=auto terminal
可以使用下面方法,就可以去掉grep --color=auto terminal這一行的顯示
$ ps aux | grep '[t]erminal'
user 2064 0.0 0.6 181452 26460 ? Sl Feb13 5:41 gnome-terminal --working-directory=..
參考自
http://stackoverflow.com/questions/9375711/more-elegant-ps-aux-grep-v-grep
http://unix.stackexchange.com/questions/74185/how-can-i-prevent-grep-from-showing-up-in-ps-results
- This can prevent 'grep' from showing up in ps results
- You can prevent this from appearing by disabling DEBUG logging for ...
- normalization rules prevent from reusing this data item in a primary identifier解决办法
- powerdesigner: used normalization rules prevent from reusing this data item in a primary
- Vistual Studio User Controls not showing up in the toolbox
- VS2010 debug output not showing up in DbgView
- How can I prevent SQL-injection in PHP?
- How to disable Grub's menu from showing up after failed boot
- (win7)IIS7下处理sqlsrv not showing up in my phpinfo
- laravel Passport Components not showing up in Laravel 5.5(走过的坑)
- Android4.0 bug Can not perform this action after onSaveInstanceState - How to prevent?
- IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?
- ERROR: vtkImageAccumulate : This filter can handle up to 3 components
- How can I exclude directories from grep -R?
- Bash Commands - Using the [[ ... ]] rather than [ ... ] can prevent many logic errors in scripts.
- Turn off cache of Thumdbs.db to prevent the move blocking from it in automation
- Prevent a Process from Being Created Again in VC or C#
- How to remove native support from an Android Project in eclipse because eclipse is showing errors in
- ASP.NET与ASP的比较
- API函数
- android sp wp pointer
- Extjs4 创建Store
- 学习opencv有感(二)-2维特征Feature2D
- This can prevent 'grep' from showing up in ps results
- 线程间操作无效: 从不是创建控件的线程访问它
- Deep Learning(深度学习)学习笔记整理系列之(一)
- 职场生存法则之七
- Linux内核的Makefile和kconfig解读
- ios开发之实现长按UITableViewCell弹出UIMenuController
- Socket(通信方式)
- Linux Kconfig及Makefile学习
- 正则表达式的用法