Re: history command

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

 



Am Mi, den 01.06.2005 schrieb jim martin um 16:30:

> I was wondering how the command history work.  For
> example when I type history in the root, I am seeing
> all the past commands that I had type. But my
> colleague did type some commands just now but they
> seems not shown in the history file. He is type those
> command using root too. Anyone know why it is not
> shown in my history command session output. Anyone
> know why? 

The bash history is written at shell exit. You may use something like
'PROMPT_COMMAND="history -w"'

> Besides, how do I see other non-root user command
> history ?  

You want to spy? Please respect user's privacy.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.27_FC2smp 
Serendipity 20:52:36 up 8 days, 19:30, load average: 0.05, 0.22, 0.37 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux