Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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-4X

Explanation / 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.

   
  

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote