Blogroll
-
Sponsor
Recent Comments
- Sam on GoDaddy NameServer not registered
- Markus on GoDaddy NameServer not registered
- Apache2 on How to limit connections per User IP in Apache 2.2 CentOs
- Kinetic_one on MySql Error#1005 – Can’t create table (errno: 121)
- CPSERVEINFO on GoDaddy NameServer not registered
Category Archives: linux
Find Sizes of SubDirectories In One Command
Today, I was running out of disk space on my laptop; not quite unusual to happen. However, with this situation of out of disk, I had to get rid of the directories or files which are using most space and … Continue reading
Posted in linux
Leave a comment
How to limit connections per User IP in Apache 2.2 CentOs
If you are a system admin or a webmaster, you will face this question at some point of time. How do I limit connections per user ip in Apache 2.2? Generally, you get good users visiting your site who use … Continue reading
How to sync time in Linux, Unix
Very often, one would have seen that the server/desktop time goes off by some seconds/minutes than the standard time. It’s very easy to sync up the time in Linux/Unix. Issue the following command as ‘root’ to update the time. ntpdate … Continue reading
Posted in linux
Leave a comment
GoDaddy NameServer not registered
Recently, I moved over to a new host with a dedicated box and I had to setup the nameservers for my domain kpsolution.com. In Godaddy’s domain manager, I tried to change the nameservers to my domain like ns1.xxxx.com and ns2.xxxx.com, … Continue reading
Use RSYNC to backup data on a second hard disk
On a production server, if you have two hard disk and do not want to spend extra $50 each month, then you could use rsync to backup the data from your main disk to the second disk. It’s very easy … Continue reading
Enable dark background in Eclipse
I was looking around to find a good source which would allow me to control the background of the eclipse. I like black background with white text as foreground. Doing so in eclipse is not straightforward. My System setup is: … Continue reading
How to generate a patch?
To generate a patch for your modified code. All you have to do is generate a diff between original and modified source files using the following command and save the output to the patch file. diff -rup /home/ketan/unmodified_source.c /home/ketan/modified_source.c > … Continue reading
Readelf – Very useful Command
Till now I have been using ‘ldd’ for checking out the dependencies for a linux executable. But recently I discovered, ‘readelf’. It is really amazing utility and comes in very handy when you are analyzing a utility intended for a … Continue reading
How to add a user to a group?
I keep on forgetting this command, so I put it here to remember it forever. To add a user ‘ketan’ to the group ‘admin’, do the following gpasswd -a ketanĀ admin Such a simple and each to use command!!!
How to create SVN repository?
This post will help you create a new SVN repository and it assumes you have the SVN installed & configured on your computer/server. To create the repository for first time, issue the following command svnadmin create –fs-type fsfs /var/www/subversion/kpsolution Then … Continue reading