Linux LPI 117-101 # 9 Of 9

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Tobyyy
T
Tobyyy
Community Contributor
Quizzes Created: 10 | Total Attempts: 1,461
| Attempts: 104 | Questions: 60
Please wait...
Question 1 / 60
0 %
0/100
Score 0/100
1. You wish to find out the full path of the binary executable "cmd1". Type just the
command that will show the first instance of the command.

Explanation

Which locates a program file in the user's path.

Submit
Please wait...
About This Quiz
Linux LPI 117-101 # 9 Of 9 - Quiz

This Linux LPI 117-101 quiz assesses skills in creating and managing file links within Linux systems, focusing on symbolic and hard links. It tests practical command-line knowledge essential for system administration, enhancing learner's proficiency in Linux file management.

Personalize your quiz and earn a certificate with your name on it!
2. To locate all files that are less than 3 days old, you use the _____ -mtime
 -3command.

Explanation

Find searches a folder hierarchy for filename(s) that meet a desired
criteria: Name, Size, File Type etc.

Submit
3. What is the name of the X configuration tool that runs in graphical text mode?

Explanation

Xconfigurator is the name of the X configuration tool that runs in graphical text mode. This tool allows users to configure the X Window System on Linux operating systems. It provides a user-friendly interface in text mode, making it easier for users to configure their display settings, such as screen resolution, color depth, and graphics drivers. Xconfigurator is commonly used on Linux distributions that use the X Window System, providing a convenient way to customize the graphical environment.

Submit
4. What must you type immediately after adding new fonts to an X window system, to
make them available to the system?

Explanation

mkfontdir - create an index of X font files in a directory.

Submit
5. What is the name of the X configuration tool that runs in text
mode from the command line, and has a large number of
Questions?

Explanation

xf86config - An older X configuration program with a text based interface. It also modifies the "/etc/X11/XF86Config" configuration file.

Submit
6. Type in the command that would start an application to check for colour depth of
an X window.

Explanation

Xwininfo is a utility for displaying information about windows. Various information is displayed depending on which options are selected.

Submit
7. What command line tool can be used to display the window attributes of an X
window. Type in the command line without flags or path.

Explanation

Xwininfo is a utility for displaying information about windows.
Various information is displayed depending on which options are selected.

Submit
8. You need to create a symbolic link in the current user's home directory named
Certkiller to the file /data/foobar. Choose the command that will accomplish this.

Explanation

ln [OPTION]... [-T] TARGET LINK_NAME (1st form)
-s, --symbolic, make symbolic links instead of hard links

Submit
9. Which command line option would you use to restrict the GNU find
command to searching a particular number of subdirectories?

Explanation

Descend at most levels (a non-negative integer) levels of directories
below the command line arguments.

Submit
10. You want to have the process /etc/myprocess run when the system enters run level 3.
Which of the following inittab entries would accomplish this?

Explanation

The first entry is the label, the second is runlevel. Therefore you should choose A before B.

Submit
11. Which of the following programs can be used to the find the foo program in the
PATH and associated man pages, but not list every file containing foo on the
system?

Explanation

Whereis locates the binary, source, and manual page files for specified commands/files.

Submit
12. You are having problems with a particular font and you want to see if its directory
is included in XF86Config. Which section contains this information?

Explanation

The files section consist of FontPath, RGBPath and ModulePath.

Submit
13. Type in the full path and name of the file that you would edit to change the default
startup runlevel of the system so that it starts an X session on bootup instead of a
text mode session.

Explanation

The file /etc/inittab is read by init process to control system behavior in particular runlevel.

Submit
14. You want to make sure certain directories are excluded when you update your
locate database file.
Where would you typically store this configuration?

Explanation

/etc/updatedb.conf is configuration file for updatedb, that is used to
create the db that locate and slocate searches in.

Submit
15. Which one of the following programs will only find files that are in your PATH?

Explanation

The locate command looks in a pre-built database for matches, like an
index. This database is updated on a schedule, and is sometimes outdated.
B. slocate securely searches its database of filenames. It works like locate, but it also
stores file permissions and ownership information so users cannot see files to which they
don't have access. In some distributions, locate is actually a symbolic link to slocate."
C. The which command parses every directory in the PATH environment variable,
returning the first match found. This is useful if you want to know which file gets
executed when you type a command, or if you need to know the full path of a file for
some reason. For example, security could be compromised by someone that puts an often
used executable in a directory that gets looked at earlier in your PATH statement. Thus,
every time you think you're executing a program, you're actually executing a possibly
malicious program. There is an option to make the which command return every found
result, but it will remain restricted to the PATH.
D. Finally, the find command just does a complete search. It accepts the starting directory
as an argument, and just looks at every file and directory it finds. It takes a long time, but
it's guaranteed to find anything that the user has read permission to.

Submit
16. How can you replace all tabs in a file named file1 with spaces?

Explanation

expand command convert tabs in each FILE to spaces, writing to standard output.

Submit
17. What is the name of the X configuration tool that runs in a simplified X-like
environment?

Explanation

XF86Setup - A newer X configuration program with a GUI interface which modifies the "/etc/X11/XF86Config" configuration file.

Submit
18. What file does init processes use as its control file?

Explanation

The file /etc/inittab is read by init process to control system behavior in particular runlevel.

Submit
19. You want to find the full path of a certain command. How would you do this?

Explanation

Which locates a program file in the user's path.

Submit
20. Which of the following programs can be used to find the foo program in the PATH
and associated man pages, but NOT list every file containing foo in the system?

Explanation

Whereis locates the binary, source, and manual page files for specified
commands/files.

Submit
21. What does the command "ln test bill" typically do?

Explanation

ln without the -s option will make a hard link. -s specifies that ln
makes an symbolic link.

Submit
22. You are trying to make a hard link to an ordinary file but
ln
returns an error. Which of the following could cause this?

Explanation

Hard link creates a separate physical File means it point to the
original data then original filename. But hard link can't create for directory and
cann't span the multiple partitions.

Submit
23. What is the name of the default XFree86 Font Server?

Explanation

The X font server (xfs) provides a standard mechanism for an X
server to communicate with a font renderer.

Submit
24. The screensize is already configured in X on a system. When started, the screen
defaults to a certain size. The user wants to change it, what file should the user edit
manually to accomplish this?

Explanation

XFree86 uses a configuration file called XF86Config for its initial
setup. This configuration file is searched for in the following places when the server
is started as a normal user:
/etc/X11/
/usr/X11R6/etc/X11/
/etc/X11/$XF86CONFIG
/usr/X11R6/etc/X11/$XF86CONFIG
/etc/X11/XF86Config-4
/etc/X11/XF86Config
/etc/XF86Config
/usr/X11R6/etc/X11/XF86Config.
/usr/X11R6/etc/X11/XF86Config-4
/usr/X11R6/etc/X11/XF86Config
/usr/X11R6/lib/X11/XF86Config.
/usr/X11R6/lib/X11/XF86Config-4
/usr/X11R6/lib/X11/XF86Config
The reason to why C is correct is the case sensitive spelling.

Submit
25. In XF86Config which section is concerned with fonts?

Explanation

The files section consist of FontPath, RGBPath and ModulePath.

Submit
26. What command will tell you the color depth of your display?

Explanation

Xwininfo is a utility for displaying information about windows. Various information is displayed depending on which options are selected.

Submit
27. Which series of programs and scripts most closely defines a standard X Window
System startup process as executed from a character-mode console?

Explanation

The correct answer is "startx -> xinit -> xinitrc -> Xclients". This series of programs and scripts represents the standard X Window System startup process from a character-mode console. The "startx" command is used to start the X server, which then calls "xinit" to initialize the X session. "xinitrc" is the script that is executed to set up the user's environment, and finally, "Xclients" is the script that starts the user's chosen window manager or desktop environment.

Submit
28. Do changes to the inittab file require a reboot in order to take effect?

Explanation

No, you can wake up init to re-examine the inittab file.

Submit
29. You have read/write permission on an ordinary file foo. You have just run ln foo
bar. What would happen if you ran rm foo?

Explanation

Correct Answer is B. The ln command is used to create the link. There
are two types of link a. Soft link b. Hard link.
b. Softlink à Can create for directory also, can span multiple pratations but available until
and unless Original Files remain.
Syntax for Softlink
ln -s originalfile linkfile
b. Hardlink à One separate Physical File, can't create for directory, can't span multiple
file but remains the link file if original file removed.
Syntax for Hardlink
ln originalfile linkfile
In Question, created the bar hardlink of foo. That means bar is on separate physical file.
The file bar is accessible after removing the foo file also.

Submit
30. What command can find the program file "bar" and it's associated man pages and
any existing source files, but not return all files that have "bar" in the command
name or path?

Explanation

Whereis locates the binary, source, and manual page files for specified
commands/files.

Submit
31. What line in the /etc/inittab file sets the runlevel a machine will enter when a
graphical login is desired?

Explanation

The default boot runlevel is set in the file /etc/inittab with the
initdefault variable. When set to 3, the system boots up with the text interface on the
VGA console; when set to 5, you get the GUI.

Submit
32. With Xfree86 3.3.5, what is the name of the default font server?

Explanation

The X font server (xfs) provides a standard mechanism for an X
server to communicate with a font renderer.

Submit
33. You are the system administrator for a consulting firm where several people use
Linux as their desktop operating system. One of your users has installed a
commercial publishing program that works under X on a variety of UNIX and
Linux platforms. The user made a series of configuration changes regarding the
initial window size, location and color.
Now, he is having difficulty undoing these changes and is asking for your help. In
which file would you think you would most likely find the configuration settings you
are seeking to change?

Explanation

XFree86 uses a configuration file called XF86Config for its initial
setup. This configuration file is searched for in the following places when the server
is started as a normal user:
/etc/X11/
/usr/X11R6/etc/X11/
/etc/X11/$XF86CONFIG
/usr/X11R6/etc/X11/$XF86CONFIG
/etc/X11/XF86Config-4
/etc/X11/XF86Config
/etc/XF86Config
/usr/X11R6/etc/X11/XF86Config.
/usr/X11R6/etc/X11/XF86Config-4
/usr/X11R6/etc/X11/XF86Config
/usr/X11R6/lib/X11/XF86Config.
/usr/X11R6/lib/X11/XF86Config-4
/usr/X11R6/lib/X11/XF86Config

Submit
34. Which of the following best describes the order in which X Window files are
executed or read ?

Explanation

The correct order in which X Window files are executed or read is as follows: startx -> xinit -> xinitrc -> Xclients. This means that the startx command is executed first, followed by the xinit command, then the xinitrc file is read, and finally, the Xclients file is executed.

Submit
35.  After installing and configuring Xfree86, you notice that when you start X, the
display is not centered. What program can you run to find a better modeline setting?

Explanation

xvidtune - video mode tuner for XFree86.
Synopsis: xvidtune [ -show | -prev | -next | -unlock ] [ -toolkitoption ... ]

Submit
36. Which of these commands will list the shared libraries used by the KDE application
kpanel?

Explanation

ldd will list the shared libraries if provided the full path to the KDE
application kpanel

Submit
37. What file is used to configure the XDM daemon?

Explanation

xdm-config defines the names and locations of the other configuration files and the basic access permissions.

Submit
38. What file should you edit to exclude directories from being indexed by the slocate
command?

Explanation

/etc/updatedb.conf is configuration file for updatedb, that is used to
create the db that locate and slocate searches in.

Submit
39. What would cause a system to report having excess free space but very few available
inodes?

Explanation

Fast symlinks allow storage of the link-text within the standard data
structures used for storing file information on disk (inodes).

Submit
40. The X program _________ is often used to make minor keyboard adjustments, like
proper Backspace/Delete mapping.

Explanation

kbdmap is the keyboard map file format for kbdcontrol

Submit
41. Which of the following lines from /etc/X11/XF86Config indicates what fonts can be
found on a font server?

Explanation

In XF86Config FontPath "path" -
sets the search path for fonts. This path is a comma separated list of font path elements
which the X server searches for font databases. Multiple FontPath entries may be
specified, and they will be concatenated to build up the fontpath used by the server. Font
path elements may be either absolute directory paths, or a font server identifier. Font
server identifiers have the form: /:
where is the transport type to use to connect to the font server (e.g., unix for
UNIX-domain sockets or tcp for a TCP/IP connection), is the hostname of
the machine running the font server, and is the port number that the font
server is listening on (usually 7100).

Submit
42. You want to have the process /etc/myprocess to run when the system enters run
level 2. You want the system to wait until the process completes. Which of the
following inittab entries would accomplish this?

Explanation

The first entry is the label, the second is runlevel. Therefore you should choose A before B.

Submit
43. You are experimenting with a binary in /tmp/foo.d that expects its configuration file
at /etc/foo.conf. You don't want to save it there, but use a symbolic link to
/tmp/foo.d/foo.conf instead.
Which command would accomplish that?

Explanation

Correct Answer is C. The ln command is used to create the link. There
are two types of link a. Soft link b. Hard link.
a. Soft link à Can create for directory also, can span multiple partitions but available until
and unless Original Files remain.
Syntax for Soft link
ln -s originalfile linkfile
b. Hard link à One separate Physical File, can't create for directory, can't span multiple
file but remains the link file if original file removed.
Syntax for Hard link
ln originalfile linkfile

Submit
44. You are the system administrator for a small consulting company. One of your
consultants recently installed Linux on a system in order to prepare for a project.
What he performed the installation, he chose several different screen sizes (604x480,
800x600, 1024x768). However, when he starts the system, it always goes into
640x480 first, and he must manually toggle to get to the higher resolution. He would
like to change the setup so that he enters X at the higher resolution first.
If you were to change this setting manually, which file would you edit?

Explanation

Xfree86 uses a configuration file called XF86Config for its initial
setup.

Submit
45. What command can be used to cause changes to the inittab file to take effect
without a system reboot?

Explanation

To provide for an instantaneous response, the init Q or q command can wake up init to re-examine the /etc/inittab file.

Submit
46. You have just set up the X Display Manager as your default display manager. What
file should you edit to change the default background for it?

Explanation

To change the default background for the X Display Manager, you should edit the "/etc/X11/xdm/Xsetup" file.

Submit
47. You are the administrator for all desktop systems at your company. You do not
have a desktop standard and the users are free to use any window manager they
choose.
Which of the following methods would be easiest to add a menu item to all users'
main menu?

Explanation

All other suggestions fail as you don't know what window manager the users have and how it keeps it's configuration data.

Submit
48. What switch will set the foreground color in X?

Explanation

The command "fg" is used to set the foreground color in X.

Submit
49. Which program finds only files that are in your path?

Explanation

Secure Locate provides a secure way to index and quickly search for
files on your system. It uses incremental encoding just like GNU locate to compress
its database to make searching faster, but it will also store file permissions and
ownership so that users will not see files they do not have access to.

Submit
50. What is the entry in the XF86Config file that specifies the fonts are on the local
machine? Choose Two.

Explanation

In XF86Config FontPath "path" -
sets the search path for fonts. This path is a comma separated list of font path elements
which the X server searches for font databases. Multiple FontPath entries may be
specified, and they will be concatenated to build up the fontpath used by the server. Font
path elements may be either absolute directory paths, or a font server identifier. Font
server identifiers have the form: /:
where is the transport type to use to connect to the font server (e.g., unix for
UNIX-domain sockets or tcp for a TCP/IP connection), is the hostname of
the machine running the font server, and is the port number that the font
server is listening on (usually 7100).

Submit
51. You have booted a desktop Linux system and logged in. When you type "startx", a
mouse error occurs almost immediately. What's the most likely cause of the
problem?

Explanation

for a normal PS/2 mouse you should use
"Protocol" "IMPS/2"

Submit
52. What section of the XF86Config file contains the entry to set the path for fonts
used?

Explanation

In XF86Config FontPath "path" -
sets the search path for fonts. This path is a comma separated list of font path elements
which the X server searches for font databases. Multiple FontPath entries may be
specified, and they will be concatenated to build up the fontpath used by the server. Font
path elements may be either absolute directory paths, or a font server identifier. Font
server identifiers have the form: /:
where is the transport type to use to connect to the font server (e.g., unix for
UNIX-domain sockets or tcp for a TCP/IP connection), is the hostname of
the machine running the font server, and is the port number that the font
server is listening on (usually 7100).

Submit
53. Your system boots into a typical runlevel 3, so users generally use startx to get a
graphical shell. What file can users modify in their home directory to determine the
window manager started by startx?

Explanation

Users can modify the ".Xclients" file in their home directory to determine the window manager started by startx. This file contains the commands that are executed when the startx command is run, and by modifying it, users can specify the window manager they want to use for their graphical shell.

Submit
54. What is the configuration file for the xscreensaver?

Explanation

Options to xscreensaver are stored in one of two places: in a
.xscreensaver file in your home directory; or in the X resource database. If the
.xscreensaver file exists, it overrides any settings in the resource database.

Submit
55. You have just set up the Gnome Display Manager as your default display manager.
What file should you edit to change the default greeting for it?

Explanation

To change the default greeting for the Gnome Display Manager, you should edit the file "/etc/X11/gdm/lnit/Default". This file contains the configuration settings for the GDM login screen, including the default greeting message that is displayed to users. By editing this file, you can modify the greeting to your desired message.

Submit
56. Which of the following are windows managers? Choose all that apply.

Explanation

See more at
http://www.linux.org/apps/all/GUI/Window_Managers.html

Submit
57. What entry in the X configuration file specifies where the fonts are located for the X
system?

Explanation

Xconfigurator - configure XFree86 server and display

Submit
58. Which of the following is true about the XF86Config file. Select all that apply?

Explanation

XFree86 is unaware of which window manager that is installed on top of it.

Submit
59. You have just set up the X Display Manager.
What file is typically used as the primary configuration file for XDM?

Explanation

xdm-config defines the names and locations of the other configuration files and the basic access permissions.

Submit
60. You have just set up the KDE Display Manager as your default display manager.
What file should you edit to change the default greeting?

Explanation

The main configuration file is kdmrc; all other files are referenced
from there and could be stored under any name anywhere on the system - but
usually that would not make much sense for obvious reasons (one particular
exception is referencing configuration files of an already installed xdm - however
when a new kdm is installed, it will import settings from those files if it finds an
already installed xdm).

Submit
View My Results

Quiz Review Timeline (Updated): Dec 13, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Dec 13, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 16, 2009
    Quiz Created by
    Tobyyy
Cancel
  • All
    All (60)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
You wish to find out the full path of the binary executable "cmd1"....
To locate all files that are less than 3 days old, you use the _____...
What is the name of the X configuration tool that runs in graphical...
What must you type immediately after adding new fonts to an X window...
What is the name of the X configuration tool that runs in textmode...
Type in the command that would start an application to check for...
What command line tool can be used to display the window attributes of...
You need to create a symbolic link in the current user's home...
Which command line option would you use to restrict the GNU...
You want to have the process /etc/myprocess run when the system enters...
Which of the following programs can be used to the find the foo...
You are having problems with a particular font and you want to see if...
Type in the full path and name of the file that you would edit to...
You want to make sure certain directories are excluded when you update...
Which one of the following programs will only find files that are in...
How can you replace all tabs in a file named file1 with spaces?
What is the name of the X configuration tool that runs in a simplified...
What file does init processes use as its control file?
You want to find the full path of a certain command. How would you do...
Which of the following programs can be used to find the foo program in...
What does the command "ln test bill" typically do?
You are trying to make a hard link to an ordinary file butln returns...
What is the name of the default XFree86 Font Server?
The screensize is already configured in X on a system. When started,...
In XF86Config which section is concerned with fonts?
What command will tell you the color depth of your display?
Which series of programs and scripts most closely defines a standard X...
Do changes to the inittab file require a reboot in order to take...
You have read/write permission on an ordinary file foo. You have just...
What command can find the program file "bar" and it's associated man...
What line in the /etc/inittab file sets the runlevel a machine will...
With Xfree86 3.3.5, what is the name of the default font server?
You are the system administrator for a consulting firm where several...
Which of the following best describes the order in which X Window...
 After installing and configuring Xfree86, you notice that when...
Which of these commands will list the shared libraries used by the KDE...
What file is used to configure the XDM daemon?
What file should you edit to exclude directories from being indexed by...
What would cause a system to report having excess free space but very...
The X program _________ is often used to make minor keyboard...
Which of the following lines from /etc/X11/XF86Config indicates what...
You want to have the process /etc/myprocess to run when the system...
You are experimenting with a binary in /tmp/foo.d that expects its...
You are the system administrator for a small consulting company. One...
What command can be used to cause changes to the inittab file to take...
You have just set up the X Display Manager as your default display...
You are the administrator for all desktop systems at your company. You...
What switch will set the foreground color in X?
Which program finds only files that are in your path?
What is the entry in the XF86Config file that specifies the fonts are...
You have booted a desktop Linux system and logged in. When you type...
What section of the XF86Config file contains the entry to set the path...
Your system boots into a typical runlevel 3, so users generally use...
What is the configuration file for the xscreensaver?
You have just set up the Gnome Display Manager as your default display...
Which of the following are windows managers? Choose all that apply.
What entry in the X configuration file specifies where the fonts are...
Which of the following is true about the XF86Config file. Select all...
You have just set up the X Display Manager.What file is typically used...
You have just set up the KDE Display Manager as your default display...
Alert!

Advertisement