1. Which of the following best describes the relationship between UIDs and GIDs on a Linux system?

  • The UID and GID are the same across the system for a given user.
  • Each user has a UID and GID that are the same and are created when the user is created.
  • The UID represents the user whereas the GID is a globally unique user ID.
  • There is no direct relationship between UID and GID.

2. Which argument to the locale command displays currently available locales for a given system?

  • -c
  • -a
  • -p
  • -s

3. Which command displays a list of jobs currently scheduled with at?

  • atlist
  • atq
  • atl
  • at -jobs

4. Which file stores group information on a Linux server?

  • /etc/groupinfo
  • /etc/groups
  • /etc/roles
  • /etc/group

5. Which command on a Debian-based system can be used to change the time zone using the package-based tools?

  • dpkg-reconfigure time
  • dpkg-reconfigure tzdata
  • apt-select tzdata
  • apt-config timezone

 1. The X Display Manager, xdm, runs various scripts as part of the login process. Which of the following scripts is executed as the user logging in?

  • Xstart
  • Xsession
  • Xstartup
  • Xuser.conf

2. Which command on a systemd-based system is used to disable booting into a GUI?

  • systemctl gui-boot disable
  • systemctl set-default boot-gui false
  • systemctl set-default multi-user.target
  • systemctl set-default-multi false

3. Which option to xiivnc sets the password to be used for clients connecting to the server?

  • -password
  • -passwd
  • -pass
  • -auth

4. Assuming X forwarding has been enabled on the SSH server, which environment variable is used to set the location for newly spawned windows from within an SSH session?

  • DISPLAY
  • XTERMINAL
  • XTERM
  • XDISP

5. Multiple server layouts may be created within an X configuration file. Which option is used to differentiate between the different server layout options?

  • ID
  • Identifier
  • LayoutName
  • Layout

 1. When using a case statement within a shell script, which sequence denotes the ending of the case/switch statement?

  • caseend
  • esac
  • endcase
  • }

2. Which of the following commands will execute a script and then exit the shell?

  • run
  • source
  • ./
  • exec

3. Which option to the export built-in command makes names available as functions to child processes?

  • -m
  • -e
  • -w
  • -f

4. Which character sequence is used to provide a default case when used within a case statement in a shell script?

  • default
  • =)
  • —>
  • *)

5. Which sequence is used to mark the beginning and end of the commands to execute within a for loop in a shell script?

  • Curly braces: { }
  • The keywords do and done
  • Semicolons: ;
  • Tabs

 1. Which option to df shows the numerical output in larger size increments, like MB, GB, TB, and so on rather than in bytes?

  • -h
  • -m
  • -n
  • -s

2. Which of the following represents the correct format for the /etc/fstab file?

  • <directory> <device> <type> <options>
  • <device> <type> <options>
  • <device> <type> <options> <directory> <dump> <fsck>
  • <filesystem> <mount point> <type> <options> <dump> <pass>

3. Which command is used to format a swap partition?

  • fdisk
  • mkswap
  • formatswap
  • format -s

4. According to the FHS, what is the proper mount point for removable media?

  • /etc
  • /srv
  • /tmp
  • /media

5. Assuming the use of Bash for the shell, in which file can the umask be set such that the file creation mask is set automatically on login?

  • /etc/umask.def
  • /etc/profile
  • /etc/bash.d/umask
  • /etc/bash.umask

 1. What command is used to bring a command to foreground Processing after it has been backgrounded with an &?

  • bg
  • fore
  • 4g
  • fg

2. Which of the following commands will print various information about the kernel and architecture, along with other details?

  • info -sys
  • man sys
  • sysinfo
  • uname -a

3. Which of the following commands searches each user’s .bash_history file to determine whether the user has invoked the sudo command?

  • find /home -name "bash_history" | grep sudo
  • find /home -name ".bash_history" | xargs grep sudo
  • find /home/.bash_history | xargs grep sudo
  • find /home -type history | xargs grep sudo

4. Which of the following pagers includes the ability to search backward and forward as well as move backward and forward, line-by-line, and page-by-page?

  • more
  • back
  • less
  • catch

5. Assume that you re using the Bash shell and want to prevent output redirects from accidentally overwriting existing files. Which command and option can be used to invoke this behavior?

  • setoutput -f
  • overwrite=no
  • overwrite -n
  • set -C

 1. When found in a GRUB configuration file, what does the ro option indicate?

  • Initially mount the root partition as read-only.
  • Mount the kernel as read-only.
  • Start the init program as read-once.
  • Mount the root partition in Raised Object mode.

2. Within which directory will you find the repositories used by yum?

  • /etc/yum.conf
  • /etc/repos
  • /etc/yum.conf.d
  • /etc/yum.repos.d

3. Within which file is a list of the currently mounted filesystems stored?

  • /etc/fstab
  • /etc/curmount
  • /var/spool/files
  • /etc/mtab

4. Which of the following commands installs GRUB into the MBR of the second SATA disk?

  • grub-install /dev/hdb2
  • grub-install /dev/sda2
  • grub-config /dev/sda
  • grub-install /dev/sdb

5. Which of the following commands and options lists all of the files included with a package on a Debian system?

  • apt -L
  • dpkg -L
  • dpkg -f
  • apt-get show