Use `sudo !!` to repeat your last command with root privileges. Try `cd $(dirname !!)` to change to the directory of the last command's target. Saves retyping long commands.
🔗 Learn more in my course: https://monospacementor.com/courses/linsys-1/
The Monospace Mentor
Basic Linux System Administration (LINSYS-1) > The Monospace Mentor
Basic Linux System Administration (LINSYS-1) Boost Your System Administration Career With Expert-Led Training Want to get into DevOps/SRE? It all starts with Linux. Every cloud server, every DevOps pipeline, every modern internet infrastructure runs on Linux. Yet most beginners struggle to learn it effectively. They get lost in complex documentation, overwhelmed by command-line interfaces, or...
⁂
More from
The Monospace Mentor