


I could easily press the up arrow to redisplay the command and then alter the command to copy one of the files to a different location. In the previous example, I copied pictures into my Users/Shared directory. Use the same trick to change a command’s arguments or options. For example, if you have several files in your Pictures directory, you can use the up arrow to redisplay the previous command, change the file name, and run the command again on a different file. You can use command editing to change commands and run them on different files. (You don’t need to move the cursor back to the end of the line.) Use the left arrow to move the cursor to the location where you need to add the zero, type 0 and then press enter. Using the command history, you can press the up arrow to display the command again. When you go to the directory and check, you see that there is indeed a file with a similar name, but you left out a zero. Terminal says the file doesn’t exist, but you’re sure it does.
