Category Archives: Linux


Steps to find the Installation date of a Operating system installed Linux CentOS and Red Hat

Steps to find the Installation date centos of a Operating system installed Linux CentOS and Red Hat On a CentOS or RedHat based Operation system You can easily find the date and time of the Server is installed. Method 1 :  Using, rpm command to find the basesystem and using the basesystem information we can use rpm -qi to find Date and time. Step 1 : First get the basesystem rpm by the below command.

eg. result below.

Step 2 : Copy the whole basesystem version number and input the below command.

eg. base on Read more…


sar command usage and details examples sar command usage and details examples System Activity Report – SAR used to report on various system loads, including CPU activity, memory/paging, device load, network. Linux distributions provide sar through the sysstat package.

Example :

sar command, sar usage, sar details, sar examples


spamd crashed, cpanel spamd re-installation on the server spamd crashed, cpanel spamd re-installation on the server When you see the exim panic log @ /var/log/exim_paniclog you will see the below errors

When we try to restart the service using. No response or solution to the problem.

the solution is to reinstall the spamassasin By the Below commands, we can successfully reinstall or upgrade the spamd or SpamAssasin

Alternatively, You can also do the upcp by forcing to upgrade the applications.

This will reinstall and upgrade even the versions are upto date. Drop in your Read more…


Its worth sharing, i was searching for this for long time. cPanel update logs are stored in the following directory path: Code:

The following command will display the log files in order from oldest to newest, with the most recently-modified files at the end or bottom of the list: Code:

Now do a tail -f /path to the file to see the results.

That is it.


how-resolve-error-failchk-DB_RUNRECOVERY-Fatal-error-run-database-recovery

Now to resolve error failchk DB_RUNRECOVERY Fatal error run database recovery Now to resolve error failchk DB_RUNRECOVERY Fatal error run database recovery When trying to install an application through yum [Yellowdog Updater, Modified] You may get an error message saying from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error message is shown below.

What should we do now, its simple, You first try clearing the yum repository as below.

You were still shown the error message as above, You will need to rebuild the rpm database. Try the command rpm –rebuilddb

You will get the Read more…


how-using-grep-egrep-command- find-single-multiple-words-pattern-linux-os

Using grep command to find single and multiple words pattern Using grep command to find single and multiple words pattern Using the simple grep command, you can able to search for a single word. but, how to search multiple words or parern of words using grep command on lunux Operating Systems. For an example,  search words like error, warning, critical from a file On our example, we are going to use the file /var/log/messages,

If you want to match multiple text we need to add -w as option

egrep is a command which we can use Read more…


disable-root-access-server-add-another-user-to-sudo-centos-ubuntu-debian

How to disable root access to server and add another user to sudo in CentOs Ubuntu Debian How to disable root access to server and add another user to sudo in CentOs Ubuntu Debian Default administrator username is root on Linux Based Operating Systems. its easy to remember the name (root) but sometimes this default name will be a problem as many use it do a brute-force on your server and get your server hacked. We are going to see how to disable Direct root access to the server in CentOs, Ubuntu, Debian & Ubuntu Flavours First you Read more…


creating-ssh-user-provide-permission-only-a-specific-folder

Creating ssh user and provide permission only to a specific folder Creating ssh user and provide permission only to a specific folder This process is simple and easy. First You need to login to your vps or dedicated server. Once logged in, create a user by the below command and set password for the created user. eg. earneasy is the username we are creating here.

Now, we will change the folder permission so the user can create, delete or modify the files in the directory.

Now change the ownership of the folders, so this user can Read more…

Subscribe to Our Blog via Email