How to log CPU usage over a period of time on Linux.

Logging CPU usage over a certain period of time is very easy. The command below will print 24 lines of CPU statistics, printing a line every 4 seconds. ┌──[[email protected]]─[~] └──╼ ╼ $ sar -u 4 24 –human Linux 5.8.0-41-generic (jason-desktop) 12/04/21 _x86_64_ (4 CPU)   09:05:33 CPU %user %nice %system %iowait %steal %idle 09:05:37 all … Read more

Create a graph of package dependencies with the Linux command line.

There is a way to create a graphical display of the package relations amongst your installed packages on a Debian system. The Graphviz package allows this. Firstly, install the debtree package. apt install debtreeapt install debtree apt install graphvizapt install graphviz Then run this command to see all of the package dependencies and relations for … Read more