![]() The options described here will cater for most commonplace needs. If you need to go deeper into ps than we've taken it in this article, you'll find that our introduction makes the man page easier to digest. Ps is flexible enough to give you precisely the information you need in exactly the format you'd like it. In fact, ps has a great many options. It gives you a snapshot of what is happening inside your computer "right now." With the -w option, it can paint a comprehensive picture of memory usage across the entire system, including the kernel space. The ps command satisfies both of these needs. Perhaps you're just curious about which processes are running inside your computer, and you'd like to peek beneath the hood. Of course, is to identify the process in question.īut maybe you don't have any task or performance issues at all. One of the main reasons for using this command is when a disk cannot be unmounted and displays the error that files are being used or opened. For more tips on Linux administration, read How to use the lsof command to troubleshoot Linux. This example is a brief overview of what's possible to learn about a single process. The open files included are disk files, network sockets, pipes, devices, and processes. You can also use it to analyze a memory value that always increases and never decreases or to locate the culprit of a memory leak. Sometimes tasks need to be killed as a mercy to everyone involved. The lsof command is used in many Linux/Unix-like systems to display a list of all the open files and the processes. Or they may continue running, but gobble up too much CPU time or RAM, or behave in some equally anti-social way. This summary includes real-time information on memory usage, so you can use it as a monitoring app as well. Sometimes tasks can lock-up, or enter a tight loop, or become unresponsive for other reasons. The top Command The top command-line tool will give you a summary of all the running processes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |