Shortcut to run current command with sudo in bash

2012-09-20 1 min read Fedora Linux
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 “~/. Continue reading

Introducing /run – what is this directory doing in my root directory?

2011-04-13 1 min read Linux
Image via Wikipedia http://lwn.net/Articles/436012/ There is a suggestion to add /run directory that will be mounted as tmpfs. This directory will be mounted early in the boot process and can be used in various scenario’s. I hope this will improve few things in the linux world. Related articles How to find the number of files inside the directory in linux (manivasagan.wordpress.com) How do you reset your Ubuntu password (wiki.answers.com) Finding Files using – locate – on Linux (galigio. Continue reading