Frequent Question: How Do I Recall a Linux Command?
Contents

How do you reverse a command in Linux?

There is no undo in the command line. You can however, run commands as rm -i and mv -i . This will prompt you with an “are you sure?” question before they execute the command.

Where is Linux command history file?

The history is stored in the ~/. bash_history file by default. You could also run ‘cat ~/. bash_history’ which is similar but does not include the line numbers or formatting.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest