The usual technique is this:
ps aux | egrep '[t]erminal'
This will match lines containing terminal
, which egrep '[t]erminal'
does not! It also works on many flavours of Unix.
More Related Contents:
- Linux grep command with relevant values as output
- How do I find all files containing specific text on Linux?
- How do I recursively grep all directories and subdirectories?
- How to grep for contents after pattern?
- How to ‘grep’ a continuous stream?
- How can I search for a multiline pattern in a file?
- How to remove the lines which appear on file B from another file A?
- Fastest way to find lines of a file from another larger file in Bash
- How to escape single quotes in Bash/Grep?
- How can I use grep to show just filenames on Linux? [closed]
- Using grep to get the next WORD after a match in each line
- How to concatenate multiple lines of output to one line?
- How to get the process ID to kill a nohup process?
- Finding contents of one file in another file
- How can I find all of the distinct file extensions in a folder hierarchy?
- Linux Script to check if process is running and act on the result
- How to find all files containing specific text (string) on Linux?
- How to search and replace using grep
- grep without showing path/file:line
- How to search contents of multiple pdf files?
- How do you search for files containing DOS line endings (CRLF) with grep on Linux?
- Using grep and sed to find and replace a string
- Extract lines between two patterns from a file [duplicate]
- Linux shell script to add leading zeros to file names
- Why no output is shown when using grep twice?
- How can I find all files containing specific text (string) on Linux?
- Assembly compiled executable using INT 0x80 on Ubuntu on Windows Subsystem for Linux doesn’t produce output
- How can I pipe initial input into process which will then be interactive?
- Non-blocking getch(), ncurses
- How do I determine if a detached pthread is alive?