- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file create
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
тАО12-09-2009 05:54 AM
тАО12-09-2009 05:54 AM
anyone have a script handy that will create a few thousand small files, like 5k or 1k files?
or even empty files would probably work.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 06:05 AM
тАО12-09-2009 06:05 AM
Re: file create
# cat ./touchem
#!/usr/bin/sh
typeset -i i=0
while (( $i < 100 ))
do
touch f${i}
i=$((i+1))
done
...change to the directory in which you want to create the files. Adjust the upper number accordingly.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 07:32 AM
тАО12-09-2009 07:32 AM
Re: file create
Just a remark,
making thousands of files in the same directory is not very good for perf, it is usually better to hash them to subdirectories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 06:49 AM
тАО12-10-2009 06:49 AM
Re: file create
Nobody's Hero
ITRC member since: December 09, 1999
Last contribution date: December 09, 2009
>making thousands of files in the same directory is not very good for perf, it is usually better to hash them to subdirectories
ok, run that touchem' script to a dir called "a", then copy it 10x to have separate dirs :)
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 06:54 AM
тАО12-10-2009 06:54 AM
Re: file create
I applaud you women and gentlemen, willing to share your expertise and help us learn something new each and every day. I can't tell you how much help you all have been to me over the years, especially during emergencies.
THANKS * 110,000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2009 07:41 AM
тАО12-10-2009 07:41 AM
Re: file create
http://www.yonkis.com/mediaflash/unmillon.htm
:D (no points for that)
Unix operates with beer.