Home » Server Managment

Server Managment

HowTo: Linux List Disk Partitions Command

How do I list all hard disk partitions under Linux operating systems? Usually, your hard disk drive divided into one or more logical disks called partitions. This division is described in the partition table found in sector 0 of the hard disk. The device is usually /dev/sda, /dev/sdb or so. A device name refers to the entire disk and the …

Read More »

Linux / UNIX – Display the permissions of a file

Q. How do I list or display the permission of a file using ssh? I don’t have GUI installed on a remote Linux computer. A.You need to use ls command with -l option. File access permissions are displayed in the first column of the output, after the character for file type. ls command List information about the FILEs. If no argument …

Read More »

Find out the spam mailing script’s location – Exim

The Exim mail server has a lot of options/commands to find out the details of spammers easily from the command line. Click this link “Spam Check” to get more ideas. We can find out the mail queue details, spam mail sender details, spam mail counts etc from the link I mentioned above. Here is a script/piped-command to find out the …

Read More »

Backup and Restore MySQL Database Using mysqldump

mysqldump is an effective tool to backup MySQL database. It creates a *.sql file withDROP table, CREATE table and INSERT intosql-statements of the source database. To restore the database,  execute the *.sql file on destination database. Using mysqldump, you can backup a local database and restore it on a remote database at the same time, using a single command. In …

Read More »

PHPMyAdmin – Unable to establish a PHP session

PHPMyAdmin error Have you ever come across the following error when you access PHPMyAdmin from cPanel. Access Denied Unable to establish a PHP session. If you believe that this is in error or inadvertent, contact your system administrator and ask them to review your server settings. Normally, you will get this error when the permission or ownership of the tmp folder …

Read More »

HowTo: Flush Contents Of a Memcached Server Using Command Line

I’ve installed memcached server under Linux but it is still showing old data. How do I flush the contents of a Memcached instance / server? You can invalidate all existing cache items using the flush_all command. This command does not pause the server, as it returns immediately. It does not free up or flush memory at all, it just causes …

Read More »

How to turn Off linux password expiration?

Question : How to turn off password expiration under Linux?   Answer: The  Encrypted password list is stored  in /etc/shadow file cat /etc/shadow   root:$1$dkk&Iw6zvgu$P3ms0o5GiXv66BzNXe0:15294:0:99999:7:: This is the explanation of the above line {userName}:{password}:{lastpasswdchanged}:{Minimum_days}:{Maximum_days}:{Warn}:{Inactive}:{Expire}: Under Linux, to turn off the password expiration  we  use a  tool   called “chage” you  can  download it via yum  or  apt-get package  managers  tools. For Debian based …

Read More »