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:
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:
Incorrect – answer is B.
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.
I tested it the answer is B
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.
E
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
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?
You have created the directory incorrectly.
mkdir “\dir”
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!
dannnng that is what is up Carlo! You the real MVP!
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!
BTW, you can get part of free premium LX0-103 dumps here:
https://drive.google.com/open?id=0B-ob6L_QjGLpTXA3M1FIWlZwWnM