Is there a way in Bash to recall the argument of the previous command?
I usually do vi file.c followed by gcc file.c.
Is there a way in Bash to recall the argument of the previous command?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
$_or!$to recall the last argument of the previous command.Also Alt + . can be used to recall the last argument of any of the previous commands.