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
Share:
20,185

Related videos on Youtube

Goulash
Author by

Goulash

I prefer to keep an air of mystery about me.

Updated on September 18, 2022

Comments

  • Goulash
    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
    mikato almost 10 years
    Under 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
    pim about 6 years
    This 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