Is there an easy way to re-apply a previous command to a new command line entry?
Say I typed in
chmod u+r,g+x file.txt but forgot the sudo. Could I simply type
sudo <some easy symbol>'?
Pardon for the possible noob question.
migrated from serverfault.com Jul 28 '14 at 16:52
This question came from our site for system and network administrators.
You can do:
Another good one is
There are some basic bash shortcuts you should know...
In your specific case, I also alias
And I need to prepend something to that...
And I want line #116... So I type:
But if I need something in front of it (e.g.