LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Creating a Log file to log activity time in Ubuntu mint (https://www.linuxquestions.org/questions/linux-newbie-8/creating-a-log-file-to-log-activity-time-in-ubuntu-mint-940250/)

nervous137 04-17-2012 09:11 AM

Creating a Log file to log activity time in Ubuntu mint
 
How can I create a log file to detail the time spent on each activity on my Linux box, or is there already a log file available for viewing?

Many thanks

David

pan64 04-18-2012 02:12 AM

last will show you some information, is this what you are looking for?

Satyaveer Arya 04-18-2012 07:59 AM

Rather than looking into log files, you can one thing, just install this package -

Code:

$ sudo apt-get install acct
Start the acct service.

Code:

$ sudo service acct start
and run the ac command, you'll get all the information.
Also check the man page of ac before using it.

Code:

$ man ac

Satyaveer Arya 04-18-2012 08:02 AM

And to see the commands executed by a particular user you can check with this command -

Code:

$ lastcomm <username>

nervous137 04-19-2012 07:37 AM

Great I will give it a go. Thank you to everyone who replied. Many thanks

D


All times are GMT -5. The time now is 07:19 PM.