history command

Hi,

Can anyone please let me know how QNX maintains history of commands and is there anyway to keep it between multiple sessions like bash history is maintained in Linux environments?

Thanks and Regards
Bhawna

It’s in memory and as far as I know I don’t know of a way to keep it between sessions.

You can install bash.

If bash is configured right I believe it could do it in 6.3.2 or later, since we now support writeable mapped files.

In ksh, set HISTFILE , for example in .profile:
HISTFILE= $HOME/history.txt

HISTFILE is the name of the file used to store history. When assigned to, history is loaded from the specified file. Also, several invocations of the shell running on the same machine share their history if their HISTFILE parameters all point at the same file.

For details, check QNX Neutrino RTOS 6.3->Utilities Reference->ksh