Type history on the prompt and it will show you all the previous commands with the 
numbers. To execute them type ! no. and you will be able to execute it.
nimish
"Shridhar Daithankar" <[EMAIL PROTECTED]> Wrote---
On 23 Jul 2002 at 11:47, Hareesh Haridas wrote:
>       is there a method in Linux by which ALL of the commands typed in
> by a user during a login session (either at the console or through
> telnet/ssh) can be logged into syslog or another file? the script
> command does it only if the user wishes, so there does not seem to be
> much control for an admin over it.


All such commands are logged in shell history file which depends upon user 
shell. It's .bash_history for bash and .sh_history for sh/ksh, IIRC.

Of course, root can read those files..


Bye
 Shridhar

--
Dow's Law:      In a hierarchical organization, the higher the level,   the greater 
the confusion.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to