SSH: verschil tussen versies
Uit dotSearch
| Regel 5: | Regel 5: | ||
* Disable safe_mode in shell: ''/usr/bin/php '''-c /etc/php5/apache2/php.ini''' /var/www/vhosts/ruudkok.nl/httpdocs/shop/scripts/import.php @MODIFIED'' | * Disable safe_mode in shell: ''/usr/bin/php '''-c /etc/php5/apache2/php.ini''' /var/www/vhosts/ruudkok.nl/httpdocs/shop/scripts/import.php @MODIFIED'' | ||
| − | * Search replace via terminal: ''sed -i | + | * Search replace via terminal: '''sed -i '' 's/search/replace/g' filename.txt''' |
Versie van 22 nov 2016 om 17:25
- Show current folder in SSH: pwd
- Disable safe_mode in shell: /usr/bin/php -c /etc/php5/apache2/php.ini /var/www/vhosts/ruudkok.nl/httpdocs/shop/scripts/import.php @MODIFIED
- Search replace via terminal: sed -i 's/search/replace/g' filename.txt