CAll Us: USA +1 9176775553   Login

awk linux command

why awk? awk is small, fast, and simple, unlike, say, perl. awk also has a clean comprehensible C-like input language, unlike, say, perl. And while it can’t do everything you can do in perl, it can do most things that are actually text processing, and it’s much easier to work with. what do you do? […]

Read More »

application hang after NFS server not responding

Question : My application is hang and also df command hang after NFS server is down or not responding ? Ans : If you have mounted the NFS disk on your server and if NFS server is down or not responding then client machine hang or the application which uses that NFS disk is hang . […]

Read More »

How to Zip and Unzip files in UNIX

Here is how to Zip and Unzip files in UNIX unzip myFile.zip – This command will uncompress compressed files with the .zip extension. tar xvf myFile.tar – This command will uncompress compressed files with the .tar extension. gunzip myFile.gz           – This command will uncompress compressed files with the .gz extension.

Read More »

suEXEC mechanism enabled (wrapper:

Not able to start httpd & the error is as below Configuration Failed [Tue Dec 22 11:24:33 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec) [Tue Dec 22 11:24:33 2009] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Checking your disk shows that you have plenty of space. The problem is that apache […]

Read More »

How to check server is suexec or not

How to check server is suexec or not? make 777 permission for index.php file for a clients domain and then access it, if it gives an error as Internal server then sure it is suexec server this time copy servers php.ini file and make necessary changes for client. or root@rushi []# /usr/local/cpanel/bin/rebuild_phpconf – –current Available […]

Read More »

Mysql Commands

To login (from unix shell) use -h only if needed. # [mysql dir]mysql  -u username -p Create a database on the sql server. mysql> create database [databasename]; List all databases on the sql server. mysql> show databases; Switch to a database. mysql> use [db name]; To see all the tables in the db. mysql> show […]

Read More »

Check outgoing emails send from particular email address

Check outgoing emails from particular email address cat /var/log/exim_mainlog | grep “<= username@hostname” | wc -l And incoming as cat /var/log/exim_mainlog | grep “=> username@hostname” | wc -l using current date you can find logs as cat /var/log/exim_mainlog | grep “<= username@hostname” | grep 2009-06-20 | wc -l Note : Replace username= exact cpanel username […]

Read More »

Exim + Basic information

Basic information Print a count of the messages in the queue: root@localhost# exim -bpc Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient): root@localhost# exim -bp Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals): root@localhost# exim -bp | exiqsumm Print what Exim […]

Read More »

ERROR: `/root/tmp/pear/pdflib/configure –with-pdflib=/usr/local' failed

How to UNSECURED /tmp and /var/tmp partition. On the linux server the /tmp and /var/tmp partition is secure. So you can not installed some php modules for example “pdflib” on the server, it shows the error  “ERROR: `/root/tmp/pear/pdflib/configure –with-pdflib=/usr/local’ failed”  then you need to set the /tmp and /var/tmp partition UNSECURED and then try to […]

Read More »

Basic Linux Network Commands:

Basic Linux Network Commands: ====================================== This category contains the most basic network commands available on Linux platform. ====================================== w Shows who is currently logged in and where they are logged in from. ====================================== who This also shows who is on the server in an shell. ====================================== netstat Shows all current network connections. ====================================== netstat -an […]

Read More »
Some useful rpm and yum commands

Some useful rpm and yum commands

Some useful rpm and yum commands In which the package replaced by the original package name which you want. 1. rpm -ivh packages(s).rpm install rpm file(s) 2. rpm -Uvh packages(s).rpm upgrade system with rpms 3. rpm -e package remove package 4. rpm -q package show version of package installed 5. rpm -q -i package show […]

Read More »

One Line linux Commands

One Line linux Commands:—- To find a list of all Open Ports $ netstat -tulpn Linux Disk Utilization Command $ vmstat -D Which Shell are you in? $ ps -p $$ Number of http connections from an IP $ netstat -nut | awk ‘{print $5}’ | cut -d : -f1| sort | uniq -c | […]

Read More »