Import mysql file over mysql shell client
$> mysql -u USEERNAME -p $> mysql> USE dbname3; # enter Database changed $> mysql> source ./relative_path_to_file.sql; # enter
$> mysql -u USEERNAME -p $> mysql> USE dbname3; # enter Database changed $> mysql> source ./relative_path_to_file.sql; # enter
To reset filepermissions of Magento, you can run these commands on shell from within the Magento root folder: $> #for magento 1.5+ $> find . -type f -exec chmod 644 {} \; $> find . -type d -exec chmod 755 {} \; //if shelluser for checkout != apacheuser => 775 $> chmod o+w var var/.htaccess […]
$> sed -i ‘s/old-word/new-word/g’ file
To generate a 1024 Bit encrypted SSH key you can use the following command: $> ssh-keygen -b 1024 -t rsa Normally the key is saved in ~/.ssh/id_rsa together with the corresponding public key (~/.ssh/id_rsa.pub). Attention: Make sure you can remember the paraphrase later on if you entered one.