Month: October 2009

Installing Multitail

From ghacks.net The easiest way to install multitail is to issue the command (since you’ll be working in the command line anyway): sudo apt-get install multitail or yum install multitail Once the application is installed you are ready to go (there is no configuration necessary). Running multitail —————– The structure of the multitail command is:…


Dstat

If you have a Linux server running at your office or at a data center for which you are responsible, you want to maintain an uptime of as close to a hundred percent. In such a case you want to make sure you keep an eye on how the system is running. To be precise…


Find

With hard drives becoming real cheap over the past few years we’ve grown accustomed to having many gigabytes or sometimes even terabytes of data on our computers. This is when being able to find information on our computers becomes important. Linux has a very handy command line tool very aptly called “find”. I’ll share with…


Find and Replace

When you are working on the Linux command line and you come across a large file or a large number of files in which you need to replace a certain text with another, finding and pasting over each instance of the text can be a bit time consuming. Well, worry no more. Linux has just…


How to monitor your Linux machine with netstat

Netstat is an extremely useful Linux command line tool that allows you to check which service is connecting to a port on your machine. It is very useful to analyze what’s going on on your machine when you are facing or trying to to prevent an attack on it. You can find information such as…


How to resolve the “/bin/rm: Argument list too long” error

root@dwarf /var/spool/clientmqueue # rm spam-* /bin/rm: Argument list too long. Ever seen this error in Linux when you have too many files in a directory and you are unable to delete them with a simple rm -rf *? I have run into this problem a number of times. After doing a bit of research online…


How to monitor MySQL in real-time with mytop

Mytop is a top-like realtime command line based monitoring system for MySQL. It is written by Jeremy Zawodny, and is available for free download. It runs on most UNIX-based systems, and most definitely on Linux machines. This kind of real-time monitoring can be very useful when administering a MySQL server. You need a working MySQL…


How to schedule tasks on Linux using the ‘at’ command

Scheduling jobs is an essential part of administering Linux servers. We took a look at how to schedule jobs on Linux machine using the cron command earlier. Here’s an alternative to cron – at. The primary difference between the two is that when you schedule a task using cron it execute repeatedly without the need…


How to compress, move, and extract a directory – Bash one-liner

The other day I needed to migrate a directory containing a lot of files from one location on my Linux server to another. There are a number of ways I could do this. Using a simple cp command could have done the trick. However, as the data I was copying was a database and I…


How to view a configuration file without the comments

I have to often make changes to configuration files such as httpd.conf and squid.conf. These files have a large number of lines that are commented out, mostly comments and some possible configuration directives that have been commented out as they are not required by default. A problem I face while editing such files is that…