Advanced Commands
Use the grep command to search the contents of the listed text file or files. In the example,grep domain /etc/resolv.conf the file resolv.conf is searched for the word "domain," and the lines containing that word are displayed.The process status command, ps, displays information about the processes running on your computer, or on the remote computer if you are logged in remotely. The optional arguments to ps used in the commandps -auxww tell ps to list information about all processes on your computer in wide format.The ps command displays the Process ID or PID of a process. Once you know the PID, you can use the kill command to terminate the process.