- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to create a big file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2010 07:00 AM
тАО09-07-2010 07:00 AM
How to create a big file
Guys
How do I create a big file with the size of 500G
I have one terrabyte space and I want to create a big file for some testing ?
I think I can use dd command but please let me know the correct syntax?
Many Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2010 07:03 AM
тАО09-07-2010 07:03 AM
Re: How to create a big file
prealloc
To create a 1 GB file
prealloc myfile 1000000000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2010 07:15 AM
тАО09-07-2010 07:15 AM
Re: How to create a big file
You can create files with 'dd' like this, for example:
# dd if=/dev/zero of=/var/tmp/bigfile bs=1024 count=500
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2010 07:25 AM
тАО09-07-2010 07:25 AM
Re: How to create a big file
mknod /dev/zero c 3 3
dd if=/dev/zero of=/var/tmp/bigfile bs=1024 skip=499 count=1
or
dd if=/dev/zero of=/var/tmp/bigfile bs=1 count=1 skip=100000000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2010 11:05 AM
тАО09-07-2010 11:05 AM
Re: How to create a big file
Thanks guys, appreciate it
Will the below command count 500 block and as a result will create 500G file?
dd if=/dev/zero of=/var/tmp/bigfile bs=1024 count=500
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2010 11:33 AM
тАО09-07-2010 11:33 AM
Re: How to create a big file
Thanks all, I tested it below command works fine for me and creates 500GB
dd if=/dev/zero of=file_2GB bs=1m count=500k