How you record all the following activities performed by the user in Linux?

Tâm Tây

New member
How you record all the following activities performed by the user in Linux?
Answer
Record all User’s Linux terminal session activities
[
[email protected]
~]# vi /etc/profile …………………………………………………… if [ “x$SESSION_RECORD” = “x” ] then timestamp=$(date +%d-%m-%Y-%T) session_log=/var/log/session/session. $USER. $$. $timestamp SESSION_RECORD=started export SESSION_RECORD script -t -f -q 2>${session_log}.
 

Tìm kiếm

Back
Top