Question

In: Computer Science

Question 11 1 point possible (graded) The commands in the pipeline $ cat result.txt | grep...

Question 11

1 point possible (graded)

The commands in the pipeline $ cat result.txt | grep "Harvard edX" | tee file2.txt | wc -l perform which of the following actions?

From result.txt, select lines containing “Harvard edX”, store them into file2.txt, and print all unique lines from result.txt.

From result.txt, select lines containing “Harvard edX”, and store them into file2.txt.

From result.txt, select lines containing “Harvard edX”, store them into file2.txt, and print the total number of lines which were written to file2.txt.

From result.txt, select lines containing “Harvard edX”, store them into file2.txt, and print the number of times “Harvard edX” appears.

unanswered

You have used 0 of 2 attempts Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.

Question 12

0/1 point (graded)

How is git rebase used?

To switch branches or restore working tree files incorrect

Uses a binary search to find the commit that introduced a bug

To reapply commits on top of another base tip

To reset the current HEAD to the specified state

To download objects and refs from another repository

You have used 1 of 2 attempts Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.

Question 13

1 point possible (graded)

Which of the following statements is wrong about Advanced Unix Executables, Permissions, and File Types?

In Unix, all programs are files/executables except for commands like ls, mv, and git.

which git allows a user to find the path to git.

When users create executable files themselves, they cannot be run just by typing the command - the full path must be typed instead.

ls -l can be used to inspect the permissions of each file.

Solutions

Expert Solution

Question 11:
The commands in the pipeline $ cat result.txt | grep "Harvard edX" | tee file2.txt | wc -l perform which of the following actions?
Answer:
From result.txt, select lines containing “Harvard edX”, store them into file2.txt, and print the total number of lines which were written to file2.txt.
Explanation:
cat result.txt opens the result.txt file,
grep "Harvard edX" will find the occurrence of Harvard edX,
tee file2.txt will copy the lines containing Harvard edX to file2.txt
WC -l will print the total number of lines in file2.txt

Question 12:
How is git rebase used?
Answer:
To reapply commits on top of another base tip
Explanation:
No explanation it is the main function of git rebase command go through git documentation

Question 13:

Which of the following statements is wrong about Advanced Unix Executables, Permissions, and File Types?

When users create executable files themselves, they cannot be run just by typing the command - the full path must be typed instead.

Explanation:

No need of a full path to run user-created executables.


Related Solutions

Problem 3.4 Part A 1 point possible (graded) An isotropic alloy contains 5% by volume of...
Problem 3.4 Part A 1 point possible (graded) An isotropic alloy contains 5% by volume of a precipitate of radius 10nm. Assume the primary metal is in a simple cubic arrangement. The alloy has a Young's modulus E=70GPa and a Poisson's ratio ν=0.35. If Γ=0.9J/m2 (the energy needed to cut through the precipitate lattice per unit surface area), and b=0.25nm, what is the precipitate spacing L in the alloy? L (in nm):   unanswered Submit You have used 0 of 20...
3. 8 Disciplines - Find the Root Cause 1 point possible (graded) Q3 The following are...
3. 8 Disciplines - Find the Root Cause 1 point possible (graded) Q3 The following are important for the step 4D Finding the Root Cause EXCEPT? A- Develop hypotheses on the causes of the problem B- Implement corrective action C- Follow a data driven process D- Confirm the hypotheses with data 4. 8 Disciplines - Learn & Define Prevention for the Future 1 point possible (graded) Q4 In the 7th Discipline Learn and Define Prevention for the Future , the...
Concept Check: Test Statistics 1 point possible (graded) Setup: Recall the statistical experiment in which you...
Concept Check: Test Statistics 1 point possible (graded) Setup: Recall the statistical experiment in which you flip a coin n times to decide the coin is fair. You model the coin flips as X1,…,Xn∼iidBer(p) where p is an unknown parameter, and formulate the hypothesis: H0: p=0.5 H1: p≠0.5, and design the test ψ using the statistic Tn: ψn = 1(Tn>C) where Tn = n−−√∣∣X¯¯¯¯n−0.5∣∣0.5(1−0.5)−−−−−−−−−−√ where the number C is the threshold. Note the absolute value in Tn for this two...
Question 5 0/1 point (graded) The following is the full path to a homework assignment file...
Question 5 0/1 point (graded) The following is the full path to a homework assignment file called "assignment.txt": /Users/student/Documents/projects/homeworks/assignment.txt. Which line of code will allow you to move the assignment.txt file from the “homeworks” directory into the parent directory “projects”? mv assignment.txt mv assignment.txt . mv assignment.txt .. mv assignment.txt /projects incorrect Answer Incorrect: Try again. This code does not provide enough information about where to move the file. You need to specify a relative or full path to the...
Question 10 0/1 point (graded) The bash profile in your home directory contains information that the...
Question 10 0/1 point (graded) The bash profile in your home directory contains information that the bash shell runs each time you use it. You can customize the information in your bash profile to tell your system to do different things. For example, you can make an “alias”, which acts like a keyboard shortcut. Which line of code, when added to your bash profile, will let you print “seetop” to view the name, size, and file type of the 10...
Weak Consistency of the MLE 1 point possible (graded) Let (R,{Pθ}θ∈R) denote a statistical model associated...
Weak Consistency of the MLE 1 point possible (graded) Let (R,{Pθ}θ∈R) denote a statistical model associated to a statistical experiment X1,…,Xn∼iidPθ∗ for some true parameter θ∗ that we would like to estimate. You construct the maximum likelihood estimator θˆMLEn for θ∗. Which of the following conditions is not necessary for the MLE θˆMLEn to converge to θ∗ in probability ? The model (R,{Pθ}θ∈R) is identified. (Recall that the parameter θ is identified if the map θ↦Pθ is injective.) For all...
Question 11 (1 point) Which of the following are early mediators of type I hypersensitivity? Question...
Question 11 (1 point) Which of the following are early mediators of type I hypersensitivity? Question 11 options: histamines, prostaglandins, IL-4, serotonin, altered phospholipids histamines, prostaglandins as well as eosinophil chemotaxins, serotonin histamines, prostaglandins, cytokines, serotonin leukotrienes, platelet activating factors, histamines, prostaglandins Question 12 (1 point) An example of a type I hypersensitivity reaction is Question 12 options: an allergic reaction to the gold in a ring the allergic reaction to peanuts a transfusion reaction the allergic reaction to poison...
Question 11 0 / 1 point The 2009 Nobel Prize in Physiology and Medicine was awarded...
Question 11 0 / 1 point The 2009 Nobel Prize in Physiology and Medicine was awarded for the discovery of what type of enzyme that is needed to replicate chromosome ends? Question options: A DNA-dependent DNA polymerase A RNA-dependent DNA polymerase A DNA-dependent RNA polymerase A RNA-dependent RNA polymerase Question 12 0 / 1 point In the presence of fluoroquinolone drugs, sensitive bacteria accumulate double stranded DNA breaks. Why? Question options: Fluoroquinolones prevent DNA ligase from joining Okazaki fragments Fluoroquinolones...
Question 1 (of 11)Question 2 (of 11)Question 3 (of 11)Question 4 (of 11)Questions 5 - 6...
Question 1 (of 11)Question 2 (of 11)Question 3 (of 11)Question 4 (of 11)Questions 5 - 6 (of 11)Questions 7 - 9 (of 11)Questions 10 - 11 (of 11)  Save & ExitSubmit   Time remaining: 0:51:30   Problem 7-5A Determine depreciation under three methods (LO7-4) [The following information applies to the questions displayed below.] University Car Wash built a deluxe car wash across the street from campus. The new machines cost $270,000 including installation. The company estimates that the equipment will have a residual...
Question 11 (1 point) Cardiorespiratory fitness is widely recognized as a major component of overall physical...
Question 11 (1 point) Cardiorespiratory fitness is widely recognized as a major component of overall physical well-being. Direct measurement of maximal oxygen uptake (VO2max) is the single best measure of such fitness, but direct measurement is time-consuming and expensive. It is therefore desirable to have a prediction equation for VO2max in terms of easily obtained quantities. A sample is taken and variables measured are age (years), time necessary to walk 1 mile (mins), and heart rate at the end of...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT