Linux Practice Questions and Quizzes

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which of the following man page sections shows a list of options available for a Linux command and explains what the options do?

DESCRIPTION

You are editing the /etc/default/grub file. Which option should you use to set the default operating system?

GRUB_DEFAULT=

Move the cursor one space to the left.

H

Which of the following commands configures the shell to retain 300 recently used commands in the ~/.bash_history file for multiple shell sessions?

HISTFILESIZE=300

Which environment variable affects the number of past commands stored in memory in the current shell session?

HISTSIZE

____ are the most common hardware component to fail on Linux systems.

Hard disks

Which of the following situations is most likely to cause a dependency problem?

Installing two different packages that both include /usr/lib/graphlib.

If an attacker boots into single user mode, they are logged in automatically as the root user without being required to enter the root password. Which of the following is the BEST measure should you take to prevent this event from happening?

Set a bootloader password.

You have a system with more than one Linux operating system installed. During the system's bootup process, which component loads a splash screen, allowing you to choose which operating system you want to run?

The secondary boot loader

Which of the following lines in the /etc/cups/cupsd.conf file will configure CUPS to listen for print jobs coming in on the server's network interface with the IP address 192.168.0.1 through the IPP port?

Listen 192.168.0.1:631

Users are complaining that the clocks for their operating systems do not match the current time for the location in which they live. Which of the following server roles is BEST for correcting this issue?

NTP

Which remote desktop technology offers access from most common platforms such as Linux, Windows, Mac, iOS, Android, and Rasberry?

NX

Resolves (or maps) the fully qualified domain names (FQDNs) to IP Addresses.

Name server

Can LILO boot a Windows kernel directly?

No

Can the redirection shell metacharacter be used to redirect between a command and another command?

No

Can the usermod command be used to modify the password expiration information stored in /etc/shadow?

No

Did older Linux systems store encrypted passwords in the /etc/shadow file?

No

Does a negative nice value give a process a greater chance of a lower priority?

No

Does the tar utility compress files inside an archive?

No

If a device is mounted to a directory that contains files, can those files be accessed before the device is unmounted?

No

Is ext3 the traditional filesystem used on Linux?

No

When implementing possible solutions to a problem, should you apply all of the changes simultaneously?

No

apm files are found in /var/log directory

No

In which boot process stage is the root partition mounted?

OS kernel

Which component is responsible for loading and executing the initial process?

OS kernel

In this lab, select View Lab and type uptime -h to find the correct option to answer the following questions:

On which date was the CorpData server started? 2019 01 10 What time was the CorpData server started on that date? 10:14

Which of the following statements best describes the effects of having only the gshant user account listed in the /etc/at.allow file?

Only gshant and root can use the at command.

A computer that provides indirect internet access to the computers in your network.

Proxy

Fault tolerant hard disk configurations are typically implemented by a(n) ____________________.

RAID

The most common package manager used by Linux systems today is the ____.

RPM

The ____ involves correcting problems when they arise during monitoring

Reactive maintenance

Which of the following functions does the dpkg --configure command perform?

Reconfigures an unpacked package

You obtain your applications and updates in RPM format. Which of the following distributions is your system based on?

Red Hat

What does the lprm command do?

Remove jobs from the line printer print queue.

Which of the following statements BEST describes the repeat key keyboard accessibility option?

Repeat keys affect how quickly the action associated with the key is repeatedly performed when the key is pressed and held down.

Which of the following systemd unit-specific sections describes how to manage services or applications on the server?

Service

Which of the following will prevent a user from booting a computer, booting from removable devices, and changing UEFI/BIOS settings?

Set a UEFI/BIOS password.

Which of the following is a valid metacharacter that can be used in the bash shell to escape or ignore the shell's special meaning for the character that immediately follows?

\

Which of the following nano editor keyboard shortcuts will display help text which includes a list of all keyboard shortcuts.

^G (Ctrl+G)

Which of the following commands can be used to combine the content of three files into a single text stream?

cat

Which of the following commands will display which boot options were given to the kernel at boot time?

cat /proc/cmdline

You need to get detailed information about the system memory. Which of the following commands will display that information?

cat /proc/meminfo

Which of the following commands sorts the contents of the wordlist1 and wordlist2 files and sends the result to standard output?

cat /usr/wordlist1 /usr/wordlist2 | sort

The easiest method for monitoring free space by mounted filesystems is to use the ____ command.

df

You are using the cupsctl command to configure the /etc/cups/cupsd.conf file. Which cupsctl option will enable sharing of the locally connected printer to other computers on the network?

--share-printers

The ____ option for the sar command is used to display swap statistics.

-B

Which useradd option displays the default values specified in the /etc/default/useradd file?

-D

To lock an account, you can use the usermod command with the ____ option.

-L

Which dpkg option completely removes a package and its configuration files?

-P

Which of the following dpkg options will install a package recursively?

-R

To identify any missing files in a package or package dependency, you can use the ____ option to the rpm command, followed by the name of the package.

-V

Which of the following repquota options will give quota limits and disk usage for all file systems listed in /etc/mtab?

-a

When used with the uncompress command, the ____ option displays the contents of the compress file to Standard Output.

-c

Your ext3 file system has experienced a significant amount of corruption. To examine the file system, you want to use the debugfs utility. Which of the following debugfs options should you use to examine the file system?

-c

To create or edit a user cron table, you can use the ____ option to the crontab command.

-e

To display an entire list of processes across all terminals and including daemons, you can add the ____ option to any ps command.

-e

To remove a package from the system, you can use the ____ option to the rpm command.

-e

According to the command help, which of the following options can be added to the killall command to kill a process group instead of just a process? Type killall -h or killall --help at the prompt to answer this question.

-g

Your system time is over thirty minutes different than the time on the NTP time provider. When you use the ntpd command, the time is not updated. Which ntpd option should you include?

-g

You are compressing a file with the tar utility, but you need to ensure you can uncompress the file with the bzip2 utility. Which tar option should you use during the file compression?

-j

You need to view the files within /home/gshant/expfile.bz2, but you want to leave the compressed file unchanged. Which bzip2 option should you use?

-k

The ____ option, when used with the gzip command, causes the compression ratio for files that have been compressed to be listed.

-l

To display a list of at Job IDs, you can specify the ____ option to the at command:

-l

When using the cpio utility, the ____ option causes a new archive to be created.

-o

The ____ option to the lpstat command causes a list of printers that are enabled to be displayed.

-p

When used with the tar utility, the ____ option causes filenames to be stored in an archive using absolute pathnames.

-p

You suspect your /dev/sda3 partition is in need of repair. Which of the following e2fsck options will repair the errors without any interaction from yo

-p

You are installing Linux on an old computer with an old BIOS, and you are planning the partitions for the hard disk drive. Which of the following directories SHOULD exist in the first 1024 cylinders of the hard disk drive?

/boot

Which directory contains the configuration file for GRUB 2? (Choose two.)

/boot/grub2/ /etc/default/

The GRUB2 configuration file (non-editable).

/boot/grub2/grub.cfg

You have installed a new Linux system and you want to make a baseline of system performance. Which of the following files contain baseline information? (Choose TWO).

/cpuinfo /meminfo

What is the file path and name of the directory that contains device files for hard drives, optical drives, and USB devices?

/dev

You are preparing to mount a device local to your system. Which directory holds the device files?

/dev

If you do not know the type, major, or minor number of a device, you can use the ____ program to re-create the device based on the common name.

/dev/MAKEDEV

You need to configure your Linux system to allow only the root user account to mount the CD-ROM device. Which of the following options should you add to the /etc/fstab file?

/dev/cdrom /media/cdrom -t iso9660 ro,nouser,noauto

You are managing system time on your Linux computer, and you need to change the settings to point to a local NTP server IP address. What is the full path and filename of the file you should edit?

/etc/ntp.conf

All users at your site are using the bash shell. You want to set a variable that will apply to every user and always have the same value. Which of the following shell configuration files should you place this variable in?

/etc/profile

The ____ environment file is always executed immediately after login for all users on the system, and sets most environment variables, such as HOME and PATH.

/etc/profile

After the entries in /etc/inittab have been executed, the ____ file is executed to perform tasks that must occur after system startup.

/etc/rc.d/rc.local

The skeleton directory on most Linux systems is ____.

/etc/skel

What is the full path to the directory that contains a set of configuration file templates that are copied into a new user's home directory when it is created?

/etc/skel

What is the full path and filename of the file you should use to configure the hardware clock to use UTC automatically?

/etc/sysconfig/clock

Which of the following directories MUST remain on the same partition? (Select THREE).

/sbin /lib /dev

What is the full path to the directory that contains information about each kernel module installed on the computer?

/sys/module

Which of the following directories typically hold the dynamic libraries on your system? (Select TWO).

/usr/lib/ /usr/local/lib/

Which of the following is the full path and filename of the file that contains information about which interrupt request (IRQ) channels are being used by each hardware device on the system?

/proc/interrupts

What is the full path to the directory that holds the man files on the system?

/usr/share/man

You need to set the system date and time using the date command. Which date option should you use?

/usr/share/zoneinfo

What is the complete path to the directory that will hold the crontab file for the gshant user account?

/var/spool/cron/

A Linux system in runlevel ____ is a system that has no daemons active in memory and is ready to be powered off.

0

During installation, you must create a root user account for the system. Which of the following user account number does this account use?

0

Processes are started with a nice value of ____ by default.

0

What is the default nice value for a process not executed with the nice command?

0

stdin is represented by the number ____.

0

What is the typical default umask value?

022

Which of the following hexadecimal codes represents an extended partition?

0x85

RAID level ____ is often referred to as disk mirroring.

1

Match the term on the left with its characteristic on the right. (Each term can be used more than once.)

1Has a .so or .so.version extension. Dynamic Library Increases the size of the application. Static Library Has an .a filename extension. Static Library Is typically stored in /usr/lib/ and /usr/local/lib/. Dynamic Library Can degrade program load time if the library is already in use by another program. Dynamic Library

If a Linux installation ends abnormally and the screen displays a "fatal signal ____" error message, it indicates an error known as a segmentation fault.

11

Which of the following is the maximum number of GUID partitions that can be created using the gdisk utility?

128

Most Parallel SCSI controllers today support up to ____ devices.

15

In Linux, runlevel ____ is also known as multiuser mode.

2

Which of the following directories is the home directory for the root user account?

/root

For Linux files, the default permission is 666, and the default umask is 022. When a new file is created, it will be assigned 644 (rw-r--r--) permissions. If the umask is set to 027, what permissions will be assigned for newly created files?

640 (rw-r-----)

You are called into the office of a newly hired manager. He has copied a file from his old place of work onto his new workstation, but is now receiving an error message that access is denied each time he tries to access the file. He is not the owner of the file or a member of the group the file is associated with. Which of the following represents the LEAST set of file permissions needed for him to be able to read and write to the file?

666

The highest priority SCSI device is given a SCSI ID of ____.

7

You have a Linux system with 8 GB of RAM installed. You plan to use this system as a server. How much space should you plan to partition for the swap file?

8 GB

You can perform up to ____ different incremental backups using the dump/restore utility.

9

After opening a file in vi, you want to switch from Command Mode to Command Line Mode. What key invokes Command Line Mode?

:

You need to create a symbolic link to the /usr/share/zoneinfo/EST time zone file that permanently alters the time zone for the system. What should you enter at the command prompt to accomplish this task?

ln -s /usr/share/zoneinfo/EST /etc/localtime

You need to view the contents of the /home/jerrys directory. What would you enter at the command prompt to show all the contents, including hidden files and directories?

ls -a /home/jerrys

Which of the following commands displays an expanded listing that includes the owner and size of all the files in the /etc directory?

ls -al /etc

A directory intended to be used only by administrators keeps filling with files. Which of the following commands would you use to see only the names of the users saving files in the directory?

ls -l | cut -d " " -f5

A user attempts to view the contents of a directory, but the output of the ls -l command scrolls beyond the limit of one console window. Which of the following commands would allow the users to see the full listing of the directory?

ls -l | less

Ann, a Linux script developer, is trying to debug a shell script that has the command ls -s in it. She suspects that an error is occurring, and she wants to send the results of the operation and any errors to a file named ~/Friday in order to examine it later. Which of the following commands should she use?

ls -s &> ~/Friday

You want to archive some configuration files to the floppy drive. You are using the cpio utility. Which line will create the archive on the floppy?

ls /etc/*.conf | cpio -ovd > /dev/rfd0

Which of the following commands will display the attributes of a /boot/grub/grub.conf file?

lsattr /boot/grub/grub.conf

To see a list of modules that have been inserted into the Linux kernel, you can use the ____ command.

lsmod

Which command displays information about all loaded modules on the system?

lsmod

Anna is attempting to unmount the mount point /mnt/data. The umount command failed and displayed error message stating that the device is busy. Anna suspects there my be an open file causing the issue. Which of the following commands will show Anna a list of open files?

lsof

The /sbin/grpck process is not responding and needs to be killed. There are multiple instances that were spawned and need to be terminated. Which of the following commands will terminate all instances of the grpck process?

pkill -SIGTERM -f grpck

The group that is made the group owner of any file or directory that the user creates.

primary group

Which command displays all the environment variables defined in the shell?

printenv

A graphical utility used to configure printers on the system. ____________________.

printer configuration tool

In the output of the ps -l command, the ____ column is the most valuable to systems administrators because it indicates what the process is currently doing.

process state

You have recently answered calls from a number of users who cannot access the mail server. Which utility would you use to quickly see if the sendmail service is running?

ps

You want to view all currently-running processes that include getty in the process name. Which command would you use?

ps -A | grep getty

Which command displays all the processes that are running in the most detail?

ps -ef

Which command displays the PPID?

ps -f

Which of the following commands initializes a physical volume?

pvcreate

You have added a third hard disk to your Linux system. What command would you use to initialize a physical volume on this disk for later use by the Logical Volume Manager?

pvcreate /dev/sdc

You are using LVM on your Linux system to manage hard disk partitions. What command do you enter to scan for physical volumes on the system?

pvscan

You are an IT consultant for a small company. The company wants to increase the security of their small network. You want to move their passwords from the /etc/passwd file to the /etc/shadow file. Which of the following utilities will BEST accomplish this task?

pwconv

The /home/gshant/smp directory is empty and needs to be removed. The current working directory is /home/gshant. What would you enter at the command prompt to remove the smp directory?

rmdir smp

The ____ filesystem contains most of the operating system files.

root

Which sed flag or option allows you to exchange one string of characters for another string of characters in a file?

s

The ____ log file contains information and error messages regarding network access generated by daemons such as sshd and xinetd.

secure

Which of the following utilities will substitute an existing string with a new string within a file?

sed

Which of the following sed commands replaces all the occurrences of the string foo with the string bar in myfile.txt?

sed -e 's/foo/bar/g' myfile.txt

You want to configure the NTP daemon to receive time from pool.ntp.org. What entry should you place in the /etc/ntp.conf file?

server pool.ntp.org

To see a list of the environment variables and their current values on a system, you can use the ____ command.

set

Which of the following command allows you to use an alternative superblock when the primary superblock has been corrupted?

e2fsck -b 16385 /dev/sda1

A technician recently added a new disk drive to a system, and the drive is not available. Which of the following commands scans the host bus adapter (HBA) and detects the newly added drive?

echo "- - -" > /sys/class/scsi_host0/scan

You recently used the HOST=FS4 command. Which of the following commands should you use to change the HOST variable to a global variable that will be inherited by subsequent child shells and processes?

export HOST

You need to find all files in the /home/gshant directory that are larger than 300K. You change your directory to /home/gshant. What would you enter at the command prompt to find these files?

find -size +300k

Which of the following commands finds all of the files on the system that have either blue or gold in their names?

find / -name '*blue*' -o -name '*gold*'

Which of the following commands finds files with the .txt extension in the /home/gshant directory?

find /home/gshant -name '*.txt'

You are working on a Linux distribution that uses systemd. Which non-symlink file in the /usr/lib/systemd/system/ directory is used to start the services necessary for multiple users, networking, and a graphical display?

graphical.target

Which of the following commands displays the user groups that dblair is a member of?

grep -e dblair /etc/group

Which of the following commands displays all the lines in the blue_and_gold file that do not contain the word 'Karen'?

grep -v Karen blue_and_gold

An application named ABCD is generating system errors when it starts. Which of the following commands searches the system message log file for these errors?

grep ABCD /var/log/messages

Which of the following commands displays all lines within the MTS file that have the word "world" within them?

grep world MTS

You are the administrator for a small company. You need to create a new group for users in the sales department. You need to name the group sales. Which command will accomplish this task?

groupadd sales

You have a group named temp_sales on your system. The group is no longer needed, and you want remove the group. Which of the following is the BEST command for accomplishing this task?

groupdel temp_sales

You are working with the RPM package acroread-8.1.3-51.6.i586.rpm. Match the naming convention term on the left with the associated file name segment on the right.

i586 Architecture type 8.1.3 Version number acroread Package name 51.6 Release number

Which of the following commands displays all of the shared library information for the /bin/bash executable?

ldd -v /bin/bash

Which YUM option displays whether updates are available for RPM packages?

list updates

Which of the following DNF options will display whether updates are available for RPM packages?

list updates

What commonly predefined alias is configured to run the ls -l command?

ll

Leroy needs to create a link to a file in the /opt/corp directory that points to the original file in /usr/bin directory. The file is named "scrub". The /opt directory is on a separate physical drive with a separate file system than /usr/bin. Which of the following commands will work?

ln -s /usr/bin/scrub /opt/corp/scrub

You need to restore a file, yearend.xls, from the archive 013004.tar.gz in the backup directory. The file needs to be restored to /home/accounting. Which command will perform the restore?

tar -xzvf /backup/013004.tar.gz /home/accounting/yearend.xls

The ____ filesystem is used by software programs that write to a CD-R, CD-RW, or DVD.

udf

A user calls the help desk. Each time he creates a new text file, permissions of 640 are applied to the file, and he must use chmod to set them to 644. What command should you enter in the user's profile to set the default permission for newly created files to 644?

umask 0022

Partition /dev/sdb2 is mounted to /mnt/temp. You need to unmount /dev/sdb2. Which commands would you use? (Select TWO). (Each option is a complete solution.)

umount /dev/sdb2 umount /mnt/temp

You have just created the lsmith user account and need to assign this new user to the secondary groups admin and acct. Enter the command you would use to add lsmith to the admin and acct secondary groups.

usermod -G acct,admin lsmith

You have performed an audit and have found active accounts for employees who no longer work for the company. You want to disable those accounts. Which command example will disable a user account?

usermod -L joer

You have users who need to do some programming projects in the Python programming language. What yum command should you use to find out if there is a python package available to install on the Linux server?

yum list python

You have installed a package called mathpac with yum. After a system upgrade, the package correctly. Which command should you try first to get the package to work?

yum update mathpac

Which of the following is the BEST command to use when creating a disk image?

dd

Which utility allows you to make an exact copy of a file?

dd

The script that identifies kernels on the root device and creates menu entries.

10_linux

There are ____ different kill signals that the kill command can send to a certain process.

64

Which of the following desktops is the default for many Linux distributions, such as Fedora and Ubuntu?

GNOME

In the /etc/shadow file, which character in the password field indicates that a standard user account is locked?

!

A friend sent you a shell script file that is 117 lines long. He says that he wants you to examine code on lines 82 through 87. What command would you enter while in vi Command Mode to go directly to line 82?

#82

In the /etc/shadow file, which character in the password field indicates that the password is an encrypted entry?

$

You need to identify which user accounts on the Linux system have encrypted passwords. Which character in the password field of the /etc/shadow file indicates that an encrypted password is set for the user account?

$

When killing a background job with the kill command, you must prefix the background job IDs by a(n) ____.

%

When you append a(n) ____ to a command, the command is run in a background process.

&

When there are multiple background processes executing in the shell, the jobs command indicates the most recent one with a(n) ____ symbol.

+

Before you install an RPM package, you want to verify the authenticity of the package and check the digital signature to ensure that it has not been altered. Which rpm option should you use?

--checksig

You have a critical file called yearend.xls. You have set the file permissions so that only the owner of the file can modify it and only group owners can read it. Which of the following file listings show that you have set the permissions correctly?

-rw-r----- 1 george acctg 26256 June 1 04:16 yearend.xls

You have an application whose owner is root, but you want all users to execute the application with root user permissions. Which of the following examples shows correct usage of the SUID flag?

-rwsr--r-- 3 root sys 73748 Nov 2 2005 /usr/bin/applicationx

You have an application whose group is sys, but you want all users, whether or not they are members of the sysadmin group, to execute the application with sysadmin group permissions. Which of the following examples shows correct usage of the SGID flag?

-rwxr-sr-- 3 root sysadmin 73748 Nov 2 2005 /usr/bin/applicationx

Which hwclock option sets the system time to the current hardware clock time?

-s

You need to set the system date and time using the date command. Which date option should you use?

-s

To format a filesystem with a specified filesystem type, you can use the ____ option with the mkfs command.

-t

You want to use the date command to set the system time UTC time. Which date option should you use?

-u

Which lpr option should you use to change the page width of the print job?

-w

The ____ option can be used with the tar command to extract a specified archive.

-x

A Linux user has an executable file named ni that can save a snapshot of network information with the date and time in a log file. The executable ni file is in the /root directory, and /root is the current working directory. Which of the following commands would run the executable file? (Select TWO).

./ni and /root/ni

When using the compress utility, each file is renamed with a(n) ____ filename extension to indicate that it is compressed.

.Z

A user has requested that each time she presents credentials to log in, a particular entry be written to a log file. This action will only apply to her, and she is using the bash shell. Which of the following configuration files is the BEST to modify to enable this action?

.profile

Packages in the Red Hat Package Manager format have filenames that indicate the hardware architecture for which the software was compiled, and end with the ____________________ extension.

.rpm

During installation, you need to make sure there is plenty of hard disk space allocated to the partition that is going to hold the entire Linux operating system. Which of the following is the BEST mount point for this partition?

/

Which of the following paths represents the root directory?

/

What command would you enter while in vi command mode to find the term Sam?

/Sam

The /etc/shells file contains a list of shells that are available on the current system. Type cat /etc/shells at the prompt to answer the following question: Which of the shells listed below is not available on the system?

/bin/ksh

The Linux kernel is stored in the ____ directory.

/boot

The ____ device file represents the first primary partition on the second IDE hard disk drive (primary slave).

/dev/hdb1

Type the full device file name for the second partition on the hard drive with the lowest ID number.

/dev/sda2

The ____ device file represents the second serial port on the system (COM2).

/dev/ttyS1

If your system uses the X.org implementation of X Windows, the mouse, keyboard, monitor, and video adapter card information is stored in the ____ file in text format.

/etc/X11/xorg.conf

What is the full path and filename of the file that is used to schedule tasks for the anacron daemon?

/etc/anacrontab/

You want to keep the gshant user from using the at command. What is the full path and filename of the file you should edit?

/etc/at.deny

Which file should you edit if you want to permit specific users to edit their respective crontab file, but deny all other users on the system from editing their crontab file?

/etc/cron.allow

You want to keep the gshant user from editing his respective crontab file in /var/spool/cron, but still allow all other users on the system to edit their respective crontab file. What is the full path and filename of the file you should edit?

/etc/cron.deny

Which file should you edit to schedule a task to execute every week on Saturday?

/etc/cron.weekly

The GRUB2 configuration file (editable).

/etc/default/grub

What is the full path and filename of the GRUB 2 file that is used for editing the default behavior of the bootloader menu?

/etc/default/grub

You need to change the default home directory value, which is used by the useradd utility when creating a user account. What is the full path and filename of the file you should edit?

/etc/default/useradd

What is the full path and filename for the DNF configuration file?

/etc/dnf/dnf.conf

What is the full path and filename of the file that contains the file system table for a Linux system?

/etc/fstab

You have added several new hard disks to your system. After partitioning and formatting, you have modified a configuration file to mount these new file systems automatically. You want to document the change you made. Which of the following configuration files would you document?

/etc/fstab

You need to implement disk quotas on your Linux system. You need the quotas on the / directory. What is the full path and name of the file that must be edited to implement quotas for users and groups?

/etc/fstab

You want to mount a number of file systems each time the system is brought up. Which configuration file should hold the configuration information for the file systems to be mounted?

/etc/fstab

A file contains the following entry: sales:x:1001:pclark,mmckay,hsamson Which of the following files contains similar entries?

/etc/group

The GRUB2 directory for script files.

/etc/grub.d/

You have GRUB2 installed on your Linux workstation. You need to make changes to the boot menu. Which files and scripts can you edit to modify the menu entries and behavior of the boot menu? (Select TWO.)

/etc/grub.d/40_custom /etc/default/grub

Anna, a system administrator, wants to prevent users from pressing the Ctrl+Alt+Delete key combination to reboot the server. Which configuration file should be modified to change this setting?

/etc/inittab

What is the full path and file name for the file that contains a colon-, space-, tab-, newline-, or comma-delimited list of directories in which to search for libraries?

/etc/ld.so.conf

Your Linux system uses the Line Printer Daemon (LPD) to manage print jobs. What is the full path to the file you should use to edit the LDP configuration?

/etc/lpd.perms

The file used to load and alias modules at system initialization.

/etc/modprobe.conf

Which file shows the currently mounted volumes?

/etc/mtab

Which of the following directories MUST be part of the partition that holds the root (/) directory? (Select THREE).

/proc /etc /bin

If a systemd system is configured to use multi-user.target as the default boot target, which file has a symbolic link (symlink) to the multi-user.target file?

/etc/systemd/system/default.target

What is the full path to the directory on a Linux system that contains multiple files and directories used for selecting a time zone?

/etc/timezone

What is the full path to the directory that allows you to name devices when they are connected to the system?

/etc/udev/rules.d/

What is the full path and file name for the YUM configuration file?

/etc/yum.conf

When managing DNF, what is the full path to the directory where should you place .repo files?

/etc/yum.repos.d

When managing YUM, what is the full path to the directory where you should place .repo files?

/etc/yum.repos.d

What is the full path to the directory that contains user data for all standard users on the system?

/home

You are in the process of manually creating the partitions during a Linux installation. Knowing that users will often require a lot of space to store their files, which of the following directories (or mount points) SHOULD be configured on its own partition?

/home

For which of the following directories should you create separate partitions? (Select TWO).

/home /var

Which of the following directories is specified by Filesystem Hierarchy Standard (FHS) as a mount point for removable media, such as USB storage media, DVDs, CD-ROMs, and Zip disks?

/media

According to the Filesystem Hierarchy Standard (FHS), which of the following directories contains information about the system state and processes?

/proc

To verify hardware settings, you can examine the contents of the ____ directory.

/proc

What is the full path to the directory that contains information about the system state and processes?

/proc

If not cleared out, log files can eventually consume a large amount of data, sometimes filling a drive to its capacity. If the log files are on the same partition as the operating system, this could potentially bring down a Linux computer. Which of the following directories (or mount points) SHOULD be configured on its own partition to prevent this from happening?

/var

What is the full path to the directory that contains data files that change constantly, including email, print jobs, and proxy cache files?

/var

Most Linux distributions propose to create the root (/) and swap partitions by default. To prevent user files and system log files from filling up the / partition, which additional partitions are you MOST strongly advised to create? (Select TWO).

/var /home

Log files are typically stored in the ____ directory.

/var/log

The directory that contains most system log files.

/var/log

anacron creates a timestamp file that tells you the last time a regularly scheduled job was run. What is the full path and name of the directory that contains these timestamp files?

/var/spool/anacron/

By default, sar commands are scheduled using the cron daemon to run every ____ minutes in Red Hat Fedora Linux.

10

During a Fedora distribution installation, you choose to add a regular user account. The only other user that has been added to the system was root. Which of the following user IDs is MOST likely to be associated with the new user?

1000

Given this entry in the /etc/passwd file: pmallory:x:1001:1050:Paul Mallory:/home/pmallory:/bin/bash Which of the following is the user ID associated with this entry.

1001

Which of the following is the maximum number of primary partitions that can be created on a single hard disk drive?

4

The script file that allows menu entries to be modified.

40_custom

Which of the following sets of octal permissions would allow everyone to execute the following file as if they were the root user? -rwxr-xr-x 1 root root 8045 July 24 2018 myscript

4755

RAID level ____ is most commonly referred to as disk striping with parity.

5

You are editing the crontab file and want an entry to run every hour at five minutes past the hour. Which of the following entries will accomplish this task?

5 * * * * /home/emmett/example.sh

If no level of compression is specified, the gzip command assumes the number ____.

6

The average compression ratio for gzip is ____%.

60-70

As an administrator, you are tasked with configuring an Apache web server by modifying the /etc/apache2/apache2.conf file. You open the file in vi. As you're looking at the file, you knock your spill-proof drink container onto the keyboard. It rolls over several keys as you try to pick it up. Now there are extra characters everywhere in the text buffer. Which of the following commands can you use to exit vi without saving any changes that were made to the text buffer?

:q!

You can redirect a file to the Standard Input of a command using the ____ metacharacter.

<

Which of the following vi key combinations should you press while in Insert Mode to save the file you are working on and quit?

<Esc>:wq

You can use the BASH shell to redirect Standard Output and Standard Error from the terminal screen to a file on the filesystem using the ____ shell metacharacter followed by the absolute or relative pathname of the file.

>

Which of the following statements best describes the function of the repquota /home -vu command?

A summary of disk usage and quotas is displayed for the users who have files within /home.

Which of the following actions can be used to define a persistent alias?

Add the command defining the alias to the appropriate shell configuration file.

Gloria, a Linux administrator, used the gdisk utility to create eight partitions on a new hard drive. Which of the following BEST describes the partitions Gloria has created?

All eight partitions are the same. They are simply partitions. There are no primary, extended, or logical partitions.

Which of the following actions does the dpkg -l (lowercase L) command perform?

All packages with names that match a specified pattern are displayed.

Which of the following is displayed when the uname -a command is run?

All system information

Match the correct term on the left with the definition on the right.

Allows processes to communicate with each other and notify them of new hotplug devices D-Bus 2 Provides all applications with data about current hardware hald 3 Dynamically creates device files in a virtual file system as devices are added and removed /udev 4 Exports information about hotplug devices so that other utilities can access the information sysfs

Tom, a Linux administrator, has installed a new hard disk. He creates two primary partitions, sdb1 and sdb2, and one extended partition, sdb3. He formats sdb1 with ext3 and sdb2 as a swap area. When Tom attempts to format sdb3 as a swap area, he is unable. Which of the following explains why Tom can't format sdb3?

An extended partition can't be formatted.

What is the correct order for the boot phases of a Linux computer?

BIOS, Boot loader, OS Kernel, Init

Tim, a system administrator, wants to simplify the provisioning and disabling of user accounts. Which of the following server roles should Tim install and configure?

Authentication server

Which system component verifies the hardware and passes control of the computer to the boot loader?

BIOS

You have an anacrontab file with the following settings: RANDOM_DELAY=35 START_HOURS_RANGE=17-23 #period in days delay in minutes job-identifier command1 5 cron.daily nice run-parts /etc/cron.daily7 20 cron.weekly nice run-parts /etc/cron.weekly@monthly 50 cron.monthly nice run-parts /etc/cron.monthly

Between which hours of the day will tasks scheduled with anacron start to run? Between 5:00 p.m. and 11:00 p.m. If the system was down during the time period a weekly task was scheduled to run, what is the minimum amount of time anacron will wait, after the system is back up, before running the task? 20 minutes If the "delay in minutes" for daily tasks is 5 minutes, how much time will anacron add to the delay of 5 minutes before it runs the scheduled daily task? A randomly chosen number of minutes between 0 and 35

As a network administrator, you have had several users ask for a way in which they could connect their phones to their Linux computer, without the use of wires. Which of the following device types would BEST meet these user's needs?

Bluetooth

Which of the following describes the difference between the /lib/modules directory and the /usr/lib/modules directory? (Choose TWO).

Both directories contain hard links to the kernel modules. /lib/modules is available to root in single user mode, while /usr/lib/modules is available to all users.

A user sends two print jobs to the Marketing printer (the default printer). She notices the printer is stalled on the first document and uses the lprm - command. What will be the result?

Both of her jobs will be deleted.

You have a user who has difficulty typing. She is constantly pressing keys multiple times by accident. Which keyboard accessibility option should you enable?

Bounce keys

Your company recently setup a VPN and wants to use a digital certificate for authentication instead of a pre-shared key. Which of the following server roles would allow the company to provide this functionality internally instead of using an external provider?

Certificate Authority

You are asked to help a user who is complaining that file system errors are being reported during boot-up. When you reboot the user's system, you see errors on sda2. Which of the following strategies will check the file system on sda2 and fix the errors?

Change to single user mode and run fsck /dev/sda2.

Which of the following desktops was derived from GNOME 3, follows traditional desktop metaphor conventions, and is the primary desktop environment for the Mint distribution?

Cinnamon

Your company is running a critical business application. The executive team wants to ensure the server is available at all times, even in the event of a server failure. Which of the following server roles would be used to provide a failover server in the event of a system failure?

Clustering

Which of the following device categories do RAM chips, CPUs, expansion cards (such as PCI cards), and standard hard disk drives belong to?

Coldplug devices

The vi mode that works with the file system. Use it to save files after editing them.

Command Line Mode

The initial vi mode used when vim is started. It has commands that cut and replace text, and it is the mode vi uses to enter the other modes.

Command Mode

Your company develops applications to run on Linux systems. You currently have four teams working on a different aspect of the same application. Which of the following server roles would give you the BEST method for testing all team members' code without affecting your part of the project or your operating system and personal files?

Containers

Which of the following describes the effects of the tune2fs -j /dev/sdb1 command?

Converts the /dev/sdb1 device to ext3.

Which of the following steps must be completed after creating a logical volumes so that the logical volume can be used to store files?

Create file systems on the volumes and mount them.

The graphics driver was recently updated on a system. Now, the graphical user interface (GUI) is not displaying, preventing the user from logging in. You need to access the system locally to login. Which of the following commands will access the virtual terminal tty2?

Ctrl+Alt+F2

While editing a script using gedit, you discover that you no longer have access to your current terminal session and need to check the values of some variables the script is using. Which of the following commands will send the gedit process to the background so you can regain access to the current terminal?

Ctrl+Z

Which of the following daemons allow processes to communicate with each other and relay information about hotplug devices?

D-Bus

A Linux ____________________ command that can be used to write image files to device such as a USB flash memory drive or hard disk .

DD

Users are complaining that they are unable to connect to any servers or the internet. Based on the symptoms they describe, you suspect that the users are not being assigned the correct IP addresses. Which of the following server roles would be the BEST role to work with to correct this issue?

DHCP

Alex, a webmaster, is implementing an order processing system on the company's website. Which of the following server roles should Alex implement with the order processing application?

Database

After running ps -ef, you notice a number of processes that display getty. You are not familiar with that process and want to make sure it is not malicious, so you check the man pages and find that is a valid Linux process that manages physical or virtual terminals (TTYs). What should you do NEXT?

Determine the process is not a concern.

Match the correct /proc directory content on the left with the description on the right.

Displays the boot options that were given to the kernel at boot time cmdline Displays information about the computer's CPU cpuinfo Displays information about the current kernel version version Displays all the direct memory access assignments for the computer dma

Which of the following is a characteristic of a symbolic link?

Distinct (non-duplicate) inode.

____ the system information that is stored in a log book for future reference.

Documentation

You have found a patch for the Samba server on your system. The patch is a .rpm package. Which of the following procedures is the MOST correct for installing the package?

Download the package. Run rpm -Uvh on the package to install the update.

Yesterday, you created a new swap area for your system. Today, after rebooting the system, you find that the swap area is not mounted. What should you do to ensure that the swap area is mounted each time the system boots?

Edit /etc/fstab and add the swap partition.

The vi mode that vim uses to write and edit text in the file.

Edit Mode

You have a dual-boot system with a Linux and Windows operating systems. You need to configure the GRUB 2 bootloader to display the menu for 12 seconds before it automatically boots the default operating system. Which of the following is the BEST first step to configure the bootloader?

Edit the timeout parameter in the /etc/default/grub file to say GRUB_TIMEOUT=12.

Manages intelligent devices, such as automation and control equipment.

Embedded Linux

You have just installed a new Linux system, which is using the Wayland system. Which of the following is a VALID statement regarding this system?

Events captured from the keyboard are sent to the Wayland compositor and then the Wayland client, where the rendering takes place.

A value of 0 for a process priority indicates low priority.

False

Almost all hardware problems are the result of damaged hardware.

False

Floppy disks are typically mounted automatically to the /mnt/floppy directory when you access the floppy disk using a GUI environment.

False

Given the syntax command && command, the command on the left of the && construct is executed only if the command on the right of the && construct completed successfully.

False

IDE hard disk drives typically have faster data transfer speeds, and usually connect to the mainboard via a controller card inserted into an expansion slot.

False

In a decision construct you can have an unlimited number of if statements.

False

Log files can become very large over time. To save space on the filesystem, the system archives old copies of these log files in the /proc directory.

False

On most Linux systems, the logrotate utility is automatically scheduled to run weekly.

False

The BIOSes on different computers are generally very similar or exactly the same.

False

The init daemon has a PID of 0.

False

The most common medium used to back up data on Linux systems is CD-RW/DVD-RW.

False

The mpstat utility measures the flow of information to and from disk devices.

False

To prevent a file from being cleared by the BASH shell and append output to the existing output, you can specify three > metacharacters alongside the file descriptor.

False

You are required to choose the LILO boot loader during Linux installation.

False

Your company uses both Linux desktops and Windows desktops. Which of the following server roles should be used to provide a central location for users of both operating systems to share files?

File servers

Which accessibility options adjusts the background and text colors to improve readability?

High contrast

If you are viewing the contents of a man page, which key can you press to get back to the beginning of the page?

Home

Below are the IP addresses of the hops in the path between ITAdmin and the external DNS server on the internet, which has an IP address of 163.128.80.93. Drag the IP addresses listed on the left to the hops described on the right. Use only the addresses that belong to the routers that match the description. Not all of the IP addresses on the left will be used. Type traceroute 163.128.80.93 to identify the devices in the path between ITAdmin and the external DNS server

Hop 1: Default gateway for ITAdmin 192.168.0.5 Hop 2: CorpNet Main Router 198.28.56.1 Hop 3: Network Security Appliance 65.86.24.136 Hop 4: ISP Internet Router 65.86.1.1 Destination: External DNS Server 163.128.80.93

You are logged on as Will Adams (wadams), and your working directory is /home/wadams/. Type du at the prompt to answer the following questions.

How big is the /home/wadams directory? 100 K What is the largest directory in /home/wadams? ./.config What is the size of the ./.config/ibus/bus directory? 40 K

Type traceroute 216.48.8.6 to identify the devices in the path between ITAdmin and a remote computer on the internet that has an IP address of 216.48.8.6.

How many routers are in the path between ITAdmin and the remote computer? 6 What is the default gateway address for ITAdmin? 192.168.0.5 What is the IP address of the last router in the path between ITAdmin and the remote computer? 73.44.216.14

Type df -h at the prompt to answer the following questions:

How much space is used on /dev/sda2? 2.9G How much space is still available on /dev/sda2? 1.1G What percentage of space is used on /dev/sda1? 52%

You need the DNF utility to check specific URLs for RPM repositories. Which of the following locations should you add the URLs to?

In .repo files within the /etc/yum.repos.d/ directory.

Which of the following represent a typical Linux backup type? (Choose FIVE.)

Incremental Differential Snapshot Full Image

A Linux system can determine the time and date in which of the following ways? (Select TWO).

It can set the system clock to the local time. It can use NTP to set time.

Which of the following statements BEST describes the PATH environment variable?

It contains the directory prefixes used to search for programs and files.

Move the cursor down a line.

J

Move the cursor up a line.

K

Which of the following desktops emulates a Windows desktop, especially in the location of the menu options and bottom panel bar?

KDE

The two most common desktop environments that are used on Linux are the ____ and the ____.

KDE; GNOME

The ____________________ facility used by the System Log Daemon specifies messages from the Linux kernel.

Kern

Which of the following nano text editor features makes it easier for beginners to learn than the vi text editor?

Keyboard shortcuts are displayed at the bottom of the editor.

During the process of troubleshooting a resource issue on a server, the technician entered the following command and received the output showing zombie processes. [user@centos7]#ps aux |grep Z USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDljenkins 2346 0.0 0.0 0 0 ? Z 08:44 0:02 [kdmflush]ljenkins 3365 0.0 0.0 0 0 ? Z 08:64 0:14 [bioset]ljenkins 3812 0.0 0.0 0 0 ? Z 09:31 0:05 [bioset]ljenkins 4957 0.1 0.0 0 0 ? Z 10:16 0:35 [email-client]ljenkins 5276 0.1 0.0 0 0 ? Z 12:04 0:45 [email-client] What should the technician do NEXT to resolve the issue with zombie processes?

Kill the parent process.

Move the cursor one space to the right.

L

Defines every locale setting at once while allowing further individual customization via the LC_* settings.

LANG

You are trying to pipe data from the cat command to another program, but the data output does not make sense. You believe that the system's locale is corrupting the output. To test your hypothesis, you decide to change a locale environment variable. Which of the following changed variable would MOST likely produce correct data?

LANG=C

A special variable for overriding every other evironment setting. It sets all locales to the same setting.

LC_ALL

Which environment variable overrides all other locale settings and sets all locales to the same setting?

LC_ALL

Specifies personal name format.

LC_NAME

Which environment variable specifies additional directories to search for library files not listed in /etc/ld.so.conf?

LD_LIBRARY_PATH

Infrastructure as a Service (IaaS).

Linux and Cloud Computing

Used by Google on many of the physical products it sells.

Linux on mobile devices

Running Linux and Windows on the same physical computer.

Linux virtualization

Which of the following commands will display information about the RAID devices on the computer?

hwinfo --listmd

Increases response time to back-end servers by distributing the workload across the available servers.

Load balancer

Capturing a timeline of events that have taken place on the computer in the form of a file.

Logging

Utility used to back up and clear log files from entries stored in the /etc/logrotate.conf file and files stored in the /etc/logrotate.d directory.

Logrotate

Which of the following desktops were started by an Arch Linux user in response to the negative reception of GNOME 3 and continue to follow the GNOME 2 code base?

MATE

You attempt to unmount a volume using the umount /dev/sdd3 command, but you receive a device is busy error message. Which of the following strategies will be MOST likely to allow you to unmount the file system? (Select TWO).

Make sure your current directory is not on the file system and try to unmount again. Find and close any open files on the file system, and try to unmount again.

Which of the following methods should you use to configure dynamic libraries on a Linux system? (Select TWO).

Modify /etc/ld.so.conf to add the path of the libraries. Use the LD_LIBRARY_PATH environment variable to specify additional directories to search for library files.

Your company has been expanding the number of servers in the company's data center, and there is an increased need to gather metrics, watch process states, work with logs, watch services states and file system usage. Which of the following sever roles should be installed to provide this functionality?

Monitoring

____ the activity on which Linux administrators spend the most time, involves examining log files and running performance utilities periodically to identify problems and their causes.

Monitoring

You have a user who has difficulty using the mouse. Which of the following keyboard accessibility options would BEST aid this user?

Mouse keys

Which of the following is a free, open-source scriptable screen reader that works with the GNOME desktop?

Orca

View the contents of the /root/.bash_profile file. Type cat /root/.bash_profile at the prompt to answer the question. What is the last word in the file?

PATH

You want the directory /sbin/special to be include in the PATH environment variable. You also want to keep all the current directory entries currently in the PATH variable. Which of the following commands would you use?

PATH=$PATH:/sbin/special

Which of the following functions does the -d option perform when using the apt-get command to install a package?

Packages are downloaded to the system, but not installed.

Using the vi editor in Insert Mode, you made a few changes to the /boot/grub/grub.conf file. You now need to switch to command mode, save the changes, and quit. Which of the following keystrokes and commands should you use? (Select TWO.) (Each answer is a required part of the solution.)

Press the Esc key Type :wq

Which of the following server roles would you implement to provide services offered by CUPS and IPP?

Print server

The____ involves taking the necessary steps to minimize the chance of future problems or their impact.

Proactive maintenance

You have previously installed the package mplayer and wish to remove it from your computer. Which of the following removal methods should you use?

Run the command rpm -e mplayer.

When applications run into difficulties gaining resources during execution and stop functioning, restarting the process using a(n) ____ often solves this problem.

SIGHUP

You need to manage a process in the foreground by pressing Ctrl+C on the keyboard. Which signal code is sent to the process?

SIGINT

The ____ kill signal terminates a process by taking the process information in memory and saving it to a file called core on the hard disk in the current working directory.

SIGQUIT

A protocol used to communicate with and monitor network devices and servers.

SNMP

Which of the following provides a complete open-source solution for remote access to virtual machines?

SPICE

A protocol used to securely log on to remote systems using encryption.

SSH

As the IT administrator for a small corporate network, you periodically check the firewall configuration on the CorpData Linux server to make sure everything is secure. In this lab, select View Lab and type iptables -L at the prompt to answer the following question: Which two TCP services have been allowed through the firewall?

SSH and HTTP

You have just installed a new program that will be used by all users on the computer. After installation, you log in as a regular user, and you try to run the program. The program stops and displays the following error: Error: not running as root What should you do so that all users can run this program?

Set the SUID on the program.

For what purpose would you edit the /etc/localtime file?

Set the current time zone.

You have a systemd Linux system that is configured to boot into the graphical.target by default. The system seems to be running much slower than normal. You need to reboot the system, but you want it to boot into a single-user target unit with no network access so you can perform troubleshooting tasks and get the system running normally again. What should you do before you reboot?

Set the default boot target to rescue.target.

Setting the SUID flag is a powerful and useful feature. It can have weaknesses associated with its use. Which of the following statements identifies a weakness?

Setting the SUID flag for an application or process owned by the root user is a potential security hole.

____ of the GRUB boot loader typically resides on the Master Boot Record.

Stage 1

Your system is currently running the multi-user.target. You want to enable bluetooth.service to run when graphical.target is loaded. There are two commands you must enter from a command prompt to accomplish this task. Drag the commands on the left to the appropriate step number on the right. Not all of the commands on the left will be used.

Step One systemctl isolate graphical.target Step Two systemctl enable bluetooth.service

Which of the following special permissions prevents a file's deletion by anyone except the file's owner?

Sticky bit

Which of the following is the primary role of a mail transfer agent (MTA)?

Store messages so they can be downloaded or send email to a destination MTA.

A user type has the following qualities: Created by default during the Linux installation Used by the system for specific roles Not used to log into the system Which of the following user types has these qualities?

System or service user

Which of the following statements BEST describes the effects of the split -50 -d -a 3 AllNames FiftyNames- command if there are 103 lines and 240 bytes in the file?

The AllNames file is split into three files containing 50 lines or less. The output is FiftyNames-001, FiftyNames-002, and FiftyNames-003.

Which of the following statements BEST describe the purpose of the Filesystem Hierarchy Standard (FHS)? (Select TWO).

The FHS allows software installation routines to predict where to place configuration files. The FHS allows users to predict where to find system configuration files.

Which of the following BEST describes the role of the Linux desktop?

The Linux desktop adds a series of tools and utilities to make the GUI useful.

Mario, a technician, executed pgrep -u sally and received the following result: 1036 Which of the following describes the result?

The process ID of the process that was executed by the user sally.

Which of the following describes the effects of the ls -l /usr/bin >> /tmp/list.txt command?

The contents of the /usr/bin directory are written to a file named /tmp/list.txt. Previous file contents are kept, and the new information is added at the end of the file.

What does the -M switch do when used with the useradd command? Type useradd -h or useradd --help at the prompt to answer the question.

The home directory is not created, regardless of system settings.

Which of the following has a process ID (PID) of 1?

The initial process

The ls command in the current working directory gives the following listing: lrwxrwxrwx 1 root root 4 2010-11-05 mydata -> shantsgems-rwxr-xr-x 1 root root 382 2010-10-05 shantsgems Which of the following is true of the files in this listing?

The mydata file is a symbolic link to the shantsgems file.

You are viewing the /etc/passwd file, and you notice the following entry: pclark:x:1001:1001:Petunia Clark:/home/pclark:/bin/bash What statement BEST describes this entry?

The pclark password is stored in the /etc/shadow file.

Ted, a Linux user, creates symbolic links in his home directory to a set of files in their /data directory using the ln -s command. Later, a system administrator deletes the files in the /data directory. What happens to the symbolic links that Ted created?

The symbolic links still exist in Ted's home directory, but they are useless because the link has been broken.

While reading about file system permissions in Linux, you discover that the default permissions assigned to new files when they are created are rw-rw-rw- (666 octal), and new directories are rwxrwxrwx (777 octal). However, when you create a new file in a directory called /data, the permissions assigned are rw-r--r--. Which of the following BEST explains the results you are seeing?

The umask must be set to 0022 and, therefore, block the write permission for the group owner and everyone else.

What would be the outcome of the following command?

The user account, jjones, would be deleted along with jjones's home directory.

According to the command help, which of the following is the result of adding -G to the usermod command as a single option? Type usermod -h or usermod --help at the prompt to answer the question.

The user is assigned to a new list of supplementary groups.

What information about print jobs does the lpq utility display? (Select TWO).

The username of the person who submitted the job. A numerical job ID that can be used to manipulate the job from other utilities.

The following line is a sample entry in the /etc/shadow file: lclark:$ab7Y56gu9bs:12567:0:99999:7::: What does the second field represent?

The users encrypted password.

Aliases are shortcuts to commands stored in special variables that can be created and viewed using the alias command.

True

Any command that can be executed on the command line can also be placed inside any environment file.

True

Because its primary use is to back up files in case of system failure, cpio uses absolute pathnames by default when archiving.

True

CUPS contains versions of the lpr, lpc, lpq, and lprm commands.

True

Device files that represent disks, such as floppy disks, CD-ROMs, and hard disks, are typically character device files because a fast data transfer rate is preferred.

True

Each process can start an unlimited number of other processes.

True

If the / filesystem becomes corrupted, the system is unstable and must be turned off.

True

If the /etc/at.allow and /etc/at.deny files do not exist, only the root user is allowed to schedule tasks using the at daemon.

True

If you are using a Linux boot loader to dual boot another operating system in addition to Linux, it is easiest if Linux is installed after the other operating system has been installed.

True

The /etc/login.defs file contains parameters that set the default location for e-mail, password expiration information, minimum password length, range of UIDs and GIDs available for use, as well as specifying whether to create home directories by default.

True

The ENV environment variable represents the location of the BASH run-time configuration file.

True

The compress utility preserves the original ownership, modification, and access time for each file that it compresses.

True

The free command can be used to display the total amounts of physical and swap memory in Kilobytes and their utilizations.

True

The more filesystems that are used on a system, the less likely a corrupted filesystem will interfere with normal system operations.

True

The tar utility cannot back up device files or files with filenames longer than 255 characters.

True

To perform a Linux installation over a network, you can connect to a server with the appropriate installation files via FTP.

True

To see the current runlevel of the system and the previous runlevel (if runlevels have been changed since system startup), you can use the runlevel command.

True

Two of advanced technologies that are commonly used on Linux servers are SCSI and RAID.

True

You can choose to use a Window Manager only, and not use a desktop manager.

True

kickstart file is script helps automate the installation process.

True

You need to create a large number of files, and you would like to ensure that you, the user owner, are the only person that has read and write permissions to the files. The files will be located in a number of different directories that already contain other files you don't want modified. How could you BEST create these files with the correct permissions using the LEAST amount of effort?

Type umask 0066 to change your umask.

The unique User ID that is assigned to each user.

UID

The hard disk in your Linux laptop has almost reached its maximum storage capacity. You would like to add more hard disk storage but there is no room internal to the computer. Which of the following device types is BEST to use if you want to achieve the fastest throughput?

USB

Which of the following devices is a hotplug device?

USB flash drives

Which of the following character sets is a variable length encoding standard of Unicode that uses one to four 8-bit bytes to support many languages and most commonly used on Linux?

UTF-8

Which of the following desktops was the default for Ubuntu until 2017?

Unity

Which of the following are popular Linux desktops? (Choose FIVE).

Unity GNOME Cinnamon KDE Mate

Which of the following is the maximum number logical partitions allowed on an extended partition?

Unlimited

You have connected a new printer to a systemd-based Linux server. You cannot print to the new printer from a user workstation on the network. What tasks should you complete on the server first? (Select TWO.)

Use rpm -qi cups or dnf list cups to make sure the CUPS daemon is installed. Use systemctl status cups to make sure the CUPS printing service is running.

A system process that is not associated with a terminal is called a(n) ____.

daemon

Which of the following users MOST benefit from the sticky keys accessibility option?

Users who have difficulty pressing multiple keys at the same time.

Which of the following are true about the ASCII character set? (Choose TWO.)

Uses a seven-bit encoding technique. Does not include international symbols.

Which of the following statement describes file globbing?

Using wildcards to match specific files.

Which file system is a FAT32 file system for Linux?

VFAT

Linux provides technology that allows the user to remotely view a graphical user interface and control mouse and keyboard events.Which of the following technologies establishes a connection with a remote computer using a viewer on one end and a server on the remote end?

VNC

A type of network that uses encryption to allow IP traffic to travel securely over the TCP/IP network.

VPN

Which of the following functions does the rpm -V command perform?

Verifies that an RPM package is free from errors.

A service account is created by the system or an application and cannot be used to log in to the system. Which of the following methods can be used to verify that a service account cannot login to the system?

View the entry for the service account in /etc/passwd and look for /sbin/nologin.

A program responsible for accepting HTTP (Hypertext Transfer Protocol) requests from clients.

Web server

Type quota -u wadams at the prompt to answer the following questions about quota information for the wadams user account.

What is the blocks quota? 18432 What is the blocks limit? 20480 What is the files quota? 500 What is the files limit? 550

Type repquota -a at the prompt to answer the following questions:

Which user does not have a quota limit? root What is the hard block limit for most users? 10240 What is the soft block limit for most users? 9216 What is the highest hard block limit setting? 20480 Which user has the highest hard block limit setting? wadams

You need to see who has permissions to the sales_projection_q2 file. You use ls -l sales_projection_q2 and receive the following information: drwxr-xr-x 22 pclark acct 4096 Jun 19 15:01 sales_projection_q2

Which user owns this file? (Your answer is case-sensitive.) pclark Which group owns this file? (Note: your answer is case-sensitive.) acct

You have been currently using a cable to connect your Linux laptop to the company network. You are now, however, required to attend several meeting a week in other parts of the building and you would like to be able to bring your laptop with you, but still need access to the network while in the meeting. Which of the following device types would BEST meet your needs?

WiFi

Which component of the X11 Window System controls the placement and appearance of windows on a Linux computer?

Window Manager

Which of the following are examples of a Linux display server? (Select TWO).

X11 Wayland compositor

Which X11 Window System element is the MAIN system component?

X11 server

____ is a freely available version of X Windows used in many Linux distributions.

XFree86

When the ____ command is run by the root user, hardware information is automatically detected and written to an XFree86 configuration file called /root/XF86Config.new.

XFree86 -configure

Your company has implemented both Linux and Window servers. The system administrators use Windows desktops, so they have access to Windows administration tools. They routinely access the Windows servers using Windows Remote Desktop. Which of the following implementations would allow the system administrators to connect to the Linux systems using Windows Remote Desktop?

XRDP

An overclocked CPU is CPU that is faster than the speed for which the processor was designed. Altough this might lead to increase performance. Can this process cause the computer to crash?

Yes

Are both Standard Output and Standard Error displayed on the terminal screen by default?

Yes

Can symbolic links be compressed by the gzip utility?

Yes

Can the top command be used to change the priority of processes?

Yes

Can you combine redirection and piping together?

Yes

Can you install Linux from ISO image files on a hard disk?

Yes

If you use runlevel 3, can you start the GNOME Display Manager manually?

Yes

Reactive maintenance is part of the troubleshooting process.

Yes

Which command should you use to change the time zone (TZ) environment variable? (Select TWO).

tzconfig tzselect

The ____ priority used by the System Log Daemon indicates an error that should be rectified immediately, such as a corrupt system database.

alert

Which command displays a list of the currently defined aliases on the system?

alias

Mary Brown is a Linux user with the username mbrown. Mary has a directory named logs in her home directory that is regularly updated with new log files when certain system events occur. She runs the following commands several times a week to check this directory: cd /home/mbrown/logs ls -al She wants a persistent alias named logcheck to run these two commands. What command would you enter into her shell configuration file to create this persistent alias?

alias logcheck="cd /home/mbrown/logs;ls -al"

Which of the following commands creates a shortcut that can be used to run the tail -f /var/log/messages command?

alias sysmesg="tail -f /var/log/messages"

Which of the following commands stores the output of the ls -a command in a shell variable named allfiles?

allfiles=$(ls -a)

If a system is down at the time a recurring regularly scheduled task is supposed to run, which task scheduling service will run the task when the system is back up again?

anacron

Which of the following commands searches man pages for a specific keyword? (Select THREE.)

apropos whatis man -k

You are working on a Debian distribution of Linux. You want to retrieve information about the Debian package database on the system. Without using any command options, what command will provide the information you need?

apt-cache

You are working on a Debian distribution of Linux. You need to install a package, but you do not want to manually install all the dependencies for the package. Without using any command options, what command should you use?

apt-get

Which of the following statements correctly describe the differences between the apt-get remove and apt-get purge commands? (Select TWO).

apt-get purge - removes the package and the configuration files. apt-get remove - removes a specified package, but leaves the configuration files.

You have installed a package called mathpac with apt-get. After a system upgrade, the package is not working correctly. Which of the following commands is the MOST correct method to get the package to work?

apt-get upgrade mathpac

Which of the following Debian package management utilities provides the front end for APT?

aptitude

Which of the following commands removes a job from the at queue? (Select TWO. Each answer is an independent solution.)

atrm at -d

What should you enter at the command prompt to remove tasks 2 and 3 in the at queue?

atrm 2 3

The ____ command can be used to extract, manipulate, and format text using pattern-action statements.

awk

Which awk/sort command combination displays a sorted list of usernames in the /etc/passwd file?

awk -F: '{print $1}' /etc/passwd | sort

You have a gedit process with a job ID of 6. Which command would you enter at the command prompt to send the process to the background?

bg 6

The ____________________ utility uses the Burrows-Wheeler Block Sorting Huffman Coding algorithm when compressing files.

bzip2

Which of the following commands removes print job 11 from the hp7 printer?

cancel -P hp7 11

Which of the following commands sorts the combined contents of the wordlist1 and wordlist2 files and sends the results to both the screen and a file named sortedwordlist?

cat /usr/wordlist1 /usr/wordlist2 | sort | tee sortedwordlist

Which of the following commands gives the same results as cat < turbo?

cat turbo

Devices that transfer data in a character-by-character fashion are referred to as ____ devices.

character

What would you enter at the command prompt to change the group ownership for the devstyle.txt file to rand in the present working directory?

chgrp rand devstyle.txt

You are the team lead for a marketing project. Only the members of the team3 group should have read/write permissions to a document called project_data.doc. You want to ensure that no one on the team will delete the document by accident. Your user name is bsmith.A long listing of the file is as follows: -rwxr-xr-x 1 bsmith team3 7260 June 22 2004 project_data.doc Which of the following commands will accomplish this task?

chmod 1664 project_data.doc

You need to set the SUID permission on a file named rider. Which of the following commands will accomplish this task?

chmod 4777 rider

You must change ownership of a script called myscript so that only the user owner has read/write access to it and only the user owner and group owner have execute permissions. Which of the following commands will accomplish this task?

chmod 750 myscript

A file named acctg needs to have the SGID permission set on it while keeping all other permissions at their present value. Which of the following commands will accomplish this task?

chmod g+s acctg

There is a directory called projects owned by the user cmarcela and the group rd. cmarcela has left the company. You need to give ownership of the projects directory, its files, and its subdirectories to the user ebates, who is a member of the mgmt group. Which of the following commands should you use to change the user ownership?

chown -R ebates projects

Which of the following commands would be used to make nstevens the owner of all of the files and directories in the /docs directory?

chown -R nstevens /docs

Which of the following commands make sales the group owner of the /sales/report file? (Select TWO. Each answer is an independent solution.)

chown .sales /sales/report chown :sales /sales/report

You use ls -l /home/sales/sales_projection_q2 and get this information: drwxr-xr-x 22 pclark acct 4096 Jun 19 15:01 sales_projection_q2 Which of the following commands will change the user owner to jyoung and the group owner to sales?

chown jyoung:sales /home/sales/sales_projection_q2

Which of the following commands copies the entire /temp directory with all of its files, sub-directories, and files in the sub-directories to the /home/gshant directory. (Select TWO. Each answer represents an independent solution.)

cp -r /temp /home/gshant cp -R /temp /home/gshant

Which of the following commands should you use to change the location of the default file used to search for libraries?

dconfig -f

A Linux administrator is logged in as root and needs to copy a file named letter.doc from the USB flash drive mounted under /media/usb. Which of the following commands will copy the file from the USB flash drive to the root user's home directory?

cp /media/usb/letter.doc /root

Tom, a shell script developer, knows that the date +%A command gives the current local weekday name (Sunday, Monday, Tuesday, ...). Which of the following commands will copy the authentication log file, /var/log/auth.log, to a new file with a filename that includes the current local weekday name?

cp /var/log/auth.log ~/auth$(date +%A).log

You want to restore files with the extension .cfg from an archive called configs.cpio. Which command will perform the restore?

cpio -ivd "*.cfg" < /mnt/hdd2/configs.cpio

Information regarding the processors in the computer.

cpuinfo

Which command could you use to verify whether a crontab file exists for the thobbs user?

crontab -l -u thobbs

After logging in as root, you need to manage the crontab files for your Linux system. Which command should you use to edit the crontab file for the gshant user account?

crontab -ue gshant

You are configuring the /etc/cups/cupsd.conf file. Which command should you use to prevent remote printers from being displayed on the local system?

cupsctl --no-remote-printers

A system administrator is configuring a package manager to access packages from a local repository and take advantage of a local repository's transfer speed. Which of the following commands can be used to pull packages from an online repository? (Select THREE).

curl wget rsync

Which of following commands displays information found in the second column of the tab delimited ~/smarts file?

cut -f2 ~/smarts

You are requested to help a user who reports that he has no more local storage space. You go to his system and log in as the root user. Which of the following commands will display the available disk space on all partitions? (Select TWO).

df -h df

You have created a separate partition for the sales team and mounted it to the /sales directory. The team is about to begin a new project, and they want to make sure there is enough disk space to hold upcoming files. Which of the following commands will show you the amount of free space?

df /sales

You used DNF to list the Ruby packages that are available to install. You see that there is a package available that is called ruby. What DNF command do you use to install this Ruby package?

dnf install ruby

You have users who need to do some programming projects in the Ruby programming language. What DNF command do you use to find out whether there is a Ruby package available for installation on the Linux server?

dnf list ruby

You have installed a package called mathpac with DNF. After a system upgrade, the package is not working correctly. Which of the following commands should you try first to get the package to function?

dnf update mathpac

What dpkg command would you enter at the command prompt to search for packages that have been partially installed on the system?

dpkg -C

What dpkg command would you enter at the command prompt to list information about a currently installed Debian package?

dpkg -p

Which of the following commands will reconfigure an already installed package?

dpkg-reconfigure

What command would you enter at the command prompt to list all files and directories in the badams home directory along with a file size and a total amount of space taken up by the directory?

du -ac /home/badams

You want to view the number of commands your bash shell is set to save by examining the current HISTSIZE environment variable. You don't want to have to scroll through all the environment variables. Which of the following commands is the BEST way to determine the current value of the HISTSIZE variable?

echo $HISTSIZE

Which of the following commands shows the value of the LANG environmental variable currently set for the language the operating system uses?

echo $LANG

The ____ command could be used to view the contents of the environment variable that represents the BASH shell prompt.

echo $PS1

Which of the following commands would display this output? Frank said, "Linux is fun!"

echo Frank said, \"Linux is fun\!\"

You can edit the quotas for certain users by using the ____ command.

edquota

Which of the following commands will open the quota file for a specific user?

edquota -u

Which command should you enter at the command prompt to change the quota settings for the gshant user?

edquota -u gshant

You are searching the standard input for any line containing "JAMESTOWN" at the end of a line. Which egrep constructor should you enter at the command prompt?

egrep JAMESTOWN$

To see a list of all exported environment and user-defined variables in the shell, you can use the ____ command.

env

Two users should have identical settings, yet one is having problems with the display on his screen, and you suspect there is a difference in their environment variables. Which of the following commands displays all of the environment variables?

env

As a Linux user, you have access to an executable file named myapp. It's found in the current directory, but not in the command path. What would you enter at the command prompt to start the myapp file and replace the shell with myapp process?

exec ./myapp

You need to set the COMP variable to the value 1745. Which of the following commands sets the variable so it is inherited by subsequent child shells?

export COMP=1745

Tim, a technician, created a local variable named val and set it to 5000 at the bash prompt. Tim wants to use the variable in a script. But when the script is executed, the value of val is not set to 5000. Which of the following commands would allow Tim to set a global variable that would be available to the script?

export val=5000

The system requirements for a new Linux computer show that the system will primarily be used to store documents of small size. Which of the following file systems would be the MOST efficient at storing these documents on a Linux system?

ext4

Which of the following Linux file systems support journaling?

ext4

Which of the following is the MOST common Linux file system?

ext4

To create partitions after installation, you can use the ____ command.

fdisk

Type fdisk -l at the prompt to answer the following questions about the partition table:

fdisk -l 1st 5th 62191 473632 1st 1st

Which of the following commands/command sequences can be used to view the partition information on the first hard disk? (Select TWO.)

fdisk -l fdisk /dev/sda, then press p

Which of the following commands partitions the second hard disk on a Linux system?

fdisk /dev/sdb

After a background process has been started, it can be moved to the foreground by using the ____ command.

fg

You have several processes running in the background, as shown by the jobs command below: [1]+ Running gedit &[2]+ Stopped crontab e Which command will bring the gedit program to the foreground?

fg 1

What would you enter at the command prompt to display a file's type?

file

Processes can initiate numerous connections, called ____________________, to files on the filesystem in addition to Standard Input, Standard Output, and Standard Error.

filehandles

Which of the following commands is used to find a specific file on a Linux system? (Select TWO. Each answer represents an independent solution.)

find locate

You are accessing the /home/shants/depsmark text file through a terminal connection. The file has long lines of text, yet your terminal only shows 75 characters per line. Which of the following commands will limit the lines in the file to the limits on the terminal?

fmt -w 75 /home/shants/depsmark

To check a filesystem for errors, you can use the ____ command, which can check filesystems of many different types.

fsck

Which partition management utility can be used to define and change various different GUID partition configurations without committing the configuration to the disk until the w command is used?

gdisk

You have installed a new blank hard drive on you Linux system. This is the second drive on the system, so it is represented in the file system by the /dev/sdb file. You need to create GUID partitions on this drive. What command do you use to start the GUID disk management utility to create partitions on the /dev/sdb drive?

gdisk /dev/sdb

What command would you enter at the command prompt to start the gedit program in the background?

gedit &

What is the result of the nohup gedit & command?

gedit will start in the background and persist in the background after logging out of the shell.

Due to a merger with another company, standardization is now being imposed throughout the company. As a result of this, the sales group must be renamed marketing. Which of the following is the BEST command to use to rename the group?

groupmod -n marketing sales

What would you enter at the command prompt to display the primary and secondary group memberships for the gshant user account?

groups gshant

Which of the following commands will help you to determine which version of GRUB is installed on your Linux system?

grub-install -v grub2-install --version

After updating the settings in the /etc/default/grub file, you know the changes must be written to the grub.cfg file before they will be used. What would you enter at the command prompt to write the changes to the grub.cfg file?

grub2-mkconfig -o /boot/grub2/grub.cfg

Which of the following commands should a Linux user enter to see a list of all the commands the user recently ran at the command prompt?

history

You want to configure CUPS from a web browser. Which URL address and port should you enter within the web browser's address field?

http://localhost:631

You need to set the hardware clock to the same value as the system clock. Which command should you use?

hwclock -w

In the /etc/lilo.conf file, the ____ keyword specifies the absolute pathname to the Linux kernel.

image=

You are experiencing a problem with a SysV init network server. You want to bring the system down and try reseating the cards within it before restarting it. Which command completely shuts down the system in an orderly manner?

init 0

You just got a new input device named GamePad that you want to use on your computer. You don't think that the GamePad driver (the kernel module) was compiled into the kernel of your Linux distribution. Which of the following commands will install the driver (gamepad.ko) into the kernel? (Select TWO).

insmod gamepad.ko modprobe gamepad

In the /etc/lilo.conf file, the ____ keyword specifies the file that contains the physical layout of the disk drive.

install=

List of IRQs in use on the system.

interrupts

CD-ROMs typically use the ____ filesystem type.

iso9660

Which of the following commands will merge two files based on identical fields of text?

join

In Red Hat Linux, a ____ file is a script file that specifies the choices that you would normally choose when you install the operating system.

kickstart

A developer calls you with a problem. She was trying to debug a new daemon and mistakenly placed it on the production machine instead of on a lab machine. It has now entered runaway mode. The PID number is 2345. She attempted to stop the process with the standard kill command, but it had no effect. Which command would you use to assure that the process will terminate?

kill -9 2345

A service specialist from your company calls you from a customer's site. He is attempting to install an upgrade to the software, but it will not install; instead, he receives messages stating that he cannot install the program until all non-core services are stopped. You cannot remotely access the machine, but the representative tells you that there are only four processes running, and their PID numbers are 1, 10, 100, and 1000. With no further information available, which command would you recommend the representative run?

kill 1000

After a severe lightning strike nearby, a number of processes seem to be running on the server in runaway mode. Which utility terminates these processes by name, and not just by process ID number?

killall

You have been asked to temporarily fill in for an administrator who has just been fired. This administrator was known to have lax security standards, and you suspect that passwords are still kept in the /etc/passwd file. Which of the following entry within the passwd file would indicate that the passwords are stored there?

kolton:34uyx:431:0:Back Door:/root:/bin/bash

Specifically used an override for LC_MESSAGES.

language

What would you enter at the command prompt without options to reload the library cache every time libraries are added or removed and update the symbolic links?

ldconfig

Which of the following commands reloads the libraries for the /bin/bash executable, but does not update the cache?

ldconfig -N /bin/bash

The ____ file in the /proc directory contains statistics on the performance of the processor.

loadavg

Your Linux system was installed for you while you were living in the United States of America. You have since been transferred to a satellite office located in Wood Walton, England, and have taken your computer with you. Since England uses the larger A4 paper size, you would like to change the LC_PAPER locale environment variable. Which of the following is the BEST shell command to use for this purpose?

localectl

Which of the following utilities would you use to search a path for files that match a given name?

locate

To send a print job to a printer, you must first use the ____ command and specify what to print.

lp

You can restrict who can print to certain printers by using the ____ command.

lpadmin

Which of the following commands removes all files from the print queue?

lpc clean

Which command will show the contents of ALL the print queues on your Linux system?

lpq -a

You want to send the yearend.txt file to the acctg printer. Which command should you use?

lpr -P acctg yearend.txt

What should you enter at the command prompt to print 23 copies of the comparables file on the homeprint printer?

lpr -P homeprint -#23 comparables

To see a list of all printers on the system and their status, you can use the -t option to the ____ command.

lpstat

Which of the following commands will display information about the PCI devices installed on the system?

lspci

Which command displays information on all USB devices connected to the computer?

lsusb

Which of the following commands creates a logical volume named video from the home volume group and configures it with 2 TB of disk space?

lvcreate -L 2T -n video home

You are using LVM on your Linux system to manage the existing volumes. What command do you enter to scan for logical volumes on the system?

lvscan

You are working on a Linux system and need more information about the uname command. What would you enter at the command prompt to learn about the uname command syntax and options?

man uname

Which of the following utilities is used to manage and monitor software RAID devices?

mdadm

____ is the Window Manager used for the GNOME desktop in Red Hat Fedora Core 2.

metacity

Fred, a Linux administrator, needs to create the directory /var/oracle/database/9i. Only the directory /var currently exists. The current working directory is the root of the filesystem. Which of the following commands will create the directory path?

mkdir -p /var/oracle/database/9i

Which of the following commands formats the second partition on the fourth disk drive with the ext3 file system?

mke2fs -j /dev/sdd2

You need to create an ext4 file system on the first partition on the second hard disk drive. What command should you enter at the command prompt?

mkfs.ext4 /dev/sdb1

One of the Linux servers for the accounting department needs additional memory to fix recent performance issues. You have ordered the memory, but it is backordered, so you decide to add a swap partition to the server to help the performance issues immediately. Which of the following commands will add a swap partition to the first partition on the third hard drive?

mkswap /dev/sdc1

The ____________________ command checks to ensure that any prerequisite modules have been loaded first and loads them if needed before loading the specified module.

modprobe

Which utility runs at startup to load modules into the kernel?

modprobe

Which of the following commands will check for dependencies before removing the debug module from the kernel?

modprobe -r debug

Which of the following commands will check for dependencies before loading the gameport module in the kernel?

modprobe gameport

A user is trying to access a file system mounted at /mnt/sdb1, but receives an error that states No such file or directory. Which commands can you use to see the current mount points? (Select TWO).

mount df

A number of new file systems have been added to the server and you want them to be active now. You also do not want to bring the server down. Which command makes the changes active?

mount -a

To mount all filesystems in the /etc/fstab file that are intended to mount at boot time, you can simply type the ____ command.

mount -a

You need to mount the CD-ROM device to the /media/cdrom directory. What command should you enter at the command prompt?

mount /dev/cdrom /media/cdrom

You have partitioned and formatted a new hard drive, sdc. You want to mount the first partition on sdc to directory /mnt/newdisk. Which command will perform the mount correctly?

mount /dev/sdc1 /mnt/newdisk

You are working on a Linux distribution that uses systemd. Which file in the /usr/lib/systemd/system/ directory is text-based and used to start the services that support multiple users and support networking?

multi-user.target

Which of the following commands will move a file from one location to another?

mv

Which of the following commands will change the /home/pmallory/reports file's name to reports.bak?

mv /home/pmallory/reports /home/pmallory/reports.bak

Joe, a bash script developer, is trying to debug a shell script named myscript. Which of the following commands would record the output of the script in a text file?

myscript >> testfile.txt

Which of the following commands utilize command substitution? (Choose TWO.)

myvar=`sort -r names.txt` myvar=$(sort -r names.txt)

Which of the following commands starts the gedit program with a priority one above the default nice priority?

nice -n -1 gedit

What would you enter at the command prompt to start the gedit process with the highest priority possible?

nice -n -20 gedit

Which of the following statements BEST describes the nl -s ": " myfile command?

nl adds the number, a colon, and a space to the front of each line in the file

Which of the following commands manages the NTP daemon from the command line?

ntpd

Which of the following NTP configuration utilities is deprecated and should be avoided when possible?

ntpdate

You want to display the contents of ~/franksdep in hexadecimal format. You change to your home directory. How should you enter the command at the command prompt?

od -x franksdep

While in vi Command Mode, you copy a whole line of text to the general buffer. You then navigate to a different location in the file. Which of the following commands will paste the copied text?

p

What is the name of the partition management utility that will both create GUID partitions and create file systems on those partitions?

parted

Marco recently made some partition changes, and the kernel is not recognizing the partitions. Which of the following commands should Marco use to resolve the problem?

partprobe

You suspect that the gshant user account is locked. What should you enter at the command prompt to see the status of the gshant user account?

passwd -S gshant

Which of the following commands merges two files on a line-by-line basis and separate each line with a tab?

paste

You have a SCSI tape drive st0. You want to back up the contents of /var/oracle. Which command will perform the backup?

tar -vcf /dev/st0 /var/oracle

What would you enter at the command prompt to display the current working directory?

pwd

What is the name of the package that must be installed if you want to use disk quotas on your Linux system?

quota

Which command should you enter at the command prompt to display the current user's quota limits and disk usage?

quota

Which of the following commands displays the disk usage and quota limits for the development group?

quota -g development

After creating the aquota.user and aquota.group files in the /home directory, what command should you enter to enable quotas for the /home directory?

quotaon /home

Which of the following sets of permissions represent the minimal permissions required to allow a user to list the contents of a directory?

r-x

If you have ____ permission to a shell script, you can execute the shell script like any other executable program on the system.

read and execute

A developer calls you with a problem. He was trying to debug a new daemon and mistakenly placed it on the production machine instead of on a lab machine. To ensure that the CPU gives preference to other processes, you need to lower the daemon's priority. The PID number is 2345. Which command would you use to decrease the daemon's priority?

renice -n 10 2345

Within the /var directory is a subdirectory named backup. Ken, a Linux administrator, needs to delete the directory backup and any files that it contains. He changes directory focus to /var. Which of the following commands deletes the directory named backup and any file it contains?

rm -r backup

The /home/gshant/smp directory contains several files. The directory and files need to be removed. The current working directory is /home/gshant. What would you enter at the command prompt to remove the smp directory and all the files it contains?

rm -r smp

You are attempting to install an RPM package on your Linux system, but the system tells you that a newer package is already installed. Which of the following commands will install the RPM package over the existing installed package?

rpm --force

You are attempting to install an RPM package on your Linux system, but the system tells you the package has dependencies that are not installed. What would you enter at the command prompt to force RPM to override the need to install the dependencies?

rpm --nodeps

Without installing an RPM package, you want to check for all of the package's uninstalled dependencies. Which of the following commands should you use?

rpm --test

What command will upgrade an RPM package only if an earlier version is already installed on the system?

rpm -F

You have an RPM package called mathpac that is not working correctly. You have downloaded the latest package. Which of the following commands should you use to install the latest mathpac package?

rpm -U mathpac

You need to install the package apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm. Which of the following commands will perform the installation? (Select TWO).

rpm -ih apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm rpm -Uh apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm

Which of the following commands queries the system for all installed RPM packages?

rpm -qa

You need to determine which files are associated with the metacity RPM package. Which of the following commands should you use?

rpm -ql metacity

Which of the following utilities should you use if you need to extract a file from an RPM package file?

rpm2cpio

You have just finished installing an updated kernel on your email server that has been patched to solve a security vulnerability and wish to reboot as soon as possible. This is a busy time of day, and you do not want the server down any longer than necessary. Which option prevents fsck from running after the reboot and allows the system to boot faster?

shutdown -f

You have informed users that you need to bring the machine down at the end of the day to perform routine maintenance. However, prior to shutting the system down, you want to send a message to users to give them fifteen minutes to save data and exit the system. Which of the following is the BEST command to use?

shutdown -h +15 It is time for a shutdown!

You need to shut down the system immediately and send a message to logged in users to allow running processes to close gracefully. Which of the following is the BEST to use?

shutdown -h now

The ____ field in a cron table contains the absolute pathname to the command to be executed.

sixth

Which of the following commands will display each line in a text file in alphabetic order?

sort

A user, ljenkins, contacts the help desk about an error received while removing a file from their home directory. The user received the following error when trying to use the rm command to remove the file: [ljenkins@fileserver]$ rm report.txtrm: remove write-protected regular empty file 'myfile2.txt'? yrm: cannot remove 'myfile2.txt': Operation not permitted While troubleshooting the issue, you list files in directory to see if you can discover the issue: [ljenkins@fileserver]$ ls -altotal 4drwxr-xr-x. 2 ljenkins ljenkins 24 Feb 25 12:04 .drwx 15 ljenkins ljenkins 4096 Feb 25 11:04 ..-rw-rw-r--. 1 ljenkins ljenkins 346 Feb 25 11:32 report.txt When prompted to remove the write-protected file, ljenkins entered yes and received an "Operation not permitted" error message. As the help desk technician, you attempt to remove the file with root privileges and receive the same error message. You decide to view the file attributes and receive the following output: [helpdesk@fileserver]$ lsattr ----I----------- ./report.txt Which of the following commands would resolve the problem and allow the file to be deleted?

sudo chattr -i report.txt && rm report.txt

Which of the following partitions functions as virtual memory for a Linux system?

swap

You have a Linux system with two activated swap partitions, sda3 and sdb2. Which of the following commands can you use to deactivate only the sda3 swap partition?

swapoff /dev/sda3

You created a swap area on sda3, but it is not activated. What command will activate this swap partition?

swapon /dev/sda3

To configure your keyboard, you can use the ____ command from either a GUI or terminal environment and restart X Windows.

system-config-keyboard

You are working on a systemd-based Linux distribution. Which command can you use to manage the services and targets?

systemctl

You are experiencing a problem with one particular server. Each time it boots, it goes into single-user mode even though no warnings or errors are reported. You want to verify that it is configured to boot to the multi-user.target unit, just as all your other servers are. This system is running systemd. Which command would you use to see which boot target is set as the default?

systemctl get-default

Your system is currently running the multi-user.target. What would you enter at the command prompt to find out whether the atd.service is configured to start every time the multi-user.target is loaded?

systemctl is-enabled atd.service

You are on a systemd system. Without rebooting the system, you want to change from the currently running target unit to a target that supports networking, supports multiple users, and displays a graphical interface. What command should you enter to accomplish this task?

systemctl isolate graphical.target

You are experiencing a problem with a network server. You want to bring the system down and try reseating the cards within it before restarting it. Which command runs poweroff.target to shut down the system in an orderly manner?

systemctl isolate poweroff.target

You need to perform some system maintenance on a systemd system, and you want to prevent users from logging on while you do so. Which command should you run?

systemctl isolate rescue.target

After making changes to the configuration of anaconda.service, you must make those changes take effect. Which single command should you enter to make this service use the new configuration?(Note that there is no reload option with this service.)

systemctl restart anaconda.service

The current default boot target is a multi-user.target, but you want to use this system as a desktop workstation. You need a boot target that supports multiple users, supports networking, and has a graphical display. This is a systemd system. What command should you enter to change the default boot target to one that meets these needs?

systemctl set-default graphical.target

After getting calls about users not being able to print, you check the status of cups.service and find that it is not running. What would you enter at the command prompt to run cups.service?

systemctl start cups.service

What would you enter at the command prompt to find out whether cups.service is running?

systemctl status cups.service

Which of the following is responsible for bringing up other units and services when boot targets are changed?

systemd

You need to back up Jane's files in her /home/user/jane directory. Which command will create an archive of these files in the /root directory? (Select TWO).

tar -czvf /root/jane.tgz /home/user/jane tar -cvf /root/jane.tar /home/user/jane

You have a tape archive mounted in /dev/rmt12. You need to get a list of the file contents. Which command will list the contents

tar -tf /dev/rmt12

Which command reads from standard input (stdin) and writes to both standard output (stdout) and a file?

tee

A user is experiencing some slowness and wants to view an interactive listing of running processes to see if there is a process that is causing the problem. Which of the following commands displays an interactive listing of running processes? (See exhibit.)

top

Which command would you use to look for a potential resource hog on a workstation?

top

You need to determine the priority of several processes. Which command should you enter to identify the process ID and nice value for each process?

top

You need to see a listing of running processes and system status such as memory and CPU usage. Which command will produce the listing?

top

Which of the following commands will change the /home/gshants/smile file's modification and last accessed times to the current time?

touch /home/gshants/smile

Which of the following commands transposes characters in a text steam?

tr

You need to convert the file system of /dev/sdb3 from ext2 to ext3 without affecting the data on the drive. What command and option should you enter at the command prompt?

tune2fs -j /dev/sdb3

Linux requires ____ partition(s) at minimum.

two

Which of the following apt-cache options will show the missing dependencies in the package cache?

unmet

After using the locate command, you discover some of your files are not being listed in the search results. What would you enter at the command prompt to update the /var/log/locatedb file?

updatedb

Which of the following apt-get options will upgrade all installed packages to the latest versions using the information in /etc/apt/sources.list?

upgrade

You can create user accounts on the Linux system by using the ____ command.

useradd

You need to create a user account with the following parameters: Login name: pmorrill Comment: Paul Morrill Home directory: /home/pmorrill_temp UID: 683 Which of the following commands should you use?

useradd -c "Paul Morrill" -d /home/pmorrill_temp -u 683 pmorrill

An employee named Bob Smith, whose username is bsmith, has left the company. Your supervisor has instructed you to delete his user account and home directory. Which of the following commands would produce the required outcome? (Select TWO).

userdel -r bsmith userdel bsmith;rm -rf /home/bsmith

A user with an account name larry has just been terminated from the company. There is good reason to believe that the user will attempt to access and damage files in your system in the very near future. Which command below will disable or remove the user account from the system and remove his home directory?

userdel -r larry

Which of the following utilities would you typically use to lock a user account?(Select TWO. Each answer represents an independent solution.)

usermod passwd

The user emcmann has been transferred from the accounts payable department. She was assigned to several secondary groups that gave her rights to sensitive files and systems. You need to remove her from all her current secondary groups right away. Enter the command that will remove emcmann from all secondary groups.

usermod -G "" emcmann

You need to modify the group membership for the cjensen user to add the staff group to his list of secondary group memberships. He needs to keep his existing secondary group memberships. Which command option will add cjensen to the staff group without removing him from the other groups?

usermod -aG staff cjensen

One of your users, Karen Scott, has recently married, and is now Karen Jones. She has requested that her username be changed from kscott to kjones. Which of the following commands will accomplish this task without changing other values?

usermod -l kjones kscott

A programmer named Brandon calls with an issue. He is currently using the C shell each time he logs in, but his manager has told him to start using the Bash shell. Which command will change brandon's shell to the desired setting?

usermod -s /bin/bash brandon

Which of the following commands creates a volume group named backup and initializes it by adding the third disk in a Linux system to the volume group?

vgcreate backup /dev/sdc

You are using LVM on your Linux system to manage the existing volumes. After adding and initializing the fourth hard drive to the system and creating a physical volume, what command should you use to add it to the backup volume group?

vgextend backup /dev/sdd

The ____ command counts the number of lines, words, and characters in a file.

wc

At the command prompt, how would you enter a command that will print the line count, word count, and byte count respectively in the /home/gshant/servepath file?

wc -lwc /home/gshant/servepath

You use a program on your Linux system called photorec. What would you enter at the command prompt to display the path to the photorec binary file?

which photorec

The ____ option to the ps command displays all processes that do not run on terminals, but not processes that run on terminals.

x

Which command overcomes the 128 KB shell command size restriction by breaking up long lists of arguments?

xargs

You have an xfs file system in your Linux computer. You need to display the XFS file system parameters, such as the block size and inode data structures. Which of the following commands should you use? (Select TWO). (Each answer is an independent solution.)

xfs_info xfs_growfs -n

You have an XFS file system in your Linux system represented by /dev/sdb1. You need to copy all the filenames on the drive to the /reviewxfs file. You must be able to read the filenames in the /reviewxfs file. Which of the following commands should you use?

xfs_metadump -o /dev/sdb1 /reviewxfs

After configuring X Windows, you can fine-tune the vsync and hsync of the video card using the ____ utility after X Windows has started

xvidtune

A technician has been given a work order to install the Apache webserver on a system configured with a YUM repository. Which of the following commands will install the webserver?

yum install httpd

You used YUM to list the python packages that are available to install. You see that there is a package available that is called python. What YUM command do you use to install this python package?

yum install python

What yum command would you enter at the command prompt to determine which package contains the /usr/lib/libstlport_gcc.so file?

yum whatprovides /usr/lib/libstlport_gcc.so

What YUM command would you enter at the command prompt to download an RPM package without installing it to the system?

yumdownloader

What command would you enter while in vi command mode to copy an entire line of text to the general buffer?

yy

The ____ command can be used to display the contents of a compressed file.

zcat

Which command operator pipes the output of one command as the input of another command?

|

You can send the Standard Output of one command to another command as Standard Input using the ____ shell metacharacter.

|

Anna, a system administrator, wants to set a global variable that can be used each time she logs in. Currently, she has to set the variable each time a terminal is opened. Which of the following files would need to be modified to make a global variable persistent? (Choose TWO.)

~./bash_profile /etc/profile

After a user starts a bash session and the script in /etc/profile is applied, if all of the following files exist, which will be run next?

~/.bash_profile

Which of the following files would you use to create aliases that are applied when a specific user starts a bash session? (Select TWO. Each answer is an independent solution.)

~/.bashrc ~/.profile


संबंधित स्टडी सेट्स

Chapter 1 Environmental Science: Understanding Our Environment

View Set

Early Intervention: Welcome to Baby Watch

View Set

Exam 2 - Strategic Management (MGMT 3013)

View Set

Micro Chapter 3 bacterial cell structure

View Set

Research Methods in Psychology - Q&A (PSYC 304)

View Set

ACCT 324 - Smartbook Ch. 18 - Contracts in Writing

View Set

Registered Behavior Technician (RTB) certification study guide

View Set