Created
December 14, 2013 14:33
-
-
Save wikibook/7959843 to your computer and use it in GitHub Desktop.
자주 쓰는 리눅스 명령어
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
# scp를 이용한 파일 전송 | |
scp -r [local file] id@host:[target directory] | |
# 크기가 0바이트 이상인 pdf 파일을 찾아 대상 디렉터리로 복사하기 | |
find . -type f -size +0 -iname '*.pdf' -exec cp {} ~/pdf \; | |
# MySQL 백업 | |
mysqldump -u [id] -p [password] [database] > [filename].sql | |
# MySQL 복원 | |
mysql -u [id] -p [database] < [filename].sql | |
# tar.gz 압축 | |
tar -czf archive.tar.gz foo bar | |
# war 파일 압축 해제 | |
jar -xf project.war |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment