Assessment Test Flashcards
What software package allows a Linux server to share folders and printers with Windows and MAC clients? A. Postfix B. Apache C. Samba D. Kerberos E. Docker
C. Samba
The Samba software package allows Linux servers and clients to communicate with Windows and Mac clients or severs using the Microsoft SMB protocol, so option C is correct.
Which software package allows developers to deploy applications using the exact same environment in which they were developed? A. Postfix B. Apache C. Samba D. Kerberos E. Docker
E. Docker
The Docker package provides a method for developers to capture the entire development environment for an application and deploy it into a production environment as a container, so option E is correct.
The cat -n File.txt command is entered at the command line. What will be the result?
A. The text file File.txt will be displayed.
B. The text file File.txt will be displayed along with any special hidden characters in the file.
C. The text file File.txt will be displayed along with ant special symbols representing end-of-line characters.
D. The text file File.txt will be displayed along with line numbers.
E. The text file File.txt will be displayed in reverse order.
D. The text file File.txt will be displayed along with line numbers.
Which of the following are stream editors? (Choose all that apply.) A. vim B. sed C. awk D. gawk E. nano
B. sed C. awk D. gawk Utilities are stream editors Note: Both vim & nano are considered to be text editors.
Which command in GRUB2 defines the location of the /boot folder to the first partition on the first hard drive on the system? A. set root=hd(0,1) B. set root=hd(1,0) C. set root=hd(1,1) D. set root=hd(0,0) E. set root=first
A. set root=hd(0,1)
GRUB2 identifies the hard drives starting at 0, but the partitions start at 1, so the first partition on the first hard drive would be 0,1.
If you see read or write error appear in the system log, what tool should you use to correct any bad sections of the hard drive? A. mount B. unmount C. fsck D. dmesg E. mkinitrd
C. fsck
The fsck program can perform filesystem check and repair multiple types of filesystems on partitions.
The init program is started on a Linux system and has a process ID number. What typically is that process's ID number? A. 0 B. 1 C. 2 D. 10 E. Unknown
B. 1
The init program is typically started immediately after the Linux system has traversed the boot process, and it has a process ID (PID) number of 1.
You need to determine the default target of a systemd system. Which of the following commands should you use? A. grep initdefault /etc/inittab B. runlevel C. systemctl is-enabled D. systemd get-target E. systemctl get-default
E. systemctl get-default
The systemctl get-default command will display a systemd system’s default target.
The Cinnamon desktop environment uses which window manager? A. Mutter B. Muffin C. Nemo D. Dolphin E. LightDM
E. LightDM
The Cinnamon desktop environment uses the Muffin window manager.
Your X11 session has become hung. What keystrokes do you use to restart the session? A. Ctrl+C B. Ctrl+Z C. Ctrl+Q D. Ctrl+Alt+Backspace E. Ctrl+Alt+Backspace
E. Ctrl+Alt+Backspace
The Ctrl+Alt+Backspace will kill your X11 session and then restart it, putting you at the login screen (display manager.)
What folder contains the time zone template files in Linux? A. /etc/timezone B. /etc/localtime C. /usr/share/zoneinfo D. /usr/share/timezone E. /usr/share/localtime
C. /usr/share/zoneinfo
Both Debian-based and Red Hat-based Linux distributions store the time zone template files in the /usr/share/zoneinfo folder.
What systemd command allows you to view and change the time, date, and time zone? A. timedatectl B. localectl C. date D. time E. locale
A. timedatectl
The timedatectl program is part of the systemd package and allows you to both view and change the current time, date, and time zone for the Linux system.
Which of the following files contain user account creation directives used by the useradd command? (Choose all that apply.) A. The /etc/default/useradd file B. The /etc/useradd file C. The /etc/adduser.conf file D. The /etc/login.defs file E. the /etc/login.def file
A. The /etc/default/useradd file
D. The /etc/login.defs file
The /etc/default/useradd file and /etc/login.defs file are files that contain user account creation directives used by the useradd command.
You need to display the various quotas on all your filesystems employing quota limits. Which of the following commands should you use? A. edquota -t B. quotaon -a C. quotacheck -cu D. quotacheck -cg E. repquota -a
E. repquota -a
The repquota -a command will display the various quotas on all your filesystems employing quota limits.
What drive and partition does the raw devices file /dev/sdb1 reference?
A. The first partition on the second SCSI storage device
B. The second partition on the first SCSI storage device
C. The first partition on the second PATA storage device
D. The second partition on the first PATA storage device
E. The second partition on the second SATA storage device
A. The first partition on the second SCSI storage device
Linux uses the /dev/sdxx format for SCSI and SATA raw devices. The device is represented by a letter, starting with a, and the partition is represented by a number starting at 1.
What tool creates a logical volume from multiple physical partitions? A. mkfs B. pvcreate C. lvcreate D. fdisk E. vgcreate
C. lvcreate
The lvcreate program creates a logical volume from multiple partitions that you can use as a single logical device to build a file system and mount it to the virtual directory.
Which of the following can be used as backup utilities? (Choose all that apply.) A. The gzip utility B. The zip utility C. The tar utility D. The rsync utility E. The dd utility
B. The zip utility
C. The tar utility
D. The rsync utility
E. The dd utility
A system administrator has created a backup archive and transferred the file to another system across the network. Which utilities can be used to check the archive files integrity? (Choose all that apply.) A. The rsync utility B. The md5sum utility C. The sftp utility D. The scp utility E. The sha512sum utility
B. The md5sum utility
E. The sha512sum utility
Both the md5sum and sha512sum utilities produce hashes on files, which can be compared to determine if file corruption occurred, such as when transferring a file over the network.
What tool should you use to install a deb package file? A. dpkg B. tar C. gcc D. rpm E. gzip
A. dpkg
The dpkg program is used for installing and removing Debian-based packages that use the DEB file format.
What tool do you use to install an RPM package file? A. dpkg B. tar C. gcc D. rpm E. gzip
D. rpm
The rpm program is used for installing and removing Red Hat-based packages that use the RPM file format.
The lsmod utility provides the same information as what other utility or file(s)? A. The modinfo utility B. The /proc/modules file C. The /etc/modules.conf file D. The insmod utility E. The /run/modprobe.d/*.conf files
B. The /proc/modules file
has the same information that is displayed by the lsmod utility (though the lsmod utility formats it much nicer).
Which utility should be used to remove a module along with any dependent modules? A. The rmmod utility B. The modinfo utility C. The cut utility D. The depmod utility E. The modprobe utility
E. The modprobe utility along with its -r switch is the utility to employ for removing (unloading) a kernel module along with any of its dependencies.