Go Back on 101-500 Exam
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99

101-500 Practice Test


Page 13 out of 49 Pages

Topic 3, GNU and Unix Commands

In compliance with the FHS, in which of the directories are man pages found?


A.

/usr/share/man


B.

/opt/man


C.

/usr/doc/


D.

/var/pkg/man


E.

/var/man





A.
  

/usr/share/man



What is the difference between the i and a commands of the vi editor?


A.

i (interactive) requires the user to explicitly switch between vi modes whereas a
(automatic) switches modesautomatically.


B.

i (insert) inserts text before the current cursor position whereas a (append) inserts text
after the cursor.


C.

i (independent rows) starts every new line at the first character whereas a (aligned rows)
keeps the indentation of the previous line.


D.

i (interrupt) temporarily suspends editing of a file to the background whereas a (abort)
terminates editing.





B.
  

i (insert) inserts text before the current cursor position whereas a (append) inserts text
after the cursor.



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





E.
  

rmdir ~/\\dir



What does the + symbol mean in the following grep regular expression:
grep '^d[aei]\+d$' /usr/share/dict/words


A.

Match the preceding character set ([aei]) one or more times.


B.

Match the preceding character set ([aei]) zero or more times.


C.

Match the preceding character set ([aei]) zero or one times.


D.

Match a literal + symbol.





A.
  

Match the preceding character set ([aei]) one or more times.



What happens after issuing the command vi without any additional parameters?


A.

vi starts and loads the last file used andmoves the cursor to the position where vi was
when it last exited.


B.

vi starts and requires the user to explicitly either create a new or load an existing file.


C.

vi exits with an error message as it cannot be invoked without a file name to operate on.


D.

vi starts in command mode and opens a new empty file.


E.

vi starts and opens a new file which is filled with the content of the vi buffer if the buffer
contains text.





D.
  

vi starts in command mode and opens a new empty file.




Page 13 out of 49 Pages
Previous