QUESTION 26 write a single UNIX command to redirect list of a directory to a fil
ID: 3716505 • Letter: Q
Question
QUESTION 26 write a single UNIX command to redirect list of a directory to a file (named longls.txt). T TT Arial Path: p QUESTION 27 Write a bash script that will display all command line arguments to the screen For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac) Path: p QUESTION 28 Consider the following declarations of a function that receives an array of integers and finds the element with the maximum value (i) findMax (int vals, int numEls) (ii) findMax (int vals [l,int numEls) The values in vals may be modified only if the function is declared as in (i) O only if the function is declared as in (ii) if either (i) or (ii) is used O in neither case because an array variable cannot be modified (it is a pointer constant)Explanation / Answer
QUESTION 26
write a single unix command to redirect list of a directory to a file(named longls.txt)
Ans) ls -l >> longls.txt
Explanation:
so by running the above command it is used to redirect list of a directory to a file named longls.txt.
QUESTION 27
write a bash script that will display all command line arguments to the screen
Ans)
#!/bin/bash
echo $@
Explanation:
so by running above bash script it will display all command line arguments to the screen
QUESTION 28
Ans) only if the function is declared as in(ii) is the corect answer
Explanation:
only if the function is declared as in(ii) then the values in vals may be modified.
Hope this Helps, if you have any doubs please comment i will get back to you and please thumbs up, thank you.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.