Skip to content

Instantly share code, notes, and snippets.

@augustyip
Last active August 29, 2015 14:03
Show Gist options
  • Save augustyip/9b730e9a6aabfd00d1e0 to your computer and use it in GitHub Desktop.
Save augustyip/9b730e9a6aabfd00d1e0 to your computer and use it in GitHub Desktop.
Linux Commands
#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