Make me understand on dd
Hi,
Can anyone explains to me in laymen term how to deduce the following command: dd if=/dev/zero of=/swap bs=1M count=1000 Thanks in advance! |
Hello,
Are you talking about explaining it? First and foremost, here is the man page: http://linux.die.net/man/1/dd That will help a lot...... But besides that, by looking at the command, it is saying to take the input from /dev/zero, which pretty much means that the input bits/bytes will be all zeros. The output file /swap is your swap; So from here on out, nothing but zeros are going to your swap space. "bs" stands for blocksize; the blocksize is one megabyte. "count" is how many times recursively it will repeat, so therefore, 1,000 megabytes of "0's" will be written to swap. Cheers, Josh |
I don't want to hijack the thread, but this has me a little curious.
Quote:
Quote:
|
my understanding is that a power of 2 is needed
not the advertising company short cut 1024=1000 but Quote:
there is a term " read the code" --- dd if=/dev/zero of=/swap bs=1M count=1000 --- corp769 has a very good answer and to shorten it " zero out the SWAP " |
Quote:
Quote:
Quote:
|
|
|
How do I issue the command to increase the swap size by another 200MB?
|
Quote:
200 meg will not do much if you have 4+ gig of ram you might not ever need to use the swap space without knowing what your system is How it is set up or even anything about it there is NO WAY we can help |
Quote:
|
All times are GMT -5. The time now is 06:17 PM. |