Bash Scripting Basics: Part 1

If you have been using computers for a while, whether you have been using Unix, Windows or Mac operating systems, you’re probably already familiar with the term shell. A shell is piece of software that is inbuilt into most operating systems which acts as an interface to the kernel and other software. Shells come in various shapes and sizes, but in …

Read More »

Find Linux RAM Information Command

How do I find out ram information under Linux operating systems? You can use the following commands to find information about RAM under Linux operating systems. Find Used and Free RAM Info Command You need to use the free command: # free # free -m total used free shared buffers cached Mem: 7930 4103 3826 0 59 2060 -/+ buffers/cache: 1983 …

Read More »

RHEL / CentOS Linux: Mount and Access NTFS Partition

How to enable NTFS support on CentOS Linux version 5 or 6? How do I mount ntfs partition under RHEL 5 or 6? First, you need to install EPEL repo as described here. The following command will turn in EPEL repo on RHEL / CentOS version 6.x: # cd /tmp # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm NTFS-3G NTFS-3G is a stable, …

Read More »

Red Hat Enterprise Linux / CentOS Linux Enable EPEL (Extra Packages for Enterprise Linux) Repository

Q. How do I enable EPEL (Extra Packages for Enterprise Linux) repo and install the packages under RHEL / CentOS Linux? A. EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and …

Read More »

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 »