Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: SSH commands are stored?  (Read 7101 times)

0 Members and 1 Guest are viewing this topic.

abelleba

    Topic Starter


    Rookie

  • Yee zhaw?
    SSH commands are stored?
    « on: July 26, 2008, 07:17:59 PM »
    Running a CentOS 5 server. I know the 'up' and 'down' arrows toggle through the recent commands used on the server when I'm logged in as root. Anyone know what file these 'recent commands' are stored in or the name of the log file?

    Regards,

    abelleba

      Topic Starter


      Rookie

    • Yee zhaw?
      Re: SSH commands are stored?
      « Reply #1 on: July 26, 2008, 07:33:56 PM »
      NM, found it. /root/.bash_history

      KenJackson



        Beginner
      • Thanked: 1
        • Yes
        • Jackson I/O
      • Experience: Experienced
      • OS: Linux variant
      Re: SSH commands are stored?
      « Reply #2 on: August 04, 2008, 06:50:49 PM »
      Actually, they're saved in ~/.bash_history, which is the file you found when you are logged in a root.  But each user has his own history file.

      You might also want to look at the information that this command displays:
      help history