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 changing Magento project folder then run the above command