can we come to know all the command ran bya user for last 1 day
This is what you are looking for. Enabling Process Accounting on Linux HOWTO