Bash Command and output History

You can keep track of bash command and output history by using script command.

Login to a server and run

script /tmp/commandouput.log

Now you can continue working. Once you logout and come back into the server, you can view that file to see the command and the output history.

🙂

You may also like...