Linux.

[dd] 1GB 파일 만들기

인쥭 2022. 6. 8. 11:15
반응형

참고

 

리눅스 1G 파일 만들기 [ dd 명령어 ]

To create 1MB file (1024kb), enter: $ dd if=/dev/zero of=test.img bs=1024 count=0 seek=1024 You will get an empty files (also known as "sparse file") of arbitrary size using above syntax. To create..

woosa.tistory.com

[~] dd if=/dev/zero of=./big_file.txt bs=1024k count=1024
[~] # 또는 아래의 명령어 사용
[~] # dd if=/dev/zero of=./big_file.txt bs=1 count=0 seek=1G
[~] ls -lh big_file.txt
-rw-r--r--  1 ingnoh  xxx   1.0G  6  8 11:11 big_file.txt
[~]
  • 업무에 대용량 파일이 필요한 경우를 위한 1GB 파일 생성