Network, Computer and Programming Resources

Linux top 50 cmd - Grep

The grep (global regular expression parse) command searches the object you specify for the text that you specify. The syntax of the command is grep <text> <file. Although this is valuable, the grep command can also be used in conjunction with the results of other commands. For example, the following command ps -ef |grep -v root calls for the grep command to take the output of the ps command and take out all instances of the word root (the -v means everything but the text that follows). The same command without the -v (ps -ef |grep root) returns all of the instances that contain the word root from the process listing.
RSS to HTML | My IP Address | Online Dictionary | Free TinyURL | Dereferer URL