Find the answer to your Linux question:
Results 1 to 8 of 8
Hi, I would like to know which is the file that store the used or typed command, the same one when you press arrow up in command line Thank you...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    13

    old command used or typed is stored where


    Hi,

    I would like to know which is the file that store the used or typed command, the same one when you press arrow up in command line

    Thank you

  2. #2
    Just Joined!
    Join Date
    May 2007
    Posts
    72
    Hi,
    If you only want to see what commands you have used in the past, the command history will do it.
    I don't know where they are stored though.

  3. #3
    Linux User
    Join Date
    Nov 2009
    Location
    France
    Posts
    292
    ~/.bash_history
    0 + 1 = 1 != 2 <> 3 != 4 ...
    Until the camel can pass though the eye of the needle.

  4. #4
    Just Joined!
    Join Date
    Mar 2010
    Posts
    13
    Can I delete that history or edit it, what is the limite of that history

    thanks a lot

  5. #5
    Linux User
    Join Date
    Nov 2009
    Location
    France
    Posts
    292
    You may delete or edit that file as any other regular file. For konsole application, the default is to store 1000 commands, which you can modify. I don't know if that limit is set by konsole or bash itself.
    0 + 1 = 1 != 2 <> 3 != 4 ...
    Until the camel can pass though the eye of the needle.

  6. #6
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    The history size is set by the shell. For Bash, it's set by the HISTSIZE variable in either .bash_profile or .bashrc.

  7. #7
    Just Joined!
    Join Date
    Mar 2010
    Posts
    13
    thank you, but how it is the units, I mean, by lines? (1000 lines) or by file zie(250000b) HITSIZE=?

  8. #8
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Number of lines.

Posting Permissions

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