11-13 b) ed datal.txt Mydir/ c) ep datal.txt Mydir/ d) Is datal.txt Mydir/ 0. Wh
ID: 3724527 • Letter: 1
Question
11-13
b) ed datal.txt Mydir/ c) ep datal.txt Mydir/ d) Is datal.txt Mydir/ 0. Which of the following Linux command can move a file datal.txt to a director a) mv datal.txt Mydir/ b) ed datal.txt Mydir/ c) cp datal.txt Mydir/ d) Is datal.txt Mydir/ a) cd 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 Is? a) man ls b) vi ls c) rm ls d) touch Is 15. Which Linux command can list all files and sub-directories inside a directory call 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-X84 c) Y-4XExplanation / Answer
11)
cd is the Linux command used to change the directory.
rmdir is the Linux command used to delete a directory if the
contents of directory is empty.
rm is the Linux command used to delete a file inside the directory.
mkdir is the Linux command used to create a new directory.
Hence Correct option is b.
12)
vi is the Linux command used to edit a file.
rm is the Linux command used to delete a file inside the directory.
ls is the Linux command used to list the contents.
touch is the Linux command used to update the access date and
modify date of a file or directory
Hence Correct option is b.
13)
To print an element in the array at a particular index
we have to use echo ${array_name[index]}.
Hence Correct option is d.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.