If you recently entered a command that is close to the command you want to enter, you can edit the recent command.
Press the Up Arrow key until you see the command you want to modify.
Press the Left Arrow key to skip over parts of the command you don’t want to change. Press Right Arrow key to skip over text to the right.
Press Delete to remove unwanted portions of the command, and type your modifications.
Press Enter to run the command.