See the Security and Bug Fixes Section - Grub EFI Install Updates Fix Sticky


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Command shortcuts
#1
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

[Image: 2m5cl13.png]

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.

[Image: 20k6u1h.png]

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. Wink
Reply


Messages In This Thread
Command shortcuts - by Zead - 12-09-2015, 12:19 AM
Re: Command shortcuts - by gold_finger - 12-09-2015, 12:56 AM
Re: Command shortcuts - by Zead - 12-09-2015, 03:08 AM
Re: Command shortcuts - by avj - 12-09-2015, 02:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)