- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using "touch" command to create large files?? ...
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
тАО05-18-2005 04:04 AM
тАО05-18-2005 04:04 AM
Thanks,
Angie
Solved! Go to Solution.
- Tags:
- Touch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 04:07 AM
тАО05-18-2005 04:07 AM
Re: Using "touch" command to create large files?? Is it possible??
Pete
Pete
- Tags:
- prealloc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 04:10 AM
тАО05-18-2005 04:10 AM
Re: Using "touch" command to create large files?? Is it possible??
No but you could use prealloc e.g
prealloc ./test 100000000 >> /tmp/testperf2
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 04:11 AM
тАО05-18-2005 04:11 AM
Re: Using "touch" command to create large files?? Is it possible??
prealloc ./test 100000000 >> /tmp/testperf2
Thanks!
Angie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 04:13 AM
тАО05-18-2005 04:13 AM
Re: Using "touch" command to create large files?? Is it possible??
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 04:14 AM
тАО05-18-2005 04:14 AM
Solutiondd if=/dev/zero bs=1k seek=52428799 count=1 of=mybigfile
If you do an ls -l mybigfile, it will display 50GB but a du -k will display only only 1 block because a sparse file has "holes". When a sparse file is read, the "holes" are filled in with NUL's so a copy of mybigfile will actually use 50GB of space.
- Tags:
- dd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 04:18 AM
тАО05-18-2005 04:18 AM
Re: Using "touch" command to create large files?? Is it possible??
Angie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 04:21 AM
тАО05-18-2005 04:21 AM
Re: Using "touch" command to create large files?? Is it possible??
$ ll filler
-rw-rw-r-- 1 plr support 100 May 18 12:20 filler
$
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 04:23 AM
тАО05-18-2005 04:23 AM
Re: Using "touch" command to create large files?? Is it possible??
if you have all that space available, you could try something like this in the directory you want the file "big" to be put:
# prealloc big $((50*1024*1024*1024*1024))
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 04:23 AM
тАО05-18-2005 04:23 AM
Re: Using "touch" command to create large files?? Is it possible??
dd if=/dev/zero bs=256k count=204800 of=mybigfile
and unlike prealloc, dd is a standard UNIX/Linix command