[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: zero size /root/.bash_history



Hi Sven,

It never crash during my session as far as i know. It is a Debian Etch
with 2.6.18-6 kernel on XEN VPS server. But i know, the server being
rebooted for sometime.

Do u think it is possible that my server being hacked. It seems normal to me..

Regards,
jeffry

On 8/13/09, Sven Joachim <svenjoac@gmx.de> wrote:
> On 2009-08-13 10:00 +0200, paragasu wrote:
>
>> it is kind of weird when i checked my .bash_history, it is empty.
>
> Did your computer crash recently?  Some filesystems (e.g. ext4 before
> kernel 2.6.30) might cause empty files under some conditions.
>
>> #set give me
>> HISTFILESIZE=500
>> HISTSIZE=500
>
> These are the standard values.  Make sure they are not set to 0 anywhere.
>
>> right now it work normal. after my last login it is not zero size anymore.
>>
>> what i want to ask is, if the file (.bash_history) automatically empty
>> after the filesize reach 500KB?
>
> First, the size of 500 means 500 lines, not 500 KB.  Second, no, it will
> not be emptied, bash will save the most recent 500 entries.
>
> Sven
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>


Reply to: