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 15 out of 49 Pages

Topic 3, GNU and Unix Commands

Which of the following commands determines the type of a file by using a definition
database file which contains information about all common file types?


A.

magic


B.

type


C.

file


D.

pmagic


E.

hash





C.
  

file



Which of the following commands prints all files and directories within the /tmp directory or
its subdirectories which are also owned by the user root? (Choose TWO correct answers.)


A.

find /tmp -uid root -print


B.

find -path /tmp -uid root


C.

find /tmp -user root -print


D.

find /tmp -user root


E.

find -path /tmp -user root –print





C.
  

find /tmp -user root -print



D.
  

find /tmp -user root



Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)






Answer: mkdir, /usr/bin/mkdir

In the vi editor, which of the following commands will copy the current line into the vi buffer?


A.

c


B.

cc


C.

1c


D.

yy


E.

1y





D.
  

yy



While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?


A.

:r


B.

:n


C.

:w


D.

:e





D.
  

:e




Page 15 out of 49 Pages
Previous