Saturday, 23 January 2016

Useful Ubuntu Terminal commands

11:21:00 Posted by Kumanan
1. To find the version of installed software:-

<software name> -v or 
<software name> --version

Example :- 

apache2 -v
mysql --version

2. To copy files to www folder :-

sudo cp <file_name> /var/www/
sudo cp -R <file_name> /var/www/


3. Command to get version in SQL :-

mysql --version

3. Command to get version in PHP :-

php -v


3. Command to get version in Apache :-

apache2 -v