पहले आग की कमान:
dd if=/dev/urandom of=file.txt bs=2048 count=10
हमारे आकार 2027 * 10 = 20Kb में, यादृच्छिक बाइट्स की गिनती के आकार के पथ पर एक फ़ाइल बनाएगा। जिसे आवश्यकता के अनुसार बदला जा सकता है।
cat - > file.txt
यह STDIN को एक फ़ाइल पर पुनर्निर्देशित करता है, इसलिए आपको दो लाइनें दर्ज करनी होंगी और फिर Ctrl + D दबाना होगा। फिर आपको निम्नलिखित कमांड चलाने की आवश्यकता होगी:
for i in {1..n}; do cat file.txt file.txt > file2.txt && mv file2.txt file.txt; done
जहाँ n एक पूर्णांक है। यह आपकी मूल दो पंक्तियों को डुप्लिकेट करके, इसमें 2 ^ (n + 1) लाइनों के साथ एक फ़ाइल बनाएगा। तो 16 लाइनों के साथ एक फ़ाइल बनाने के लिए आप क्या करेंगे:
for i in {1..3}; do cat file.txt file.txt > file2.txt && mv file2.txt file.txt; done
आरंभ करने के लिए यहां कुछ और नंबर दिए गए हैं:
n=15 will give you 65536 lines (if the original two lines were 'hello' and 'world' the file will be 384Kb)
n=20 will give you 2097152 lines (12Mb file with 'hello' and 'world' as the two starting lines)
n=25 will give you 67108864 lines (384Mb file with 'hello' and 'world' as the two starting lines)