Use !!:$ to recall last argument of previous command Example: $ vi /var/tmp/junk/this_is_a_very_long_file_name.dat $ ls -l !!:$