글씨체 : 본고딕R
명령어 설명
현재 경로에 있는 파일(들) 및 디렉토리(들)를 다른 곳에 복사한다.
사용법 및 옵션
사용법
cp [옵션] source destination
*
옵션
cp 옵션 | 기능 |
-b --backup | destination의 백업 파일을 생성한 뒤 복사 |
-f --force | destination의 내용을 지우고 복사 |
-i --interactive | 복사 확인 메세지 띄움 |
-r --recursive | 디렉터리 및 하위 디렉터리를 복사 |
-v --verbose | 복사 내용 표시 |
- destination이 파일일 때
- destination이 디렉터리일 때
- destination이 파일도 아니고 디렉터리도 아닐 때
반응형
'리눅스 > 기본 명령어 모음' 카테고리의 다른 글
cat 명령어 - concatenate files and print on the standard output (0) | 2021.01.04 |
---|---|
ln 명령어 - make links between files (0) | 2021.01.04 |
mv 명령어 - move (rename) files (0) | 2021.01.03 |
cd 명령어 - change directory (0) | 2021.01.03 |
touch 명령어 - change file timestamps (0) | 2021.01.03 |
댓글