How can I get the command log of a particular user on Ubuntu Server?
20,185
If you use something like bash as a command interpreter, you could check the history.
more /home/user/.bash_history
Related videos on Youtube
Comments
-
Goulash over 1 year
Is there a way to find a log of all the commands that have been run by a user on Ubuntu 11.10 Server? I need to find out what my friend ran to install a program.
-
mikato almost 10 yearsUnder what conditions are commands added to the log? I've read that the commands are only added to the log when you exit. I noticed my commands weren't being added so I thought maybe it was because I was being kicked rather than exiting. Then I tried existing and even the they weren't added. I ask because I'm only seeing a few commands from early on in my new Ubuntu installation.
-
pim about 6 yearsThis seems to be a bad copy of unix.stackexchange.com/a/207819/130000, and this is not an answer to the question about command already issued