How to save the history of commands in the terminal?

Saving in IT means writing or storing files for future use. Another term for saving means writing.

To save the history of commands in the terminal, you can use the following steps:

1. Open the terminal.
2. Type the following command:

history > history.txt

This will save the history of commands to a file called “history.txt”.

3. To view the history of commands, you can use the following command:

cat history.txt

This will display the history of commands in the terminal.

To view the history of commands in the terminal, you can use the following steps:

1. Open the terminal.
2. Type the following command:

history

This will display the history of commands in the terminal.

3. You can also use the up and down arrow keys to scroll through the history of commands.

4. To clear the history of commands, you can use the following command:

history -c

Related posts:

About Author


Discover more from SURFCLOUD TECHNOLOGY

Subscribe to get the latest posts sent to your email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from SURFCLOUD TECHNOLOGY

Subscribe now to keep reading and get access to the full archive.

Continue reading