Forget sudo?
If you get frustrated because you forgot to run your last command with sudo, just try
$sudo !!
Written by NM
Related protips
1 Response
The one's that's I actually find more useful to me is when i do a cd /path/to/file
then discover it's a file not a folder, and i want to open vim
, doing a vim !!
would result to
vim cd /path/to/file
instead you can use just the parameter passed to cd and pass it to vim doing this
vim !!:$
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#