Information Technology Reference
In-Depth Information
Exam Prep Practice Questions
Question 1
Which command is used to determine the default access mode for files when
they are created?
A.
chown
B.
chmod
C.
umask
D.
chgrp
E.
ls
The correct answer is C. The chown command is used to change file owner-
ship. The chmod command is used to set the access mode of an existing file.
The chgrp command is used to change the group ownership of an existing
file, whereas the ls command is used to display access mode of existing files.
Question 2
Which of the following is true about the listing produced by executing the ls -F
command? [Select all that apply.]
A.
The names of the directories are followed by a forward slash ( / ).
B.
The names of symbolic links are followed by an asterisk ( * ).
C.
The names of directories are followed by a plus sign ( + ).
D.
The names of executable files are followed by an asterisk ( * ).
E.
The names of symbolic links are followed by an ampersand ( @ ).
The correct answers are A, D, and E. Answer B is incorrect because symbol-
ic links are followed by an ampersand. Answer C is incorrect because direc-
tories are followed by a forward slash.
Search WWH ::




Custom Search