James, On Thursday 11 January 2007 13:57, James D. Parra wrote: > Hello, > > I'd like to create a 2 GB swap file after adding more memory to my > system, however how can I create such file by modifying the command > below; > > dd if=/dev/zero of=/extra-swap bs=1024 count=1024 > > Is 'count' in Mb or Kb?
Neither. Count is the number of blocks transferred. The block size is given by the bs= argument. If the input and output block sizes are different (ibs= is the input block size, obs= is the output block size), count refers to the number of input blocks read. The total number of bytes transferred, assuming end-of-file is not reached, is the block size times the number of blocks. (/dev/zero never returns end-of-file, by the way.) To create your 2 GB swap file, do this: % dd if=/dev/zero of=/extra-swap bs=2K count=1M > ~James Randall Schulz -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]