Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to view a log, or history of all programs opened in Manjaro Linux?

share|improve this question
Only if you started them from the terminal and haven't truncated your shell history... – jasonwryan Feb 17 '13 at 18:14
up vote 2 down vote accepted

Install the acct package (GNU accounting utilities, which implements BSD process accounting). You'll get a log of all executed commands (not just interactive applications) which you can list with the lastcomm command.

share|improve this answer
Links broken.. I tested acct package and it doesn't seem as detailed as one would want.. example of missing info: Process ID which initiated the command, the file path of the process, its parent ID (if has any) etc. Problem is - if I want to query /proc with a process ID, then the process wouldn't necessarily be there... he could be gone until I try to query for it with more information. – Dor Jul 17 at 13:35
@Dor If you want more logging, you have to request it explicitly. The right tool on Linux would be the audit subsystem, see for example this answer. Unix systems run a lot of short-lived process, so if you log it all, you end up with a lot of information that isn't very useful (who cares what process ran grep?). – Gilles Jul 17 at 19:36
That is often true. But I'd expect it to be possible with an exclusions list (to exclude common binaries like grep etc.). Thank you! – Dor Jul 19 at 7:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.