Post #1384962
2025-12-17 04:49 UTC
To add to this one, it also supports more than just the previous command (which is what !! means), you can do like sudo !453 to run command 453 from your history, also supports relative like !-5. You can also use without sudo if you want which is handy to do things like !ls for the last ls command etc. Okay one more, you can add :p to the end to print the command before running it just in case like !systemctl:p which can be handy!
Replies (1)
-
@HakunaHafada@lemmy.dbzer0.com 2025-12-18 05:10
Absolutely wild stuff, there. Thanks for knowledge sharing!