LiNuX
비어 있는 파일 만들기
freecatz
2020. 8. 26. 13:27
1. 0 byte 의 비어 있는 파일 생성
$ touch <파일이름>
ex) 0 byte 의 test.txt 파일 생성
$ touch test.txt
2. 대용량 파일 생성
$ fallocate -l <파일크기> <파일이름>
ex) 10G 의 test.txt 파일 생성
$ fallocate -l 10G test.txt