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

Explanation:



Leave a Reply 12

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


Gonzo

Gonzo

Incorrect – answer is B.

osoriohenrique

osoriohenrique

Actually \ is a special character, so you need to use another \ to say to your terminal that it needs to read the command literally. The answer is correct.

Dkns

Dkns

I tested it the answer is B

Ken Masters

Ken Masters

The answer is E. As explained the “\” is a special character and needs to be “escaped”. Do that by adding another “\” which is the escape character. This will negate the \ in the directory name.

Busindre

Busindre

E is 100% correct and B is wrong

B)

rmdir ~/\dir
rmdir: failed to remove ‘/home/XXXX/dir’: No such file or directory

E)

rmdir ~/\\dir

Syr

Syr

zone@zone:~$ rmdir ~/\\dir
rmdir: failed to remove ‘/home/uone/\dir’: No such file or directory

and

rmdir ~/\dir works and no error, anyone cares explain?

Busindre

Busindre

You have created the directory incorrectly.

mkdir “\dir”

Carlo ivan

Carlo ivan

Cleared LX0-103 test yesterday, and passed with 780 marks!

Had 12 command line questions of all 60 questions.

Only 3-4 new fill in the blanks questions.

Got all questions from PassLeader LX0-103 dumps here: https://drive.google.com/open?id=0B-ob6L_QjGLpTXA3M1FIWlZwWnM

Good Luck To All!

Vongo

Vongo

dannnng that is what is up Carlo! You the real MVP!

Brett Goldstein

Brett Goldstein

Passed LX0-103 exam one week ago! 785/800 points!

Total 60 questions.

Few NEW fill in the blanks questions and one or two questions on vice versa.

I suggest you to learn the premium LX0-103 dumps from here:

http://www.passleader.com/lx0-103.html (213q VCE and PDF dumps, all new questions are available in it now)

Good Luck!