Results 1 to 6 of 6

Thread: View log what commands where executed?

  1. #1
    Join Date
    Oct 2008
    Beans
    11

    View log what commands where executed?

    Hi,

    is there a log, which saves what commands where executed in the shell e.g. via ssh?

  2. #2
    Join Date
    Dec 2010
    Location
    Fukuoka, Japan
    Beans
    1,062
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: View log what commands where executed?

    Yeah, history.
    Go to a terminal and simply type "history" If you want to make it easier to read:
    Code:
    history | less
    If you want to search for something (example "banana")
    Code:
     history | grep banana

  3. #3
    Join Date
    Oct 2008
    Beans
    11

    Re: View log what commands where executed?

    in which file is it stored? and how can i configure it?

  4. #4
    Join Date
    Sep 2006
    Beans
    8,163
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: View log what commands where executed?

    Another way to work with the history is to use the file ~/.bash_history, it is where history gets its data from.
    The Truth Shall Make Ye Fret.

  5. #5
    Join Date
    Dec 2010
    Location
    Fukuoka, Japan
    Beans
    1,062
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: View log what commands where executed?

    Quote Originally Posted by PrinzLangweilig View Post
    in which file is it stored? and how can i configure it?
    What exactly do you want to configure?

  6. #6
    Join Date
    Oct 2008
    Beans
    11

    Re: View log what commands where executed?

    Solved, just wanted to know how i can set nr of commands.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •