How to install and use Procmon on Linux, an open source tool just released by Microsoft
After a long time of planning with many delays, Microsoft has finally officially released the popular utility Sysiternals Procmon Linux version so that users can track the activities of running processes right on the operating system. on this open source.
Procmon on Linux
- What is procmon?
- How to install and build Procmon on Linux
- System requirements
- Install Procmon
- Build Procmon from source
- How to use Procmon
What is procmon?
Perhaps many Windows users are no stranger to this tool. Procmon is a system utility that helps users easily track system calls (system calls), access the Registry and file activity related to processes running in the operating system.
Tracking these processes allows users to early diagnose problems that may occur on the system, such as application conflicts, excessive resource usage, or even malware infection.

The launch of the open source Procmon tool for Linux plays an important role, giving Linux users an additional tool to help track processes running on systems similar to Windows, as can be seen. in the demo below:

How to install and build Procmon on Linux
System requirements
- Operating system: Ubuntu 18.04 LTS with kernel> = 4.18 and kernel <= 5.3.
- cmake> = 3.13 (build-time only)
- libsqlite3-dev> = 3.22 (build-time only)
Install Procmon
Sign up for Microsoft key and feed:
wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb
Then use the following command to install Procmon:
sudo apt-get update sudo apt-get install procmon
Build Procmon from source
Install dependency:
sudo apt-get -y install bison build-essential flex git libedit-dev libllvm6.0 llvm-6.0-dev libclang-6.0-dev python zlib1g-dev libelf-dev
Build and install BCC:
git clone --branch tag_v0.10.0 https://github.com/iovisor/bcc.git mkdir bcc/build cd bcc/build cmake . -DCMAKE_INSTALL_PREFIX=/usr make sudo make install
Build Procmon:
git clone https://github.com/Microsoft/Procmon-for-Linux cd Procmon-for-Linux mkdir build cd build cmake . make
Build package Procmon:
The distribution packages for Procmon on Linux are built using cpack. To build the deb package for Procmon on Ubuntu you just need to run:
cd build cpack .
How to use Procmon
When using Procmon on Linux, users can specify the process ID they want to track or specific system calls with the following arguments:
Usage: procmon [TÙY CHỌN]
There are OPTIONS including:
- -h / - help: Print this help screen
- -p / - pids: Separate the process id list with commas for monitoring
- -e / - events: Separate a list of system calls with a comma for monitoring
- -c / - collect [PATHWAY]: Option to start Procmon in non-terminal mode
- -f / - file PATHWAY : Open the trace file Procmon
For example, to monitor processes with id 738 and 2657, enter the following command:
sudo procmon -p 738,2657
To monitor PID 738 and list all read / write calls, use the following command.
sudo procmon -p 738 -e read,write
For more information about using Procmon in Linux, you can refer to the GitHub website of this project HERE:
You should read it
- Microsoft brings Sysmon tools to Linux
- Instructions for using zforce command on Linux
- 4 methods to copy Linux hard drive
- How to create dual boot Linux and Windows 10 on Linux
- PuTTYgen in Linux - SSH key generator
- EasyWSL tool can turn Linux docker image into Windows 10 WSL distro
- Best Linux monitoring tool & software
- Running Linux on Windows 10 does not require a virtual machine, here are 18 things you should know
May be interested
- How to use BleachBit on Linuxif you want to delete unnecessary files on linux operating system safely, do not affect the hard drive but still ensure the security, bleachbit will help you.
- Differences in the types of desktop environments on Linuxwhen gnome 3.0 was released with the new interface, a part of the linux user community struggled to find a new desktop environment suitable for them.
- How to access user activity on Linuxif you are using a linux server, you can use the following commands to check user activity - when system users log in and frequency of use, which group they belong to, and how much disk space they are currently running. consumption, what command are they running, how much disk space is taking up, ...
- How to install vim on OpenSUSE / SUSE Linux with zypperyou need the vim text editor on the opensuse cloud server but it is not available. how to install vim on opensuse / suse linux?
- How to install fcgiwrap for Nginx on Ubuntu 20.04fcgiwrap is a simple server used to run cgi applications via fastcgi. we can use it to provide clean cgi support for nginx webserver. here's how to install fcgiwrap on ubuntu 20.04.
- How to check the pressure of a Linux systemtesting pressure on linux servers is a good idea if you want to see if they work well. in this post, tipsmake introduces some tools that can help you add pressure to the system to test and evaluate results.