리눅스
-
리눅스 명령어리눅스 2020. 5. 6. 18:55
루트계정들어가기 su - 백업 mysqldump -u 아이디 -p 디비명 > 파일명.sql ex) mysqldump -u sample -p sample >sample.sql 복구 mysql -u 아이디 -p 디비명 < 파일명.sql ex)mysql -u sample -p sample < sample.sql 압축 tar cvfz 이름.tar.gz 폴더이름 ex)tar cvfz sample.tar.gz .samplefoder 풀기 tar xvfz 파일명 ex)tar xvfz sample.tar.gz 압축여러개 한번에 풀기 find . -name '*.tar.gz' -exec tar {}\; find 찾기 -name 이름 *.tar.gz 확장자가 tar.gz 모든파일 -exec 실행 {}\ 모든것r 이동,이름..