How to flush Magento 1.9.x cache using SSH?
I have resolved the issue by myself with the following solution:
Login to your server and run the below command from your magento root directory:
php -r 'require "app/Mage.php"; Mage::app()->getCacheInstance()->flush();'
Above command flush your magento 1 cache. I suggest when change magento project folder then run above command
You may delete it from command line with the below commands
$rm -rf var/cache/*
$rm -rf var/session/*
Find full details here
(or)
Mage::app()->getCacheInstance()->flush();
A shell script is provided here to do the same.