#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2014
    Posts
    1
    Rep Power
    0

    Unhappy Question on .sh_history file


    Does Unix buffer the data that is written to .sh_history? I've seen it take awhile to appear after issuing a command. If there is a buffer, is there any way to FLUSH it?

    Thank you,
    Greg D.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2006
    Posts
    2,636
    Rep Power
    1811
    Never really had to bother about that and not noticed the 'lazy updating'. I suspect the data is in memory, waiting to be written out to the file at some stage, but owuld have expected that any command to look at the file would have either caused a flush of data to file or use of the memory-based data as well.
    What are you doing to check the commands are appearing (or not)?
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc

IMN logo majestic logo threadwatch logo seochat tools logo