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