Sunday , 22 January 2017
Home » Home


How to install Mytop 1.9.1 on Cpanel

MyTop is one of the best MySQL monitoring tools available, written by a MySQL guru, Jeremy Zawodny. Its vital for monitoring your MySQL health, especially in a shared hosting environment. Installation on a CentOS (for cPanel) server is quite straight forward with this guide. First off, we need a few perl modules, cPanel’s realperlinstaller comes in handy, if you aren’t on …

Read More »

Linux: How To Empty a Directory

How do I empty a directory (delete all files) under Linux / Unix without deleting directory itself? You can use the following commands: [a] rm command – Delete one or more files or directories. [b] find command – Find and delete all files from a specific directory. Linux Empty Directory Using the rm Command Consider the following directory structure: /tmp/ | |------foo/ |---file1 |---file2 …

Read More »

The 10 most useful Linux commands

Maybe the command line isn’t your favorite place to hang out, but to be an effective Linux admin, you need to be able to wield a few essential commands. These 10 are guaranteed to simplify your Linux admin life — and he explains why. I understand that many of you don’t want to use the command line in Linux (or …

Read More »

DOS-to-UNIX file conversion

Using Perl: # WARNING! For UNIX only! Do not use with ActivePerl in MSYS shell on Windows! # (Returns error message and file is deleted.) perl -pi -e 's/\r\n/\n/g' filename Using sh or bash: Works fine even in MSYS shell on Windows. #tr -d '\r' < original_filename > new_filename (Note that the “<” and “>” must be typed for this command to work). …

Read More »

Get Information About Your BIOS / Server Hardware From a Shell Without Opening Chassis ( BIOS Decoder )

biosdecode is a command line utility to parses the BIOS memory and prints information about all structures (or entry points) it knows of. You can find out more information about your hardware such as: => IPMI Device => Type of memory and speed => Chassis Information => Temperature Probe => Cooling Device => Electrical Current Probe => Processor and Memory Information …

Read More »

Linux: Restart Nginx WebServer

How do I restart nginx web server under Linux? To restart nginx web server use any one of the following command as a root user: # /etc/init.d/nginx restart However, recommed way is as follows which should work with any Linux distribution : # nginx -s reload OR # /usr/local/nginx/sbin/nginx -s reload

Read More »