How to Re-indexing in Magento through the command line

For the status of all indexes:

php indexer.php –status

Re-indexing a single index:

php indexer.php –info

Re-index for all index:

php indexer.php –reindexall

Re-index for single or multiple index:

php indexer.php –reindex catalog_product_price,catalog_url,catalog_product_flat