You can instantly rerun your last command by typing !!.Pair history with grep to search for a specific command.Use tail to access your last few commands.Use the command ^oldtext^newtext^ to fix a typo in your last command.Delete a specific command with history -d <line number> or clear your entire history with history -c.