console command history

Adam Vande More amvandemore at gmail.com
Sat Oct 22 16:01:16 UTC 2016


>
> Thank you. You hit the mail on the head. The original posted problem has
> nothing to do with those statements referenced in previous posts in this
> thread.
>
> The real problem is the shutdown, halt, and reboot commands just kill the
> system which includes the csh shell that the command was issued from
> denning the running shell the opportunity to save the current console
> command history so it can be restored when the root logs in after the
> system is started again.
>

FYI, reboot(1) should not be used to reboot from multiuser mode, use
shutdown(1) for that.

Something like "history -S" would need to be part of the prompt, or a
specific option in tcsh to commit history at each new prompt.  Linux/Bash
seems to do the sensible thing, perhaps it would be good to determine how
it's done there.

-- 
Adam


More information about the freebsd-questions mailing list