Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Below is the linux script of generating 1Billion records of random numbers. Can someone successfully run it for i in {1..1000000000} do echo $RANDOM >>

Below is the linux script of generating 1Billion records of random numbers. Can someone successfully run it

for i in {1..1000000000} do echo $RANDOM >> file1.txt done

and share following details:

(1) The size of "file1.txt" (2) How much time it took? (3) OS version, Memory and CPU details of the machine on which it was executed. I have tried multiple system resources (on my VM) but script gets killed with "Out of memory" error in /car/log/messages file.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

Students also viewed these Databases questions