[root@namhun /]# dd if=/dev/zero of=/1000M.dd bs=1000M count=1
1+0 records in
1+0 records out
[root@namhun /]#
[root@namhun /]# ls -al 100M.dd
-rw-r--r-- 1 root root 104857600 Mar 19 13:18 100M.dd
스크립트
#!/bin/sh
echo -n "1. File name :"
read NAME
echo -n "2. Size :"
read SIZE
dd if=/dev/zero of="$NAME" bs="$SIZE"\M count=1
echo "Complete!"
2009. 3. 18.
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기