How to Monitor Macbook with one single command?
$sudo sysdiagnose -f ~/Desktop/
The result is a compressed file named sysdiagnose_YYYY.MM.DD_HH-MM-SS-TTTT.tar.gz and it contains the following:
You can use the
top command to monitor the resources of your Macbook in real-time. The
top command is a built-in utility that shows the processes that are currently running on the system, along with information about their CPU and memory usage.
To use the
top command, open a terminal window and type
top. The output will show the list of processes, sorted by their CPU usage, with the most CPU-intensive processes at the top. You can use the
q key to exit the
Here are some of the key options you can use with the
-o: sort the processes by a particular resource, such as CPU usage or memory usage. For example,
top -o cpuwill sort the processes by CPU usage.
-s: specify the delay between updates. For example,
top -s 2will update the display every 2 seconds.
-u: show the process for a particular user. For example,
top -u usernamewill show the processes for the user with the specified username.
You can use these options in combination to customize the output of the
top command. For example, to monitor the CPU usage of the processes owned by a particular user, you can use the following command:
Ace the AWS Certified Machine Learning Specialty Exam with Confidence: Get Your Hands on the Ultimate MLS-C01 Practice Exams!
top -o cpu -s 2 -u username