cp1 [CentOS7 명령어] cp 명령어 cp => copy 의 축약어 쓰임 : 파일, 디렉토리 복사시 사용 cp [옵션][복사 할 디렉토리/파일][복사 될 디렉토리/파일] 현재 디렉토리에 있는 myFile.txt ->newMyFile.txt 로 현 위치에 복사 $ cp myFile.txt newMyfile.txt 다른 경로의 파일을 현재 위치에 복사 /home/room 경로의 myFile.txt -> newMyFile.txt 로 현 위치에 복사 $ cp /home/room/myFile.txt newMyfile.txt /user/jtaewu 경로의 test.txt 파일을 new_test.txt라는 이름으로 /user/guest에 복사 $ cp /user/jtaewu/test.txt /user/guest/new_test.txt - 두 파일 모두 .. 2022. 8. 31. 이전 1 다음