A
A
awox2021-09-23 18:31:22
ubuntu
awox, 2021-09-23 18:31:22

How to find out which programs were launched by the user?

How to find out what programs are running? For example, during the day.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2021-09-23
@q2digger

there is a special service pcacct , you need to install and run it (and enable it as a service, of course). then it will log all the commands that run on the computer in a special place.
there are different utilities in the kit, you can see the executed commands something like this
~# lastcomm --user zabbix | tail -n 10
sh zabbix __ 0.00 secs Thu Sep 23 03:38 grep
zabbix __ 0.00 secs Thu Sep 23 03:38 sh zabbix __ 0.00 secs Thu Sep 23 03:38
grep zabbix __ 0.00 secs Thu Sep 23 03:38
mount zabbix __ 0.00 secs Thu Sep 23 03:38
sh zabbix __ 0.00 secs Thu Sep 23 03:38
wc zabbix __ 0.00 secs Thu Sep 23 03:38
who zabbix secs __ 0.00 Sep 23 03:38
well, there are a lot of them - read the docs

A
AUser0, 2021-09-23
@AUser0

The file '/home//.bash_history' stores the history of console commands for this . It even has timestamps. But programs called via the Enter key in Midnight Commander do not get there. And yet, since this file belongs to the user, he can change it as he wants and at any time ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question