Last active
August 29, 2015 14:03
-
-
Save augustyip/9b730e9a6aabfd00d1e0 to your computer and use it in GitHub Desktop.
Linux Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Copy Files With Rsync Over SSH | |
rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress /root/bigfile.txt username@198.211.117.129:/ | |
# Mysql search tables | |
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'drupal_bcsiem' AND TABLE_NAME LIKE "commerce%"; | |
# Export only modified and added files with folder structure in Git | |
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $commit_id | xargs -i cp {} ~/ --parent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment