Unix & Linux/dictionary
( cp ) 리눅스 기본 문법, cp (copy)
LEEHANDS
2021. 6. 16. 15:08
반응형
option | description |
cp -a | archive files |
cp -f | force copy by removing the destination file if needed |
cp -i | interactive - ask before overwrite |
cp -l | link files instead of copy |
cl -L | follow symbolic links |
cp -n | no file overwrite |
cp -R | recursive copy (including hidden files) |
cp -u | update - copy when source is newer than dest |
cp -v | verbose - print informative messages |
- -i : 복사될 파일이 이름이 이미 존재할 경우, 사용자에게 덮어 쓰기 여부를 묻습니다.
- -b : 복사될 파일이 이름이 이미 존재할 경우, 백업파일을 생성합니다.
- -f : 복사 될 파일이 이름이 이미 존재 할 경우, 강제로 덮어쓰기 합니다.
- -r : 하위 디렉토리 까지 모두 복사합니다.
- -a : 원본 파일의 속성, 링크 정보까지 모두 복사합니다.
- -p : 원본 파일의 소유자, 그룹, 권한 등의 정보까지 모두 복사합니다.
- -v : 복사 진행 상태를 출력합니다.
반응형