Check file usage using fuser

2010-06-24 1 min read Fedora Linux

There is a package called psmisc that provides a useful application fuser. The package provides the below (on fedora):

/sbin/fuser
/usr/bin/killall
/usr/bin/peekfd
/usr/bin/pstree
/usr/bin/pstree.x11

There are couple of options you can provide on the terminal to fuser. The main purpose of the binary is to check the process id of the process using the file. This can be useful if some file operation on a file is blocking something for you 🙂

Continue reading

Linux:Please Don\’t Show the Command Line to the Uninitiated (via postie)

2010-06-24 1 min read Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category

Not long ago I had the opportunity to show off GNU/Linux to a friend. She&#8217;s been a lifelong Windows users and is just your average, non-technical computer user. She&#8217;d heard of this thing called “Linux,” but had never seen a Linux distro in use. So, I gladly booted up my laptop and also the desktop (we were at my house, my wife and I having one of our many cookouts) and showed her Linux Mint 7 via a live CD and also Ubuntu 8.10, which is installed on my family&#8217;s desktop.

Continue reading

Customize Your Firefox Browsing Experience On Your Favorite Websites

2010-06-23 5 min read Firefox

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category

<img SRC="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot.151.jpe" ALIGN="bottom" ALT="screenshot.15"/>Did you know that you can customize the way you see a website in your browser?  We’ve all heard of the <a HREF="http://www.makeuseof.com/tag/greasemonkey-firefox-addon/">Greasemonkey add-on for Firefox, right?  If not, check out the articles <a HREF="http://www.makeuseof.com/tag/20-must-see-greasemonkey-addonsno-technical-knowledge-req/">that <a HREF="http://www.makeuseof.com/tag/6-cool-greasemonkey-scripts-to-rock-your-friendfeed/">have <a HREF="http://www.makeuseof.com/tag/how-to-turn-greasemonkey-scripts-into-firefox-extensions/">been <a HREF="http://www.makeuseof.com/tag/top-ten-flickr-greasemonkey-scripts/">written here on MakeUseOf and you’ll be sure to find out some neat stuff about it.

Basically, Greasemonkey allows users to write and implement scripts that customize the way you interact with websites.

Continue reading

Oracle GUI client on Linux with mysql support

2010-06-22 1 min read Fedora Linux

I was looking for some nice client for Oracle and mysql. I did find mysql-administrator and navicat to be useful but this is much better. <a href="http://sourceforge.net/projects/tora/" target="_blank">Tora is the client that I am talking about. Installation did not take much time for me..

downloaded the instant client from oracle.com and then the tora rpm from sourceforge.net. Also downloaded the tora-mysql from http://rpm.pbone.net/index.php3/stat/21/year/2002/month/01/day/28

Then tried to install all the rpms found the rpms that were missing and installed them using yum. Once this is done install the downloaded rpms with &#8221;–nodeps&#8221; option of rpm.Put the entries in bashrc

Continue reading

concatenate compressed and uncompressed logs

2010-06-21 1 min read Bash Linux

<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/Command-line-fu/~3/iwFUyltYgjM/concatenate-compressed-and-uncompressed-logs">concatenate compressed and uncompressed logs

$ find /var/log/apache2 -name 'access.loggz' -exec <a class="zem_slink freebase/en/gzip" title="Gzip" rel="homepage" href="http://www.gzip.org/">zcat {} ; -or -name 'access.log' -exec cat {} ; This command allows you to stream your log files, including gziped files, into one stream which can be piped to <a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk or some other command for analysis.

Note: if your version of &#8217;find&#8217; supports it, use:

Continue reading

Linux command to repeat a string n times

2010-06-17 1 min read Bash

There are more than one situation where you wished that there was a simple way to print a character n number of times. At least I face that quite often, especially when you want to print a menu. I found this post today which has pretty good solution and also the way how it works :
<a href="http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times">http://superuser.com/questions/86340/linux-command-to-repeat-a-string-n-times

\"Enhanced

17 Cool firefox tweaks.

2010-06-16 1 min read Fedora Firefox Linux

A very nice article on firefox can be found here. Though written for Ubuntu should be applicable to all distro&#8217;s.

<a href="http://www.ubuntu-inside.me/2009/07/17-cool-firefox-aboutconfig-tricks.html">http://www.ubuntu-inside.me/2009/07/17-cool-firefox-aboutconfig-tricks.html

Most of it was done in my machine even before I read the article but good to see all of them together 🙂

Older posts Newer posts