Issue
I need to get list of all apps which I use most.
I do not want ps aux
or top
etc.
Need to make a shell script which will show frequently used apps of all time like google chrome , firefox , gedit etc.In this list need to show apps which I have opened , but not those which is default opened by OS
If possible, I want to list down running time of app, idle time.I have Fedora and Ubuntu.So no issue with OS.
Please suggest me some commands, to fulfill my purpose.
Solution
Use lastcomm to prints out information about previously executed commands. If no arguments are specified, lastcomm will print info about all of the commands in acct (the record file).
Answered By - Diego Torres Milano