10/19
# 09. touch 명령으로 빈 파일 생성
$ cd temp #temp 디렉터리로 이동
$ touch iamcool.txt neat.txt #iamcool.txt 파일 생성
$ls #해당 디렉토리 파일 목록
# 10. cp 명령으로 파일 복사
$ cd temp #temp 디렉토리로 이동
$ cp iamcool.txt neat.txt #iamcool.txt가 source file, neat.txt copy file
$ ls #해당 디렉토리 파일 목록
iamcool.txt neat.txt
$ cp neat.txt awesome.txt #neat.txt이 source file, awesome.txt가 copy file
$ ls #해당 디렉토리 파일 목록
iamcool.txt neat.txt awesome.txt
$ cp awesome.txt thefourthfile.txt #awesome.txt가 source file, thefourthfile.txt가 copy file
$ ls
iamcool.txt neat.txt awesome.txt thefourthfile.txt
$ mkdir something #something 디렉토리 생성
$ cp awesome.txt something/ #awesome.txt 파일을 something 디렉토리에 복사
$ ls
iamcool.txt neat.txt awesome.txt thefourthfile.txt something
$ ls something/
awesome.txt
$ cp -r something newplace #something 디렉토리를 newplace 라는 디렉토리로 복사
$ ls newplace/
awesome.txt
$
'Learn Hard Way the Python' 카테고리의 다른 글
# Printing, Printing, and Printing (0) | 2016.10.26 |
---|---|
# Printing, Printing (0) | 2016.10.24 |
# More printing (0) | 2016.10.23 |
# Strings and Texts (0) | 2016.10.21 |
# mv (0) | 2016.10.17 |