Contents
Unix doesn’t natively provide an undo feature. The philosophy is that if it’s gone, it’s gone. If it was important, it should have been backed up. Instead of removing a file, you can move it to a temporary “trash” directory.
How do I undo a command in Linux?
There is no undo in the command line. You can however, run commands as rm -i and mv -i .
How do I undo changes in vi?
Remember, yo undo a change in Vim / Vi use the command u , and to redo a change which was undone use Ctrl-R .