Where to find previously executed commands

I want to understand how the up / down arrow keys help navigate through previously executed commands. what memory does it get to get the last executed command?

I am currently working on a "Stratus VOS" unified machine where I can only see the last 1 command executed and this also with the F10 key. I want to create a script / tool that will help me get at least the last 10-15 commands executed to save time during development.

what I've noticed so far on the Stratus Machine:

1: fc command does not work. 2. HISTFILE is not supported. history command doesn't work.

what i thought to implement:

find what memory on the system contains the last command executed, access that memory (whenever the Enter key is entered), and keep writing to the file. Am I on the right track? is there a better solution for this?

+3


source to share


1 answer


I would suggest that while possible, your solution might be overly complex and likely to be complex and possibly unreliable. Instead, I would consider using the Stratus VOS GNU Toolkit, which includes a complete GNU Bash shell with all the features you'd expect, including command history support.



A little documentation on GNU tools for Stratus VOS is apparently available here , although I would suggest contacting your vendor for more information.

0


source







All Articles