Modern shells support command-line editing for efficient recall and correction of commands. Command-line editing is more efficient than using the shell's history mechanism. Shells like KornShell, Bash ...
There's a lot to learn about image files on the command line, from verifying file format to finding out where and when photos were taken and maybe even getting an unusual view of what they look like.