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  

Magento – Reset Filepermissions

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 […]

Linux – Replace text in file

$> sed -i ‘s/old-word/new-word/g’ file

Create a SSH key with 1024 Bit encryption

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.