Lesson1 Flashcards
(20 cards)
What of the following statements is true regarding a display manager?
A. A display manager handles remote X11 logins only and has no purpose on a system that is not attached to a
network.
B. The display manager is configured in the X11 configuration file xorg.conf.
C. There is only one display manager X11DM that must be started on all systems running X11.
D. After system startup, the display manager handles the login of a user
E. Without a display manager, no graphical programs can be run.
D. After system startup, the display manager handles the login of a user
For accessibility assistance, which of the following programs is an on-screen keyboard?
A. xkb
B. atkb
C. GOK
D. xOSK
C. GOK
On a machine running several X servers, how are the different instances of the X11 server identified?
A. By a fixed UUID that is defined in the X11 configuration file.
B. By a unique IPv6 address from the fe80::/64 subnet.
C. By the name of the user that runs the X server like x11:bob.
D. By a device name like /dev/X11/xservers/1.
E. By a display name like:1.
E. By a display name like:1.
When the command echo $? outputs 1, which of the following statements are true?
A. It is the process ID of the echo command.
B. It is the process ID of the current shell.
C. It is the exit value of the command executed immediately before echo.
D. It is the exit value of the echo command.
C. It is the exit value of the command executed immediately before echo.
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
A. ~/.bashconf
B. ~/.bashrc
C. ~/.bashdefaults
D. ~/.bash_etc
E. ~/.bash_profile
B. ~/.bashrc
E. ~/.bash_profile
What is the purpose of the xhost program?
A. Grant or revoke access to a X11 session.
B. Install all packages and video drivers required to run X11 on a host.
C. Start the X11 server and announce its availability within the local network.
D. Send informational messages to all users logged into a host using X11.
E. Display the MOTD and other important information when a user logs in via X11.
A. Grant or revoke access to a X11 session.
- Which of the following commands puts the output of the command date into the shell variable mydate?
A. mydate-‘$(date)’’
B. mydate-‘exec date”
C. mydate-‘$((date))’’
D. mydate-‘date”
E. mydate=”${date}”
A. mydate-‘$(date)’’
- What is the purpose of the sticky keys feature in X?
A. To assist users who have difficulty holding down multiple keys at once.
B. To prevent repeated input of a single character if the key is held down.
C. To ignore brief keystrokes according to a specified time limit.
D. To repeat the input of a single character.
A. To assist users who have difficulty holding down multiple keys at once.
- Which command makes the shell variable named VARIABLE visible to subshells?
A. export $VARIABLE
B. export VARIABLE
C. set $VARIABLE
D. set VARIABLE
E. env VARIABLE
B. export VARIABLE
- After issuing:
function myfunction { echo $1 $2 ; } in Bash, which output does: myfunction A B C Produce?
A. AB
B. ABC
C. AC
D. BC
E. CBA
A. AB
- What output will the following command sequence produce? echo ‘1 2 3 4 5 6’ | while read a b c;
do echo result: $c $b $a; done
A. result: 3 4 5 6 2 1
B. result: 1 2 3 4 5 6
C. result: 6 5 4
D. result: 6 5 4 3 2 1
E. result: 3 2 1
A. result: 3 4 5 6 2 1
- How is a display manager started?
A. It is started by a user using the command startx.
B. It is started like any other system service by the init system.
C. It is started by inetd when a remote hosts connects to the X11 port.
D. It is started automatically when a X11 user logs in to the system console.
B. It is started like any other system service by the init system.
- Which of the following commands shows the current color depth of the X Server?
A. xcd
B. xcdepth
C. xwininfo
D. xcolordepth
E. cat /etc/X11
C. xwininfo
- What output will the command seq 10 produce?
A. A continuous stream of numbers increasing in increments of 10 until stopped.
B. The numbers 1 through 10 with one number per line.
C. The numbers 0 through 9 with one number per line.
D. The number 10 to standard output.
B. The numbers 1 through 10 with one number per line.
- Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)
A. Start and prepare the desktop environment for the user.
B. Configure additional devices like new monitors or projectors when they are attached.
C. Handle the login of a user.
D. Lock the screen when the user was inactive for a configurable amount of time.
E. Create an X11 configuration file for the current graphic devices and monitors.
A. Start and prepare the desktop environment for the user.
C. Handle the login of a user.
- Which of the following commands can modify or set the password expiration for a user? (Choose TWO correct
answers.)
A. chage
B. chexpiration
C. shadowconfig
D. passwd
E. userconf
A. chage
D. passwd
- Which of the following statements is true regarding the /etc/shadow file?
A. /etc/shadow may not be readable or writable by user root.
B. Only root is allowed to read and write /etc/shadow.
C. All users have full read and write access to /etc/shadow.
D. All users have full read access to /etc/shadow.
B. Only root is allowed to read and write /etc/shadow.
- What is the main difference between the batch and at commands?
A. The batch command will run multiple times. The at command will only run once.
B. The commands of a batch job run sequentially one after another while the commands in at jobs may run in parallel.
C. The at command reads commands from standard input. The batch command requires a command line
argument.
D. The at command e-mails results to the user. The batch command logs results to syslog.
B. The commands of a batch job run sequentially one after another while the commands in at jobs may run in parallel.
- Which environment variable will override all LC_* variables?
A. LANG
B. LC_ALL
C. LC_COLLATE
D. LOCALE
B. LC_ALL
- Which command will set the local machine’s timezone to UTC?
A. cat UTC > /etc/timezone
B. ln -s /usr/share/zoneinfo/UTC /etc/localtime
C. date –timezone=UTC
D. mv /usr/timezone/UTC /etc
B. ln -s /usr/share/zoneinfo/UTC /etc/localtime