I'm not sure if someone posted this already, but I've found this neat command line feature a while back.
Maybe you all already know about this, who knows.
Let's say you want to type in inside terminal: "sudo apt-get autoremove --purge", but instead, you can just type in "!1".
All you have to do is:
1) Open ".bash_history" located in /home/yourname/
2) Type in to the first line: sudo apt-get autoremove --purge
3) Save, and you are done!
4) Now open your terminal, and for example type: !1 skype (And it will completely wipe out your skype including it's configuration files and all dependencies installed with it).
For example when I want to update my system, I just open my terminal and type in: !1, and then my password. Fast, easy.
Whatever you add to second line in ".bash_history" will be !2 and so on.
Just please don't run the update command I have without knowing what you are doing. Linux Lite devs recommend not to run dist-upgrade.
I'm sure there are ways to bind the command lines to your keyboard macros, But I haven't found how to do that yet.
I hope this tutorial is helpful to someone.
Maybe you all already know about this, who knows.
Let's say you want to type in inside terminal: "sudo apt-get autoremove --purge", but instead, you can just type in "!1".
All you have to do is:
1) Open ".bash_history" located in /home/yourname/
2) Type in to the first line: sudo apt-get autoremove --purge
3) Save, and you are done!
4) Now open your terminal, and for example type: !1 skype (And it will completely wipe out your skype including it's configuration files and all dependencies installed with it).
For example when I want to update my system, I just open my terminal and type in: !1, and then my password. Fast, easy.
Whatever you add to second line in ".bash_history" will be !2 and so on.
Just please don't run the update command I have without knowing what you are doing. Linux Lite devs recommend not to run dist-upgrade.
I'm sure there are ways to bind the command lines to your keyboard macros, But I haven't found how to do that yet.
I hope this tutorial is helpful to someone.