Only if you know either root or his password, you can type this command:

sudo less /home/<username>/.bash_history
or
sudo -U <username> less /home/<username>/.bash_history

Jeremiah E. Bess
Network Ninja, Penguin Geek, Father of four


On Wed, Oct 7, 2009 at 04:51, vivek_12315 <[email protected]> wrote:

>
> Me and my friend are logged in to a unix machine.
>
> I want to find a particular command fired by my friend. Is there any
> way by which I can see his history file ?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---

Reply via email to