Shortcut to run current command with sudo in bash

For me, I mostly forget to add “sudo” to the command until the time I am actually supposed to run it. Also sometimes, on some systems, bash completion does not work as expected with “sudo”. With these in mind, I wanted something such that when I have completed the command, I could insert sudo in the begining of the command without much ado. So, finally this is what I came up with in my “~/.inputrc” file. Note: If you don’t have this file, then simply create this file.

"C-k":"C-a sudo n"
Enhanced by Zemanta

systemadm – simpler way to manage the service files for systemd

Once the systemd unit and service files have come into being, understanding of the system services have changed a little bit and it might require some time to understand the cli tools for managing these services and units. That being the case, systemadm comes to rescue. This is a simple tool which :

Graphical front-end for systemd.

For installation :

sudo yum install systemd-gtk

And here’s a screenshot::

systemadm
systemadm
Enhanced by Zemanta