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...
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.
Must Read
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.