Created
May 25, 2013 10:55
-
-
Save 4-ner/5648689 to your computer and use it in GitHub Desktop.
sshでの圧縮と解凍
This file contains hidden or 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
#圧縮 | |
tar zcvf hoge.tar.gz hoge2 | |
(特定のファイルを除外--excludeの後に。正規表現も可能) | |
tar cvf foo.tar ./bar --exclude *.[c,o] | |
#解凍 | |
tar zxvf hoge.tar.gz | |
#mysqlのバックアップ | |
mysqldump -u root -p データベース名 > dump.sql | |
#フォルダ内のテキスト検索 | |
grep -rIn STRING . | |
# 拡張子で絞る | |
grep -rIn STRING ./*.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment