rmdir dirName rm -r dirName rm -ir dirName
All posts by Pramod T P
How to create a directory / folder
mkdir dirName
How to change permissions for a file/folder in Linux?
It can be done with the help of CHMOD command chmod [OPTION] MODE FILE/DIR-NAME. eg : chmod -R 777 file/fir-name
Linux command to export a database – MySQL
mysqldump -u USERNAME -p DATABASE-NAME > test.sql
Linux command to import a database – MySQL
mysql -u USERNAME -p -h localhost DATABSENAME < sql-file-name.sql
MySQL command to modify password – Linux
mysqladmin -u root -p password Newspassword
MySQL command to show list of tables – Linux
show tables;
MySQL command to show list of databases – Linux
show databases;
How to connect to my MySQL Database server using command line
mysql -h localhost -u root -ppassword
How to connect to MySQL Database server using command line
mysql -h localhost -u root -ppassword