e) ep datal.txt Mydir/ d) Is datal.txt Mydir/ 11. Which Linux command can delete
ID: 3724516 • Letter: E
Question
e) ep datal.txt Mydir/ d) Is datal.txt Mydir/ 11. Which Linux command can delete a directory called CS4052 a) ed CS405 b) rmdir CS405 c) rm CS405 d) mkdir CS405 12. Which Linux command can delete a file called hello.sh? a) vi hello.sh b) rm hello.sh c) Is hello.sh d) touch CS405 13. Which is the correct way to print out the 3'd element in an array called Numbers? a) echo Numbers b) echo SNumbers c) echo Numbers 3] d) echo S(Numbers 3] 14. Which Linux command can display the usage (manual) of a command ls a) man Is b) vi ls c) rm ls d) touch ls 15. Which Linux command can list all files and sub-directories inside a directory called CS405 a) ed CS405 b) Is CS405 c) rmdir CS405 d) mkdir CS405 16. Which is the correct statement to calculate the X? Assume X-10 a) Y-S((x*4)) b) Y X*4 c) Y-4 X 3 of 6Explanation / Answer
Answer is as follows :
11) rm command is used to remove directories.
So correct option is "C" i.e.rm CS405
12) rm command is used to remove files
So correct option is "B" i.e. rm hello.sh
13) The statement to represent given thing is echo${Numbers[3]}
So the correct option is "D"
14) man ls command is used to display given data.
So the correct option is "A".
15) ls command is used to list all the files.
So the correct option is "B" ls CS405
16) ** operator is used to represent such things.
So the correct option is "A" i.e. Y = $(( X**4 ))
if there is any query please ask in comments....
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.