27 May 2017

Linux Ubuntu Commands -

Linux Ubuntu Commands -

1. Grant Permissions on folder & It's files =>  sudo chmod -R 777 /var/www/html[Path]

2. Check Permissions on folder/files =>  

a).   ls -l  
b).  ls  -la /var/www/

3. Command to access terminal from root user => sudo su

4. MySql Access Command =>   mysql -u username -p

5. Database Show Command => Show Databases;

6. Select Database Command => Use Database Name;

7. See Structure of folder & files => tree

8. Command to correct the apache permission to www folder -

a). sudo chown -R www-data:www-data /var/www/

Refer the following link -
            https://www.digitalocean.com/community/questions/setting-permissions-for-wordpress

9. Mysql DB Export Database Command -

Syntax -  mysqldump -u USER_NAME -p DB_NAME > FILE_NAME.sql

e.g.   mysqldump -u motormanager -p motormanager > motormanager_ravi_bkp_july_2018.sql

10. MySql DB import Database Command -

  source  PATH/FILE_NAME.sql





No comments:

Post a Comment