grep command

While administrating a box, you may wanted to find out what a processes is doing and find out how many file descriptors (fd) are being used. You will surprised to find out that process does open all sort of files:
=> Actual log file

=> /dev files

=> UNIX Sockets

=> Network sockets

=> Library files /lib /lib64

=> Executables and other programs etc

In this quick post, I will explain how to to count how many file descriptors are currently in use on your Linux server system.


I’ve already written about a shell script to check / monitor domain renew / expiration date here. Now I’ve modified matt’s domain-check script to support additional C/TLDs .in, .biz, .org and .info domains. I’ve also added 5 seconds delay to avoid whois server rejecting query. This script checks to see if a domain has expired. […]


As I said earlier you need to tweak few things to run this monitor with Intel 810 or 845 based chip-set under Ubuntu Linux. In order to use higher resolution install updated Intel i8xx, i9xx display driver. It is provided by a package called xserver-xorg-video-intel. This package provides the driver for the Intel i8xx and […]


This is one of the key questions many new sys admin ask: How do I audit file events such as read / write etc? How can I use audit to see who changed a file in Linux? The answer is to use 2.6 kernel’s audit system. Modern Linux kernel (2.6.x) comes with auditd daemon. It’s […]


Update: Check out new improved domain-check script. Forgetting to renew your domain name can happen to all of us. According to this post: Reports are coming in from Germany that was down for many hours yesterday, and has now gone live again. We’re trying to confirm the reason, but it appears to be because […]


You can simply monitor your remote system hosted some remote IDC. There may be tons of causes for which system goes out the network. Understanding ping command ping is one of the basic and nifty command to test network connection. For example you can send 4 ping request to with following command: $ ping […]


df displays the amount of disk space available on the file system containing each file name argument. If no file name is given, the space available on all currently mounted file systems is shown. Read man page of df if you are new to df command. Steps => Find disk space using df => Filter […]