cp -r source_dir sest_dir
Category Archives: Linux
How to remove/delete a directory / folder
rmdir dirName rm -r dirName rm -ir dirName
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 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
Enabling Location/Address Bar in ubuntu
Goto Terminal and type the given command
#gconf-editor
You can see a new configuration window and may follow the instructions.
apps -> nautilus -> preferences
Right side you can see some options , just enable the second option [always_use_location_entry ]