This is a discussion on How to create a bigfile (> 1Gb)? within the Shell scripting forums, part of the Development/Scripting category; Hi friends I'm newbie here, at first, I wanna to say "Hi, so nice to be here" to all you. ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| Sponsored Links | ||
|
|
|
|||
|
Don't really understand so please forgive me if this crass.
Create a file with $ touch filename. Glue the first file to the second with: $ cat file1 >> file2. $ dd if=/dev/zero of=filename bs=1024 count=1000000 gives a 1GB file full of zeros. |
|
||||
|
Thx friends, I tried as your suggestions
Using $dd is the good and quick way to create a big-file, but not sure what happened! lugoteehalt, could you please help me to make it clear? I used file1.txt (included text "Hello, so nice to meet you") instead of /dev/zero, and not able to create a 1 GB file |
|
|||
|
I'm not really an experienced scribe. Perhaps something like string together a load of Hello, nice to see you's to make 1KB - you could do this easilly with vim, say - this step isn't really necessary then:
for n in 1000000 this work?? cat file >> bigfile |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| create directory | vyshas | Shell scripting | 3 | 01-14-2008 07:14 AM |
| Create output in columns | rakeshrhn | Shell scripting | 5 | 12-07-2007 06:27 PM |
| Unable to create user | vaibhav.kanchan | Getting started tutorials | 3 | 12-07-2007 10:46 AM |
| how to create super user | click007 | Getting started tutorials | 12 | 08-28-2007 08:14 PM |
| How to create Backup | NeoGreen | Linux software | 1 | 08-12-2007 11:54 AM |