Discussion Locked

Solaris 8.0 and command history

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

my student was working on solaris and he just quit the terminal window in which he had work done. Is there any solution to get all info (as I could see if he didnt close his terminal window).or alternatively I want to get what was the command history as well as the output of these commands

matter urgent and needs a quick reply

11 replies

by Former member

Look for a file named ".sh_history" in the student's home directory. This will have the last commands the student entered.

by unixadmin

If the user is running the borne, bash, or ksh you can look at .sh_history file in the user home directory. This will give a list of the users last commands. If accounting is configured you can use the lastcomm command which will give you a more detailed list of commands executed. If you enable kernel level auditing by enabling the basic security module you can get detailed information on what a user did, accomplished, and failed to do.

by paulo.sedrez

Solaris normally assigns C Shell for it users; if it is configured to save its history (variable savehist set in ~/.cshrc), it should be at ~/.history.

--Sedrez

by paulo.sedrez

Solaris normally assigns C Shell for it users; if it is configured to save its history (variable savehist set in ~/.cshrc), it should be at ~/.history.

--Sedrez

by paulo.sedrez

Solaris normally assigns C Shell for it users; if it is configured to save its history (variable savehist set in ~/.cshrc), it should be at ~/.history.

--Sedrez

This discussion is closed to new replies.