Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

It seems that in Solaris 11 the command history is cleared every time user exits the shell.

Is there an option to keep history after the user logs out so that it will be available at next login?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

History is a non OS dependent shell feature. Bash and ksh93 which are the most common login shells under Solaris 11 Express handle history a slightly different way.

Make sure the HISTFILE variable is set when ksh is invoked, or set before you exit the shell if you use bash. In both cases, make sure it points to a file you have permissions to write to.

share|improve this answer
    
Thanks. it was a file permission problem –  Indika Aug 25 '11 at 12:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.