티스토리 뷰

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 파일 생성
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함