DCOM 142 STUDY EXAMS GUIDE ALL QUESTIONS
AND ANSWERS SURE A+
✔✔True or false: Both RPM and Debian packages can specify that they require other
packages. The package system will then refuse to install the package unless these
dependencies are met or you provide an override option. - ✔✔True
Dependency information is critical for package management, and it works as the
question specifies.
✔✔True or false: Typing ls *.* at a Bash prompt is guaranteed to show you all the files
in the current directory. - ✔✔False
The specified command shows you all the files whose names include a dot (.), but
there's no guarantee that all the files in the directory will include a dot in their names.
✔✔True or false: You can modify graphics files from a text-mode login using Linux. -
✔✔True
The ImageMagick suite of graphics programs is text-based; you can use it to convert file
formats, add frames to images, resize images, and so on, all from the command line.
✔✔True or false: All Linux Web browsers are GUI programs. - ✔✔False
, The Lynx Web browser is text-mode; you can run it in a terminal window or from a text-
mode login.
✔✔What symbol do you place after a command to run the program in the background?
- ✔✔A
An ampersand (&), placed after a command typed in Bash, causes the command to run
in the background, so option A is correct. The remaining options do not accomplish this
task, although option C redirects standard output and option D creates a pipe to the
following command on the same line. Option B is completely meaningless, as is option
E in this context, although a hash mark (#) does serve as a comment character in Bash
scripts.
✔✔Which of the following is an inappropriate choice for a filesystem to hold the majority
of a Linux installation? - ✔✔D
The Hierarchical File System (HFS) was used by Mac OS prior to Mac OS X. It doesn't
support features required by Linux in its main filesystem, so option D is the correct
answer. JFS, ext4fs, ReiserFS, and XFS are all Linux-native filesystems (either
developed explicitly for Linux or converted from other Unix-like OSes), so options A, B,
C, and E are all incorrect.
✔✔True or false: xinetd is a super server. - ✔✔True
The term super server refers to a server that listens for connection attempts on behalf of
other servers and that launches those other servers only as needed. The two most
common super servers on Linux are inetd and xinetd.
✔✔Which of the following commands displays the name of the directory in which you're
working? - ✔✔E
The pwd command does as the question specifies, so option E is correct. The wc
command counts lines, words, and characters in a text file, so option A is incorrect. The
cat command concatenates multiple files, or displays a file on the screen, so option B is
incorrect. The echo command displays whatever text you give it, or the contents of a
variable you give it, so option C is incorrect. The cd command changes the current
working directory, but does not display its name, so option D is incorrect.
✔✔Which of the following is not a Linux command shell program? - ✔✔D
The login program handles text-mode logins, but it isn't a shell program, so option D is
correct. The remaining options are all Linux shell programs, so options A, B, C, and E
are all incorrect. (Option E, bash, is the default shell for most distributions.)
AND ANSWERS SURE A+
✔✔True or false: Both RPM and Debian packages can specify that they require other
packages. The package system will then refuse to install the package unless these
dependencies are met or you provide an override option. - ✔✔True
Dependency information is critical for package management, and it works as the
question specifies.
✔✔True or false: Typing ls *.* at a Bash prompt is guaranteed to show you all the files
in the current directory. - ✔✔False
The specified command shows you all the files whose names include a dot (.), but
there's no guarantee that all the files in the directory will include a dot in their names.
✔✔True or false: You can modify graphics files from a text-mode login using Linux. -
✔✔True
The ImageMagick suite of graphics programs is text-based; you can use it to convert file
formats, add frames to images, resize images, and so on, all from the command line.
✔✔True or false: All Linux Web browsers are GUI programs. - ✔✔False
, The Lynx Web browser is text-mode; you can run it in a terminal window or from a text-
mode login.
✔✔What symbol do you place after a command to run the program in the background?
- ✔✔A
An ampersand (&), placed after a command typed in Bash, causes the command to run
in the background, so option A is correct. The remaining options do not accomplish this
task, although option C redirects standard output and option D creates a pipe to the
following command on the same line. Option B is completely meaningless, as is option
E in this context, although a hash mark (#) does serve as a comment character in Bash
scripts.
✔✔Which of the following is an inappropriate choice for a filesystem to hold the majority
of a Linux installation? - ✔✔D
The Hierarchical File System (HFS) was used by Mac OS prior to Mac OS X. It doesn't
support features required by Linux in its main filesystem, so option D is the correct
answer. JFS, ext4fs, ReiserFS, and XFS are all Linux-native filesystems (either
developed explicitly for Linux or converted from other Unix-like OSes), so options A, B,
C, and E are all incorrect.
✔✔True or false: xinetd is a super server. - ✔✔True
The term super server refers to a server that listens for connection attempts on behalf of
other servers and that launches those other servers only as needed. The two most
common super servers on Linux are inetd and xinetd.
✔✔Which of the following commands displays the name of the directory in which you're
working? - ✔✔E
The pwd command does as the question specifies, so option E is correct. The wc
command counts lines, words, and characters in a text file, so option A is incorrect. The
cat command concatenates multiple files, or displays a file on the screen, so option B is
incorrect. The echo command displays whatever text you give it, or the contents of a
variable you give it, so option C is incorrect. The cd command changes the current
working directory, but does not display its name, so option D is incorrect.
✔✔Which of the following is not a Linux command shell program? - ✔✔D
The login program handles text-mode logins, but it isn't a shell program, so option D is
correct. The remaining options are all Linux shell programs, so options A, B, C, and E
are all incorrect. (Option E, bash, is the default shell for most distributions.)