로딩
티스토리 데이터 처리 중입니다.

[Linux] 리눅스 cp 명령어 사용법 & 옵션 정리 (파일, 디렉토리 복사)

 [Linux] 리눅스 cp 명령어 사용법 & 옵션 정리 (파일, 디렉토리 복사)

cp cp의 뜻은 copy의 줄임말로 파일이나 디렉토리를 복사할 때 사용하는 명령어입니다. cp [옵션][복사 할 디렉토리/파일][복사 될 디렉토리/파일] 현재 디렉토리에 있는 test.txt 파일을 new_test.txt라는 이름으로 현 위치에 복사 ex) cp test.txt new_test.txt /user/jtaewu 경로의 test.txt 파일을 new_test.txt라는 이름으로 현재 위치에 복사 ex) cp /user/jtaewu/test.txt new_test.txt /user/jtaewu 경로의 test.txt 파일을 new_test.txt라는 이름으로 /user/guest에 복사 ex) cp /user/jtaewu/test.txt /user/guest/new_test.txt cp 명령어.....