Battery performance improvement with powertop and using xidel.

2012-12-24 1 min read Fedora Linux
For those of you, who have not heard about powertop, it is a tool to monitor the power consumption on your system. It has a tab which shows the tuneable parameters. Doing the changes suggested in those would improve the life to quite an extent. Here is the description of powertop: PowerTOP is a tool that finds the software component(s) that makeyour computer use more power than necessary while it is idle. Continue reading

xmlwf – Is your xml document well formed?

2012-02-18 1 min read bash
There is a small nifty utility called xmlwf that can check your xml documents to see if they are well formed. sudo yum install expat Once installed, simply use : xmlwf Need more details, just check the man page 🙂 Related articles Assigning ID to Objects transmitted in XML document ( removing characters from php output in xml ( C# XML parsing using XElement and child contents (

Using file partially for filenames

2012-02-12 1 min read bash Learning
There are some commands that take file name and there are some case where you need to give file name. But there are some cases where you want to modify the file before passing it to the command. What do you do in these case’s? I had a file containing huge amount of data and for some testing I wanted to pass only the first few lines of the file and not the complete file. Continue reading

Tora installation on Fedora 16 with rpm

2012-02-09 1 min read Database Fedora
[][1]Image via Wikipedia Last article I talked about tora installation from the sources, but if that is too much for you then you can use this one liner: rpm -ivh "" But if you like the hard way out, then you can always try this. Related articles Unrar in Fedora… ( Fedora Utils just got easier ( rpmorphan – deborphan for the rpm based distros. (

using `!#$’ to referance backward-word

2011-11-03 1 min read bash Linux
Image by jeffalldridge via Flickr Here is something that I found on the commandlinefu cp /work/host/phone/ui/main.cpp !#$:s/host/target Ah well…its very interesting and very useful. Some explanation: !# – means the current command (similar to !! being the last command) $ – represents the last parameter :s – is used for substitution. Related articles CommandLineFu: Amazing Collection Of Command Line Gems [Linux & Mac] ( Oh, the Iron-y (

bash math

2011-01-29 1 min read Uncategorized
some quick links : Related articles W3C Announces MathML 3, New Standards for Math on the Web ( Find all the missing paths in the PATH variable in bash script ( Nice site for Math related games and resources… ( bash 4.0 – new feature mapfile (

List all installed rpm packages and it’s size

2010-12-09 1 min read Fedora Linux
If you are looking for a command to see the disk usage by each of the rpm‘s then you can use this command: 1 <td> <div class="text codecolorer"> &nbsp;rpm -q --queryformat "%10{SIZE}\t%{NAME}\n" </div> </td> </tr> And if you use this command very regularly then you can create an alias like 1 <td> <div class="text codecolorer"> &nbsp;alias rpm_size='rpm -q --queryformat "%10{SIZE}\t%{NAME}\n" ' </div> </td> </tr> and use it like 1 Continue reading
Older posts