'bs' and 'count' operands in #dd command
Hi Frnds,
Can you explain me about 'bs' and 'count' operands in #dd command ? Code:
dd if=/dev/zero of/home/user1/file1 bs=1024 count=50 |
You must specify bs (block size in bytes) and count (number of blocks).
It is likely that a block size which is a multiple of 512 or 4096 is most efficient. file1 will be 50 kbytes of zeroes. Note that your command requires an of= parameter - you are missing the '=' Note that dd is considered a highly dangerous command - a small slip can be disastrous. |
Thanks for your reply. I understood. I am using it for testing purpose only.
I am trying to set quota for user named "geet". I have used 'edquota' command for set quota and I used soft limit as 50 and hard limit as 90. When I executed below command, it did not give me warning message or restrain me from creating file with that size and file is being copied. Can you tell me what could be wrong ? #dd if=/dev/zero of=/home/geet/testfile bs=1024 count=100 |
Quote:
if you omit bs, dd chooses some default size, if you omit both, dd just keeps on writing til the disk is full. if the input file is endless, like /dev/null. Quote:
my system does not have an "edquota" command. what are you trying to test/achieve, on what system? please read the first link in my signature. |
You could install the quota package or use one of the ways in http://www.linuxtopia.org/online_boo...ers.html#Quota
|
Quote:
Code:
# su geet Code:
# whoami |
Thanks Beryllos! That helped.
I was not logged in as geet while executing command. Thanks for your help. Thanks Ondoho for your reply. |
All times are GMT -5. The time now is 03:04 AM. |