Accessing arugments from previous commands echo a b c d a b c d echo !:2 b If you press tab after !:2, it is expanded to 2nd argument from the previous command.