My question is how do I find my terminal command to undo it in the future? Does this sound right? I found it online. You can check to see what commands are in your history at any time by running the history command. When you type history and press Return, Terminal displays a list of the commands in the history list.
You don't have to go back to your original command entry to change it. You just retype the command with new parameters.
I ran "history," but it didn't give me a complete history, only items "201 - 216," but with no time frame.
You can also call up past entries by launching Terminal and hitting the up arrow, but it can be awful tedious.
By the way, you need to be awful confident of your sources if you're going to run commands you found with a Google search.