SyntaxFix
Write A Post
Hire A Developer
Questions
Very similar to @Jonathan Wheeler:
If you do not want to remember, but not rewrite bar:
bar
rm -r bar/ cp -r foo/ !$
!$ displays the last argument of your previous command.
!$