Sign in

Google

Google Instant is unavailable. Press Enter to search. Learn more
Google Instant is off due to connection speed. Press Enter to search.
Press Enter to search.
Report inappropriate predictions
All
Videos
Images
News
Shopping
More
MapsBooksFlightsFinance
Settings
Search settingsLanguages
Turn on SafeSearch
Advanced searchHistorySearch help
Tools
    About 75,000,000 results (0.53 seconds) 

     
     

    A privacy reminder from Google
    To be consistent with data protection laws, we're asking that you take a moment to review key points of our Privacy Policy, which covers all Google services and describes how we use data and what options you have. We'll need you to do this today.
    Remind me later
    Review now

    Search Results

    The advantages of this approach are as follows:
    1. it is blazingly fast taking around 1 second to generate a 1Gb file (dd if=/dev/zero of=file.txt count=1024 bs=1048576 where 1048576 bytes = 1Mb)
    2. it will create a file of exactly the size that you specified.

    How To Quickly Generate A Large File On The Command Line (With ...

    https://www.skorks.com/.../how-to-quickly-generate-a-large-file-on-the-command-line-...
    Feedback
    About this result

    Linux / UNIX: Create Large 1GB Binary Image File With dd Command ...

    https://www.cyberciti.biz/faq/howto-create-lage-files-with-dd-command/
    1. Cached
    2. Similar
    Jun 2, 2008 - Creating an image file with dd command. First, make sure you've sufficient disk space to create a image file using dd: $ df -H. 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 ...

    command line - Create a test file with lots of zero bytes - Unix ...

    https://unix.stackexchange.com/questions/.../create-a-test-file-with-lots-of-zero-bytes
    1. Cached
    2. Similar
    Nov 26, 2013 - With GNU truncate : truncate -s 1M nullbytes. (assuming nullbytes didn't exist beforehand) would create a 1 mebibyte sparse file. That is a file that appears filled with zeros but that doesn't take any space on disk. Without truncate , you can use dd instead: dd bs=1048576 seek=1 of=nullbytes count=0.
    dd - How to pad a file to a desired size?
    4 answers
    16 Apr 2015
    how to use dd to fill drive with 1's
    3 answers
    19 Aug 2014
    bash - Generate File of a certain size?
    5 answers
    15 Nov 2013
    How to clean log file?
    6 answers
    25 Sep 2013
    More results from unix.stackexchange.com

    dd - Creating a large size file in less time - Ask Ubuntu

    https://askubuntu.com/questions/506910/creating-a-large-size-file-in-less-time
    1. Cached
    2. Similar
    Aug 4, 2014 - How about using fallocate, this tool allows us to preallocate space for a file (if the filesystem supports this feature). For example, allocating 5GB of data to a file called 'example', one can do: fallocate -l 5G example. This is much faster than dd, and will allocate the space very rapidly.
    Create sequential filename with dd command
    28 Jun 2017
    partitioning - Create blank disk image for file storage
    30 Aug 2015
    dd image size - does it equal the size of the partition?
    14 Oct 2014
    monitoring - How do you monitor the progress of dd?
    10 Nov 2012
    More results from askubuntu.com

    How To Quickly Generate A Large File On The Command Line (With ...

    https://www.skorks.com/.../how-to-quickly-generate-a-large-file-on-the-command-lin...
    1. Cached
    Mar 21, 2010 - The advantages of this approach are as follows: it is blazingly fast taking around 1 second to generate a 1Gb file (dd if=/dev/zero of=file.txt count=1024 bs=1048576 where 1048576 bytes = 1Mb) it will create a file of exactly the size that you specified.

    dd - How do I create a 1GB random file in Linux? - Super User

    https://superuser.com/questions/470949/how-do-i-create-a-1gb-random-file-in-linux
    1. Cached
    2. Similar
    Sep 6, 2012 - up vote 0 down vote. Try this script. #!/bin/bash openssl rand -base64 1000 | dd of=sample.txt bs=1G count=1. This script might work as long as you don't mind using /dev/random . #!/bin/bash dd if=/dev/random of="sample.txt bs=1G count=1" ...
    linux - How can I create a file with a specific size from ...
    7 answers
    18 Jun 2013
    hard drive - Why is my /dev/random so slow when ...
    5 answers
    20 Nov 2011
    linux - How to pad a file with "FF" using dd?
    3 answers
    25 Apr 2011
    ubuntu - How to wipe free disk space in Linux?
    16 answers
    6 Aug 2009
    More results from superuser.com

    Create file of 2 GB - LinuxQuestions

    https://www.linuxquestions.org/questions/linux-newbie.../create-file-of-2-gb-666797/
    1. Cached
    Sep 1, 2008 - 9 posts - ‎4 authors
    Old 09-01-2008, 04:00 AM. mohans.grd@gmail.com. LQ Newbie. Registered: Sep 2008. Posts: 3. Rep: Reputation: 0. Easy way to create 2gb file. Go to that current directoy #dd if=/dev/zero of=filename bs=1024 count=2GB ...

    creating file of 1MB using shell command? | Unix Linux Forums ...

    https://www.unix.com › Top Forums › Shell Programming and Scripting
    1. Cached
    Mar 29, 2006 - 5 posts - ‎3 authors
    when generating files of huge size, it is better you attack from the block size thereby reducing the count for a 1 MB file,. Code: dd if=/dev/zero of=output.file bs=1024 count=1024. time taken = 0.13 s. Code: dd if=/dev/zero of=output.file bs=1048576 count=1 time taken = 0.08 s it is just a difference of (0.13 ...

    command line - How to create a file with a given size in Linux ...

    https://stackoverflow.com/questions/.../how-to-create-a-file-with-a-given-size-in-linux
    1. Cached
    2. Similar
    Sep 26, 2008 - Just to follow up Tom's post, you can use dd to create sparse files as well: dd if=/dev/zero of=the_file bs=1 count=0 seek=12345. This will create a file with a "hole" in it on most unixes - the data won't actually be written to disk, or take up any space until something other than zero is written into it.

    microHOWTO: Create a file filled with zeros

    www.microhowto.info/howto/create_a_file_filled_with_zeros.html
    1. Cached
    2. Similar
    Jump to Using dd - A more portable solution is to use the dd command. This can be used to create a non-sparse file: dd if=/dev/zero of=vdrive.img bs=1024 count=4194304. or an (almost) sparse file if the filesystem supports it: dd if=/dev/zero of=vdrive.img bs=1024 seek=4194303 count=1. The bs argument specifies ...

    SDB:Create 10 GB file instantly with "dd" - openSUSE

    https://en.opensuse.org/SDB:Create_10_GB_file_instantly_with_%22dd%22
    1. Cached
    2. Similar
    Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda2 40321836 28054876 12266960 70% / tmpfs 257892 0 257892 0% /dev/shm. This means that you have some 12 GB of unused space, so you can proceed with next command that will create 10 GB file: dd if=/dev/zero of=myharddisk.img bs=1000 count=0 ...

    Searches related to dd create file of 0

    linux create large file dd

    dd create random file

    create large text file linux

    create a large file linux

    create 1gb file windows

    create large file mac

    fallocate linux

    fallocate vs dd

    12345678910Next
    France
     - Learn more
    HelpSend feedbackPrivacyTerms
    • My Account
    • Search
    • Maps
    • YouTube
    • Play
    • Gmail
    • Drive
    • Calendar
    • Google+
    • Translate
    • Photos
    More
    • Shopping
    • Docs
    • Books
    • Blogger
    • Contacts
    • Hangouts
    • Keep
    Even more from Google