Redirection: Saving History

Saving History as myhistory.txt

Using the history command and the redirection write operator >, create a new file named myhistory.txt that contains the full record of your history.

Solution

CLICK FOR ANSWER

Verification of myhistory.txt

How can you verify that myhistory.txt contains the history of your current shell?

CLICK FOR ANSWER