Its very important that we can recongnize what is the foreground and background process and how to control them. In this result, we can se that the user fiorella is using a bash shell, and from that opened the nano editor to work on a file named testfile.txt, after that ran the su command to change to user oe-alb, and so on. Say we want to see information about the sshd service ps aux | grep sshd | grep -v grep That is why is very important and useful to use other tools like pagers, search and sorting commands that will help us get the results that we need. The Information displayed in the terminal when we run this command can be too much, specially if we are working in a server with a lot of applications and processes running. We should see an output similar to this in our terminal: %CPU cpu utilization of the process If we don’t know or remember the meaning of one of them we can always use the man pages of the ps command and search for that specific column: man ps | grep %CPU Almost all of these are very intuitive to understand, for example : Show processes that are not attached to a tty or terminalĪnd what about the columns?. Shows processes attached to a TTY terminal Ok, let’s stop here for a moment and see these results in more detail. Ⓘ Note: This tutorial also works for any Linux Distribution. If you are a beginner, you should read this Command Line Tutorial.
0 Comments
Leave a Reply. |