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

  1. What is procmon?
  2. How to install and build Procmon on Linux
    1. System requirements
    2. Install Procmon
    3. Build Procmon from source
  3. 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.

How to install and use Procmon on Linux, an open source tool just released by Microsoft Picture 1 Procmon for Windows

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 use Procmon on Linux, an open source tool just released by Microsoft Picture 2 Procmon demo on Linux

How to install and build Procmon on Linux

System requirements

  1. Operating system: Ubuntu 18.04 LTS with kernel> = 4.18 and kernel <= 5.3.
  2. cmake> = 3.13 (build-time only)
  3. 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:

  1. -h / - help: Print this help screen
  2. -p / - pids: Separate the process id list with commas for monitoring
  3. -e / - events: Separate a list of system calls with a comma for monitoring
  4. -c / - collect [PATHWAY]: Option to start Procmon in non-terminal mode
  5. -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

4.2 ★ | 47 Vote

May be interested

  • How to install Linux operating system on MacHow to install Linux operating system on Mac
    if you have a mac and want to explore a new open source operating system, check out the instructions on how to install linux on a mac below.
  • How to Install and Use Fonts in LinuxHow to Install and Use Fonts in Linux
    but while font rendering is far from perfect in linux, one thing this open source platform does well is allow users to easily manage their fonts. from selecting, adding, and adjusting, you can work with fonts quite easily in linux.
  • Intel CVAT, a handy open source data annotation toolkitIntel CVAT, a handy open source data annotation toolkit
    to reduce the burden on data annotation experts as well as data scientists, intel has released a new program with open source, which is a computer visual annotation tool (computer vision annotation tool). - cvat).
  • 6 reasons Linux makes 'give up' Windows6 reasons Linux makes 'give up' Windows
    why is microsoft windows slow and expensive still dominating the operating system market, despite the superiority of linux and the efforts of the open source community?
  • How to install the new Microsoft Edge browserHow to install the new Microsoft Edge browser
    microsoft this week will officially launch the final version of the new edge browser. it is based on the open source chromium code is google chrome and is available on windows 7, 8, 10 and macos. it is also available for android and ios with a version for linux later this year.
  • How to install GIMP on Ubuntu 18.04How to install GIMP on Ubuntu 18.04
    currently, gimp version 2.10.18.1 has been released and is available to install on ubuntu, linux, and we all know gimp is one of the famous free, cross-platform, open source photo editing software. first, in this article, thuthuat.taimienphi.vn will guide you how to install gimp on ubuntu 18.04.
  • Create bootable USB with Linux Mint 19.3Create bootable USB with Linux Mint 19.3
    in today's article, tipsmake.com will show you how to upgrade from the latest linux mint 17.3 to the existing linux mint 19.3. here is a step by step guide to doing this!
  • Cisco Linksys WRT160NL - 'toy' specifically for open source peopleCisco Linksys WRT160NL - 'toy' specifically for open source people
    being open-source who likes to use toxic goods, mr. nguyen scoured the place to find an open-source wi-fi device.
  • Ways to install Microsoft Excel on LinuxWays to install Microsoft Excel on Linux
    converting from windows to linux is very simple, but there are a number of issues that are incompatible software. what if you want to use microsoft excel on linux? look at this article and find the answer!
  • 28 interesting facts about Linux28 interesting facts about Linux
    linux is a computer operating system and is also the kernel name of the operating system. it is probably the most famous example of the concept of free software and of open source development.