history command

Alexander Dalloz ad+lists at uni-x.org
Wed Jun 1 18:55:16 UTC 2005


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 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050601/081e1c22/attachment-0001.sig>


More information about the fedora-list mailing list