Linux 7-14

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

The System Log Daemon, rsyslogd, creates a socket for other system processes to write to. What is the path to this socket?

/dev/log

A system administrator wants to allow most users to be able to run cron jobs, but wants to specifically prevent a couple of users from doing so. Which of the following files could the administrator edit to disallow these users from creating cron jobs?

/etc/cron.deny

In addition to /etc/localtime, some Linux distributions also have an /etc/timezone text file that contains a reference to the correct time zone file contained in which directory?

/usr/share/zoneinfo

Which of the following ports would be used to resolve a domain name to an IP address?

53

Which of the following commands can be used to create a BASH variable named CREATOR with the value of Torvalds?

CREATOR="Torvalds"

Along with a listing of user accounts, the /etc/passwd file contains information on account expiry. True or False?

False

If you want to create a device that can open and close a valve on a pipe using automation, you should use a CPS.

False

Standalone daemons are started on demand using xinetd. True or False?

False

Stratum 1 NTP servers do not obtain time information from other NTP servers. True or False?

False

The Debian Package Manager (DPM) is the default package manager used by Fedora 28. True or False?

False

The NetworkManager or Systemd-networkd components must be installed on a Linux system in order to configure an IP address on a network interface. True or False?

False

The applications for IoT in transportation are very limited and not worth exploring.

False

The bzip2 and gzip utilities use similar compression algorithms. True or False?

False

To install a new program from RPM software repositories on the Internet, you can use the dnf update programname command. True or False?

False

To kill a process running in the background, you must place a % character before its process ID. True or False?

False

UIDs and GIDs are unique to the system and, once used, can never be reused. True or False?

False

You can purchase object storage from a cloud provider to provide persistent filesystem-based storage. True or False?

False

Which type of network might be used to connect utility network nodes together?

Field Area Network

Match the file with the order in which the BASH shell environment files are read: First: /etc/profile Second: /etc/profile.d/* Third: /etc/bashrc Fourth: ~/.bashrc

First: /etc/profile Second: /etc/profile.d/* Third: /etc/bashrc Fourth: ~/.bashrc

Which of the following is an on-screen keyboard used with Linux?

GOK

Which assistive technology will make a desktop environment more accessible to a person with low vision?

High Contrast

Which of the following will the split command do on a file when no other options are specified?

It will split a file into new equally sized files that are 1/10th of the original file size.

Which of the following options is passed to the Linux kernel from the GRUB2 configuration file to set the locale?

LANG

Which of the following environment variables can you change the value of to set the default printer on a Linux system? (Choose two.)

PRINTER LPDEST

Which of the following does Click Assist do?

Simulates a right click by holding down the left mouse button.

Which of the following accessibility features simulates simultaneous key presses when two keys are pressed in sequence?

Sticky Keys

Which of the following is a valid Linux initialization process?

Systemd SysV

Which of the following system variables can you modify to override the default system timezone within your current shell?

TZ

Which of the following is not a valid compression file extension for the Linux operating system?

.vz

In what directory is Stage 2 of the GRUB2 boot loader stored?

/boot

Chronyd is an NTP daemon that offers a faster response time compared to the ntpd daemon. True or False?

True

DHCP clients send a DHCPREQUEST packet when they require a new IP configuration. True or False?

True

If you are working with breadboards, you'll want an assortment of jumper wires.

True

If you want to make permanent connections in your IoT design, you'll need a soldering iron.

True

Most source code is typically available on the Internet in tarball format or as a git repository. True or False?

True

PaaS cloud providers host sandboxed Web apps using containers for scalability. True or False?

True

SSH encrypts all traffic that passes across the network, whereas telnet does not. True or False?

True

The -9 option to the gzip utility results in a higher compression ratio. True or False?

True

The line that configures the host name for the computer at boot time can be found in /etc/hostname. True or False?

True

The lines within the Apache configuration file that modify the functionality of the Apache are called directives. True or False?

True

The number of "things" connected to the Internet numbers in the 10s of billions.

True

What is contained in the DISPLAY variable on a Linux system running the X window system?

Which X server the client is supposed to connect to by default.

Which of the following can be used to provide graphical remote administration? (Choose all that apply.)

b. ssh -X d. VNC

Which of the following Systemd commands can be used to stop a daemon called lala?

b. systemctl stop lala.service

When a printer is disabled, ________.

b. the print queue accepts jobs into the print queue and holds them there until the printer is enabled again

Which of the following variables could access the value "/etc" within the sample shell script, if the sample shell script was executed using the bash sample /var /etc /bin command? a. $0 b. $1 c. $2 d. $3

c. $2

Which file contains default information such as UID and GID ranges and minimum password length to be used at user creation?

c. /etc/login.defs

Most log files on the system are found in which directory?

c. /var/log

Mary is a system administrator in your organization. She has recently made changes to the DHCP configuration file, but the DHCP daemon does not seem to recognize the new changes. What should she do?

c. Restart the DHCP daemon.

Which of the following statements is true? a. Unicode provides the least localization support for different languages. b. ASCII is the most common character set used today. c. UTF-8 is commonly used to provide Unicode character set support. d. ASCII is an extension of the ISO-8859 standard.

c. UTF-8 is commonly used to provide Unicode character set support.

What would be the effect of using the alias command to make an alias for the date command named cat in honor of your favorite pet? a. It cannot be done as there already is an environment variable cat associated with the cat command. b. It cannot be done because there already is a command cat on the system. c. When you use the cat command at the command prompt with the intention of viewing a text file, the date appears instead. d. There is no effect until the alias is imported because it is a user-declared variable.

c. When you use the cat command at the command prompt with the intention of viewing a text file, the date appears instead.

Which of the following commands can be used to back up files in case of system failure, supports long filenames, and can also back up device files?

cpio

What command is used to view and modify user jobs scheduled to run with cron?

crontab

Which of the following commands will show the current user cron jobs that have been created for the currently logged in user?

crontab -l

Which of the following is the log file where the Debian Package Manager writes entries for actions taken and packages installed?

dpkg.log

Which option to the rpm command can be used to remove a package from the system?

e

Which of the following commands will display the exit status of the last command used in the BASH shell?

echo $?

You have just created a variable named CREATOR. Which of the following commands will display the contents of the variable to standard output?

echo $CREATOR

Which of the following will look at the /etc/passwd file for any lines containing the word root and display them out to the screen while simultaneously writing the results to a file?

grep root /etc/passwd | tee ~/root.txt

Which of the following constructs can be used in a shell script to determine whether two values are equal and if so run another set of commands?

if

The first daemon loaded on a Linux system is _____.

init

Which command causes the system to enter Single User Mode?

init 1

Which of the following commands can be used to only show jobs that have been paused.

jobs -s

Which of the following commands can you use to view events within the journald database?

journalctl

Which of the following commands can be used to display the current locale of a system? (Choose two.)

locale localectl

Which command can be used to modify the default locale on the system?

localectl

What is the name of the utility used to rotate log files?

logrotate

Which of the following commands can you use to send a print job to printer1? (Choose all that apply.)

lp -d printer1 mydocument.txt lpr -P printer1 mydocument.txt

Which of the following commands can be used to see files that are currently being used by a specific process ID (PID)?

lsof

Which of the following can be used preceding a command to prevent a process from terminating when the parent process terminates?

nohup

Which of the following commands will send 4 ICMP echo requests to a remote host named server1 to determine the round trip time it takes a packet to travel?

ping -c 4 server1

Which of the following commands can be used to terminate a process by the process name?

pkill

The daemons associated with network services listen for network traffic associated with a particular _____.

port

The process of sending print jobs from the print queue to the printer is called _____.

printing

Which command entered without arguments is used to display a list of processes running in the current shell?

ps

Which of the following commands will show a list of process names along with their process ID (PID)? (Choose two.)

ps top

What command is used to display the lineage of a process by tracing its PPIDs until the init daemon?

pstree

Which of the following characters, when pressed while the top program is running, will allow you to change the niceness of a process?

r

While the top command is running, what key can be pressed to change the nice value of a process?

r

Which of the following commands will count down from 10 to 1?

seq 10 -1 1

Which of the following hashing algorithm commands reduces the chances of collisions due to the bit length of the message digest?

sha256sum

What kernel option can be specified within a boot loader to force the system to boot to Single User Mode?

single

Which of the following commands will display the contents of the /etc/passwd file in alphanumerical order?

sort /etc/passwd

Which of the following commands will shut down a Linux system? (Choose all that apply.)

telinit 0 shutdown -h now poweroff

Which command can be used to connect to check the /etc/samba/smb.conf file for syntax errors?

testparm

Which of the following commands will list the time zones available on a Linux system?

timedatectl list-timezones

Which of the following options can be specified in the GRUB Legacy configuration file to set how long the boot menu is displayed before loading the default image?

timeout

Which of the following commands can be used to trace an IPv6 route? (Choose two.)

traceroute6 tracepath6

Using the syntax below, what command will create directories named one, two, and three? ​echo one two three | ___________ mkdir

xargs

Files that have been compressed using the xz utility typically have the ______ extension.

xz

What command can be used to display the contents of a file that was compressed with the compress utility?

zcat

Which of the following states describe a process that is waiting for a parent process to release its PID?

zombie

The SUSE and openSUSE Linux distributions use an alternative to yum but that provides the same functionality. What is the name of the command they use?

zypper

If incompatible X Windows settings are configured, where will the errors that are generated be written to?

~/.xsession-errors

Which command can be used to see processes running in the background?

b. jobs

Which filename extension indicates a tarball?

tar.xz

Which of the following port numbers is associated with SSH?

22

You want to configure the runlevels that a particular upstart daemon is started in. What should you do?

. Modify the daemon configuration file within the /etc/init directory

Which of the following files can you add filenames to so that the git add * command will not stage them?

.gitignore

Which of the following characters can be entered at the beginning of a line in a shell script to ensure that line is recognized as a comment rather than try to execute it?

#

Which of the following entries could be added to the rsyslog.conf configuration file to have all syslog messages displayed to console 10?

*.* /dev/tty10

Which option to the dpkg command can be used to list the files that comprise a package?

-L

What option can be used with the ps command to display an entire list of processes across all Terminals, including daemons?

-e

Which of the following can be used for comparing values within an if statement? (Choose two.)

-lt =

In which directory would a system administrator store scripts that should be run monthly by the cron daemon?

/etc/cron.monthly

Which of the following files does the hostnamectl command modify to set the hostname on a machine?

/etc/hostname

Which directory stores most UNIX SysV rc scripts?

/etc/init.d

Which of the following files is where the default runlevel is set on some Linux systems?

/etc/inittab

Which of the following files is a binary file that contains the rules for calculating the time based on your time zone relative to epoch time?

/etc/localtime

Where are the files stored that contain information for all of the time zones that could be recognized by a Linux operating system?

/usr/share/zoneinfo

Where are scheduled commands stored on Ubuntu Linux systems?

/var/spool/cron/atjobs

Which dump level indicates a full backup?

0

Which runlevel halts the system? a. 1 b. 6 c. 0 d. 5

0

Which of the following would be the results of running the command seq 7?

1 through 7 being displayed one number per line.

Which of the following is the highest value that can be set for the nice value which would result in a greater chance of a lower priority?

19

Which of the following represents stderr at the command line when used for redirection?

2

What kill level signal cannot be trapped?

9

Which of the following will take output from a command and append it to the end of a file?

>>

Which term is used to describe the process of pushing new versions of a Web app to a cloud provider for testing?

CD

Which DNS resource record is an alias to other records?

CNAME

Which of the following is the default desktop environment used by Linux Mint?

Cinnamon

If a process state is currently showing as uninterruptible sleep, which letter will show in the output of the ps command?

D

Which Windows program is often used to connect to a Linux server via SSH?

Putty

Which 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

Which of the following does a Linux kernel use to store the value of epoch time?

The number of seconds since January 1, 1970

A breadboard is laid out in a grid pattern, with a series of rows of interconnected holes (called tie points) into which you can plug component headers and wires.

True

As daemon processes are not associated with terminals, you must use an option such as -e alongside the ps command to view them. True or False?

True

You can clear a log file simply by redirecting nothing into it. True or False? a. True b. False

True

You can lock a user account by changing the default login shell to an invalid shell in /etc/passwd. True or False?

True

You have set up a TFTP server to support PXE booting of several workstations. Which of the following protocols would this setup make use of?

UDP

Which of the following is responsible for starting tasks and services during boot, stopping them during shutdown, and supervising them while the system is running?

Upstart

Which of the following can be used to graphically remotely administer a Linux machine?

VNC

Which two implementations of X Windows are commonly used in Linux? (Choose two answers.)

X.org Wayland

Which of the following is a lightweight desktop environment that uses very few system resources that a system administrator might choose to install on a Linux server instead of one of the two main desktop environments?

XFCE

Which of the following is a tool that can be used to search Internet software repositories for RPM packages that map to your system's architecture, and automatically install or upgrade those packages on your system?

YUM

Which of the following is the common escape sequence to display a horizontal tab using the echo command?

\t

Levi wants to run 5 commands sequentially, but does not want to create a shell script. He knows that each command is going to take approximately 20 minutes to run individually. However, he would like to go to lunch 15 minutes from now. He knows that he can type all of the commands on the same line and separate them with a certain character to run them sequentially. Which character can he type after each command to have them run one after the next without requiring further input from him?

a semicolon

What command can you use to view journald log entries on a system that uses Systemd?

b. journalctl

Which file holds the methods to be used and the order in which they will be applied for host name resolution?

a. /etc/nsswitch.conf

What is the name of the file that contains a listing of all users on the system and their home directories?

a. /etc/passwd

Which of the following files is always executed immediately after any user logs in to a Linux system and receives a BASH shell? a. /etc/profile b. ~/.bash_profile c. ~/.bash_login d. ~/.profile

a. /etc/profile

What is the name of the directory that contains symbolic links to UNIX SysV rc scripts for runlevel 2?

a. /etc/rc2.d

Which file would you modify to permanently change the IP address of a network interface on a Fedora 28 system?

a. /etc/sysconfig/network-scripts/ifcfg-enp8s0

What directory are you placed in when you log in as the anonymous user to an Ubuntu Server 18 FTP server?

a. /srv/ftp

You have created a full backup and four incremental backups. In which order must you restore these backups?

a. 0, 1, 2, 3, 4

Which of the following are stand-alone daemons? (Choose all that apply.)

a. Apache (httpd) d. DNS (named)

What must you do to transform your computer into a DNS server? (Choose all that apply.)

a. Create zone files. c. Create NIS maps. d. Run the name daemon (named).

Which of the following must you perform to share a directory using NFS? (Choose all that apply.)

a. Edit the /etc/exports file. c. Run the exportfs -a command. d. Start or restart the NFS daemons.

Which of the following statements is true? (Choose all that apply.)

a. If /etc/at.allow exists, only users listed in it can use the at command. b. If /etc/cron.allow exists, only users listed in it can use the cron command.

What does &> accomplish when entered on the command line after a command? a. It redirects both stderr and stdout to the same location. b. It does not accomplish anything. c. It redirects stderr and stdin to the same location. d. It appends stdout to a file.

a. It redirects both stderr and stdout to the same location.

You attempt to perform the git commit -m "Added listdir function" but the command fails. What are possible reasons for the failure? (Choose all that apply.) a. The user performing the commit has not set their Git user information. b. No files were added to the Git index beforehand. c. The user performing the commit is not running the command from within the Git repo directory. d. The master branch was not specified within the command itself.

a. The user performing the commit has not set their Git user information. b. No files were added to the Git index beforehand. c. The user performing the commit is not running the command from within the Git repo directory.

A for construct is a loop construct that processes a specified list of objects. As a result, it is executed as long as there are remaining objects to process. True or False? a. True b. False

a. True

Both aliases and functions can be used to store commands that can be executed, but functions can also accept positional parameters. True or False? a. True b. False

a. True

The sed and awk commands are filter commands commonly used to format data within a pipe. True or False? a. True b. False

a. True

Which of the following lines can be used to perform command substitution within a shell script? (Choose all that apply.) a. `command` b. ${command} c. ${!command} d. $(command)

a. `command` d. $(command)

You use lpstat and determine that a user named User1 has placed two large print jobs in the queue for Printer1 that have yet to start printing. They have print job IDs of Printer1-17 and Printer1-21, respectively. Which command would you use to remove these two jobs from the print queue?

a. cancel Printer1-17 Printer1-21

Which of the following will display the message welcome home if the cd /home/user1 command is successfully executed? a. cd /home/user1 && echo "welcome home" b. cat "welcome home" || cd /home/user1 c. cd /home/user1 || cat "welcome home" d. echo "welcome home" && cd /home/user1

a. cd /home/user1 && echo "welcome home"

Which of the following commands can be used to start a UNIX SysV daemon called lala in runlevels 1, 2 and 3?

a. chkconfig --level 123 lala on

Which command can be used to list containers that are currently running on the operating system only?

a. docker ps

Which of the following utilities can be used to check TCP/IP configuration and test network connectivity? (Choose all that apply.)

a. ifconfig b. iwconfig c. ping d. nmcli

Which command can be used to send a print job to the default printer named Printer1? (Choose all that apply.)

a. lp -d Printer1 file c. lp file

Which commands can be used to display TCP/IP connections on your Linux system? (Choose all that apply.)

a. netstat -t d. ss -t

To test DNS configuration by resolving a host name to an IP address, which command or commands can you use? (Choose all that apply.)

a. nslookup hostname b. dig hostname c. host hostname

Which construct can be used in a shell script to read stdin and place it in a variable? a. read b. sum c. verify d. test

a. read

You want to generate SSH keys for your user account and copy them to a remote computer to simplify future SSH authentication. What two commands can you use to perform these actions? (Choose two answers.)

a. ssh-keygen c. ssh-copy-id

Which of the following can be used to create a database within PostgreSQL? (Choose all that apply.)

a. the CREATE DATABASE statement within the PostgreSQL utility. d. the createdb command.

When a printer is rejecting requests,____________.

a. the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable

Which of the following commands can be used to search for packages that contain the word oobla on RPM software repositories?

a. yum search oobla

Which command can be used to create a new command that will monitor the contents of auth.log as they get added to the file?

alias showauth='tail -f /var/log/auth.log'

Which of the following Debian Package Management commands will install the newest versions of all packages that are currently installed on a system?

apt-get upgrade

Which of the following options for the tar command will create an archive that is also gzipped while displaying all of the work in progress to the terminal screen?

ar -czvf

A system administrator wants to schedule a task to run at 11 pm, but knows that she will not be in the office at that time. Which of the following commands can she use to schedule this task to run that night while she is at home?

at

Which of the following commands will display a list of the pending jobs to be run? (Choose all that apply.)

at -l atq at -q

Which of the following command can be used to remove a job from the list of pending jobs? (Choose all that apply.)

atrm at -r at -d

What is the term used to describe a user providing a user name and password to log in to a system?

authentication

When compiling source code into a binary program, which command performs a system check and creates the Makefile?

b. /configure

Which of the following statements is true? a. GRUB Legacy can be loaded from a MBR or GPT. b. After modifying /etc/default/grub, you must run the grub2-mkconfig command before the changes are made to GRUB2. c. GRUB2 can only be loaded from a UEFI System Partition. d. GRUB needs to be reinstalled after it has been modified.

b. After modifying /etc/default/grub, you must run the grub2-mkconfig command before the changes are made to GRUB2.

What are two means available to resolve a host name to the appropriate IP address? (Choose two answers.)

b. DNS c. /etc/hosts

Because stderr and stdout represent the results of a command and stdin represents the input required for a command, only stderr and stdout can be redirected to/from a file. True or False? a. True b. False

b. False

You have modified the /etc/aliases file to include a new email alias. However, when you send email to the alias, it cannot be delivered. What should you do?

b. Run the newaliases command.

Consider the following shell script:What would be displayed if a user executes this shell script and answers Blue when prompted? a. The answer is red or blue. b. The answer is not red nor blue. c. The code would cause an error. d. The answer is red or blue. The answer is not red nor blue.

b. The answer is not red nor blue.

When you run the ps command, how are daemon processes recognized?

b. There is a question mark in the TTY column.

Which of the following commands extracts an archive?

b. cpio -vicdu -I /dev/fd0

The current value for the HOME variable is displayed by which of the following commands? (Choose all that apply.) a. echo HOME= b. echo ~ c. echo $HOME d. echo ls HOME

b. echo ~ c. echo $HOME

What Systemd target corresponds to runlevel 5?

b. graphical.target

You have redirected stderr to a file called Errors. You view the contents of this file afterward and notice that there are six error messages. After repeating the procedure, you notice that there are only two error messages in this file. Why? a. After you open the file and view the contents, the contents are lost. b. The system generated different stdout. c. You did not append the stderr to the Error file, and, as a result, it was overwritten when the command was run a second time. d. You must specify a new file each time you redirect as the system creates the specified file by default.

c. You did not append the stderr to the Error file, and, as a result, it was overwritten when the command was run a second time.

Before a computer can use a router, what configuration information must it be provided?

c. default gateway

Before a user-defined variable can be used by processes that run in subshells, that variable must be __________. a. imported b. validated by running the env command c. exported d. redirected to the BASH shell

c. exported

Which process has a PID of 1 and a PPID of 0?

c. init/systemd

Which command can you use to synchronize ntpd with an NTP time source?

c. ntpq

Which command would you use to unlock a user account?

c. passwd -u username

Which of the following commands will most likely increase the chance of a process receiving more time slices?

c. renice -12

Which of the following commands can be used to list the files contained within an installed RPM package?

c. rpm -ql packagename

The at command is used to _______________.

c. schedule processes to run at a single instance in the future

Which command could you use to see a list of all environment and user-defined shell variables as well as their current values? a. ls /var b. env c. set d. echo

c. set

Which command can be used to connect to a remote Windows share called data on the server called fileserver?

c. smbclient //fileserver/data

Which command can be used to start X Windows, the window manager, and the default desktop environment? a. startgui b. startgdm c. startx d. gstart

c. startx

Which command is used to gain real-time information about processes running on the system, with the most processor-intensive processes listed at the beginning of the list?

c. top

Which command is used to delete a user account?

c. userdel username

Which command can you use to lock a user account?

c. usermod -L username

Which of the following results would be created by the command sequence: echo 'apple banana carrot dog elephant' | while read a b c; do echo result: $c $b $a; done

carrot dog elephant banana apple

Which of the following commands will send the output of the cat command to the grep command to be filtered?

cat /etc/passwd | grep jsmith

Which of the following will show account aging information for a user such as the date of the last password change, when the password expires, and the number of days of warning before the password expires?

chage -l jsmith

You have run the top command successfully, but realize that the q key on the keyboard has suddenly stopped working. What is another way that you can exit out of the top program?

ctrl-c

Which of the following commands can be used to pause a printer named Printer1?

cupsdisable Printer1

Which of the following operators reverses the meaning of a test statement? a. #! b. -o c. -a d. !

d. !

Nice values are used to affect process priorities using a range between _____________.

d. -20 and 19

Which file stores the Apache configuration in Fedora 28?

d. /etc/httpd/conf/httpd.conf

Which file does the UNIX SysV init daemon reference on startup to determine the default runlevel? a. /etc/initstate b. /inittab c. /etc/init d. /etc/inittab

d. /etc/inittab

Which file stores the IP addresses of the DNS servers used to resolve host names if no DNS servers are specified within the network configuration file for the network interface?

d. /etc/resolv.conf

Where are individual user tasks scheduled to run with the cron daemon stored on a Fedora system?

d. /var/spool/cron/username

How do you indicate a comment line in a shell script? a. There are no comment lines in a shell script. b. Begin the line with #!. c. Begin the line with !. d. Begin the line with #.

d. Begin the line with #.

How can you bypass the wait function and send a user process to the background?

d. You can use the Ctrl+z key combination and the bg command.

The pkill command terminates _________.

d. all instances of a process with the same name matched by a regular expression

Which of the following commands can be used to remove the test DPM package, including any test configuration files?

d. apt purge test

What is the name given to a process not associated with a terminal?

d. daemon process

When referring to the /etc/rsyslog.conf file, __________ specifies information from a certain area of the system, whereas ________ is the level of importance of that information.

d. facility, priority

Every if construct begins with if and must be terminated with? _________ a. end b. endif c. stop d. fi

d. fi

A runaway process that is faulty and consuming mass amounts of system resources ________.

d. is a rogue process

The IP address of 127.0.0.1 is also referred to as the _____.

d. loopback address

Every process has a process ID and a_______.

d. parent process ID

Which of the following commands creates an archive?

d. tar -zcvf /dev/st0 *

Which of the following commands will display the number of seconds that have elapsed since January 1, 1970?

date +%s

Which command can be used to create an image backup of a partition?

dd

After a background process has been started, what command below can be used to move it to the foreground?

fg

You have started a job running in the background that you want to now bring to the front so that you can watch it execute. Which of the following commands can be used to display the job's output to the terminal?

fg

When writing shell scripts and using an if statement to determine whether a set of code should be executed, what is the proper syntax to end the if construct? ___________

fi

A process spawning or initiating another process is referred to as _____.

forking

Which type of sensor is most likely to be used in seismology and mining to detect ground movement?

geophone

Which of the following commands should you use to specify that you want to use Git for version tracking on them?

git add

Which command can be used to download an updated copy of the master branch from the original Git repository?

git pull origin master

Which of the following commands can a user run to display the groups that they are a member of?

groups

Which of the following indicates the second MBR partition on the third hard disk drive to GRUB2?

hd2,msdos2

You run the command hostname server1 and issue the reboot command. You notice that the host name has reverted back to what it was before the reboot. Which of the following commands should you have used to change the host name instead?

hostnamectl set-hostname server1

Which of the following can be used to compare the hardware clock to the system clock, writing a new result to a new line every 10 seconds?

hwclock -c

You have recently modified the system time using the date command. What command can you run to ensure that the same time is updated within the system BIOS?

hwclock -w

Which of the following commands can be used to convert files between different character encodings?

iconv

Which of the following will invalid entries in the GRUB2 configuration cause?

kernel panic and halt the system

Which of the following commands will send a process's resources to /dev/null to kill the process for process ID 1357?

kill -9 1357

When connecting to a host via SSH for the first time, the user is prompted to accept the encryption fingerprint for the target computer which is stored in ___________ in the ~/.ssh/ directory.

known_hosts

Which command within the command-line FTP utility can be used to change the current directory on the local computer?

lcd

Which of the following commands should be run following the installation of a shared library to update the /etc/ld.so.conf and /etc/ld.so.cache files?

ldconfig

Which of the following commands will show a number of environment variables that start with LC_?

locale

When compiling source code into a binary program, which command does the compiling using the GNU C Compiler?

make

Which of the following files holds the configuration information for GRUB Legacy on Ubuntu Linux systems?

menu.lst

The subdirectory newdir does not currently exist in the current directory that you are in. Which of the following commands will create a new directory named newdir and then change into that directory? (Choose two.)

mkdir newdir; cd newdir mkdir newdir && cd newdir

Which of the following commands will generate a new initramfs?

mkinitrd dracut

Which of the following is the default window manager used by the GNOME version 3 desktop environment?

mutter

Which of the following commands will show active UDP connections on a Linux system? (Choose all that apply.)

netstat -u netstat --udp

Which command can be used to temporarily alter the primary group associated with a given user?

newgrp

Which of the following commands will display the output of a file while also displaying a line number at the left side of each line for the /etc/passwd file?

nl /etc/passwd

On a system running NetworkManager, which of the following commands can be used to view or modify connection information?

nmcli

Which of the following can be included in a shell script to ask the user to type in a password and then store it in the variable named $password?

read -s -p "Please enter the password: " password

Which of the following is a benefit of data-driven manufacturing?

reduction of waste in material goods

Which two commands can be used to modify the route table on a Linux computer? (Choose two answers.)

route ip

Which of the following commands will install an RPM package while ignoring any other packages that it may be dependent upon for proper operation?

rpm -ivh --nodeps package.rpm

Which of the following commands will install a package using the Red Hat Package Manager, showing all information, while printing pound signs to show the progress of installation?

rpm -ivh packagename.rpm

Which of the following commands will show the current runlevel along with the previous runlevel? (Choose all that apply.)

runlevel

Which of the following is a valid method of running a script named myscript.sh? (Choose two)

source myscript.sh ./myscript.sh

Which of the following would NOT typically be considered a goal of most IoT technologies?

store data

Which of the following commands will set the default runlevel of a Linux system?

systemctl set-default runlevel5.target

Which of the following commands will display a list of Systemd units sorted by the time they took to load?

systemd-analyze blame

Which of the following commands will prompt you to answer a series of questions to help determine which time zone file you should use?

tzselect

An alias has previously been created named showauth. Which of the following commands can be used to get rid of that alias?

unalias showauth

How many times will the following loop execute as part of a script: #!/bin/bash COUNTER=0 while [ $COUNTER -lt 7 ] do echo "hello world" done

until ctrl-c is used to terminate it

Which of the following commands can be used to schedule very frequent recurring tasks, such as running once every minute?

watch

Which of the following commands will count the number of lines in a file named data.csv?

wc -l data.csv

Which of the following is a special group that provides its members with the ability to run the su and sudo commands?

wheel


Ensembles d'études connexes

Catarata (GPC: Sin comorbilidades de segmento anterior / Adulto y adulto mayor en primer nivel)

View Set

Ap Gov Chapter 13 Practice Test--- Ari Cerja

View Set

Chapter 19: Documenting and Reporting

View Set

Preparation of Closing Statements UNIT EXAM PT.2

View Set