linux:ubuntu
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:ubuntu [2024/03/19 19:33] – skipidar | linux:ubuntu [2024/05/15 05:10] (current) – [Performance Monitoring commands] skipidar | ||
|---|---|---|---|
| Line 187: | Line 187: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ==== Performance Monitoring commands ==== | ||
| + | |||
| + | {{https:// | ||
| + | |||
| + | how to diagnose a mysterious process that’s taking too much CPU, memory, IO, etc? | ||
| + | |||
| + | The diagram below illustrates helpful tools in a Linux system. | ||
| + | |||
| + | <sxh shell> | ||
| + | vmstat # reports information about processes, memory, paging, block IO, traps, and CPU activity. | ||
| + | iostat # reports CPU and input/ | ||
| + | netstat # displays statistical data related to IP, TCP, UDP, and ICMP protocols. | ||
| + | lsof # lists open files of the current system. | ||
| + | pidstat # monitors the utilization of system resources by all or specified processes, including CPU, memory, device IO, task switching, threads, etc. | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | Credit: Diagram by Brendan Gregg | ||
| Line 1457: | Line 1478: | ||
| dig -t NS google.com @1.1.1.1 ANY | dig -t NS google.com @1.1.1.1 ANY | ||
| + | |||
| + | |||
| + | ===== Upgrading packages ===== | ||
| + | |||
| + | |||
| + | ==== Python3 ==== | ||
| + | |||
| + | <sxh shell> | ||
| + | |||
| + | # install new version of python | ||
| + | sudo add-apt-repository ppa: | ||
| + | sudo apt update | ||
| + | sudo apt install python3.12 | ||
| + | |||
| + | # setting the python12 as default version of python | ||
| + | sudo update-alternatives --install / | ||
| + | |||
| + | # gives python3.12.2 | ||
| + | python3 --version | ||
| + | </ | ||
linux/ubuntu.1710876810.txt.gz · Last modified: by skipidar
