Which of the following commands will remove that directory?

A user accidentally created the subdirectory dir in his home directory. Which of the following commands will remove that directory?
A. rmdir ‘~/dir’
B. rmdir "~/dir"
C. rmdir ~/’dir’
D. rmdir ~/dir
E. rmdir ~/\dir

Download Printable PDF. VALID exam to help you PASS.

6 thoughts on “Which of the following commands will remove that directory?

  1. It is strange but rmdir ~/\dir – works, as well as rmdir ~/dir also works. This question confused me

    1. Guys, D is wrong, cuz ~ menas /home/user1/ so writing rmdir ~/dir will mean /home/user//dir and it is wrong answer, sry for my english, hope u understood what i want to say:):)

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.