Linux Midterm
Which of the following commands can be used to scan a filesystem for disk usage, create, check, and repair quota files? a. quota b. edquota c. chkquota d. quotacheck
D
Which of these commands will set the following permissions on file1.txt?User = Read, Write, ExecuteGroup = Read, ExecuteOthers = Read a. chmod o=rwx,g=rx,u=r file1.txt b. chmod u=rwx, g=rx, u=r file1.txt c. chmod 754 file1.txt d. chmod file1.txt 754
2/2 B C
Which of the following represents stderr at the command line when used for redirection? a. 0 b. 1 c. 2 d. 3
C
The Linux kernel exists as a file named: a. vmlinuz b. vmlinux c. kernel.0 d. krn.linux
A
Which of the following permissions would show for a symbolic link when displayed with the ls -l command? a. -rw-r--r-- b. srwxrwxrwx c. lrwxrwxrwx d. srw-r--r--
C
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.) a. mkdir newdir || cd newdir b. mkdir newdir; cd newdir c. mkdir newdir && cd newdir d. mkdir newdir >> cd newdir
2/2 B C
Aria has modified the hard disk that hosts the operating system by using the fdisk command. The fdisk command indicates that the new partition information must be manually reloaded. Which of the following should she do next? (Choose two. Either answer is independently correct.) a. Run the parted command b. Run the partprobe command c. Run the cfdisk program d. Reboot the system
2/2 B D
Wayne is using the command line and is in his home directory. Which of the following will display a list of all files and their sizes from his home directory? (Choose two.) a. ls -ax b. ls -al ~ c. ls -ax ~ d. ls -al /home/wayne
2/2 B D
Jim wants to rename a directory for a project that he has been working on. Which of the following commands can he use to perform that action? a. mv projectx projecty b. rename projectx projecty c. ren projectx projecty d. move projectx projecty
A
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character. a. * b. ? c. + d. ^
A
The quotas for certain users can be edited by using which command? a. edquota b. chquota c. usrquota d. repquota
A
What command is most effective at identifying different types of files? a. stat b. ls -l c. ll d. file
A
What command is used to manage a software RAID configuration after installation? a. mdadm b. mdraid c. vgadm d. pgadm
A
What is the complete path and filename for the database that is used by the locate and mlocate commands? a. /var/lib/mlocate/mlocate.db b. /var/lib/locate/locate.db c. /etc/mlocate.db d. /etc/locate/mlocate.db
A
What service provides a method for the efficient transfer of files over the Internet? a. FTP b. HTML c. SMTP d. Telnet
A
When issuing the ls -F command, what special character indicates a linked file? a. @ b. * c. & d. =
A
Which command can be used to download an updated copy of the master branch from the original Git repository? a. git pull origin master b. git pull original master c. git pull master original d. git pull master origin
A
Which of the following types of cloud platforms would a webmail service offered to the general public be considered? a. SaaS b. PaaS c. IaaS d. MaaS
A
You have just created a variable named CREATOR. Which of the following commands will display the contents of the variable to standard output? a. echo $CREATOR b. print CREATOR c. echo CREATOR d. disp $CREATOR
A
Archie wants to optimize an XFS filesystem and minimize the chance of future corruption. Which of the following commands will compact or otherwise improve the layout of the contiguous blocks of file data for an XFS filesystem? a. defrag b. xfs_fsr c. fsck d. xfs_db
B
At the vi command mode prompt, what key combination will force a quit from the vi editor without saving changes? a. :q b. :q! c. :exit d. :!
B
Callie wants to make sure that a filesystem is checked every 20 days. Which of the following options, when used with the tune2fs command, would set a full filesystem check to run every 14 days? a. -i 14 b. -i 14d c. -d 14 d. -i 336
B
Each SCSI device attached to a system must be assigned an ID number. What is this ID number called? a. Device ID b. Target ID c. SCSI number d. SCSI controller
B
John has been using the cdrom on his computer that is running the Linux operating system. He pushes the eject button on the front of the drive, but it doesn't eject the disk. Which of the following commands should he run? (Choose all that apply.) a. unmount /media/cdrom b. umount /media/cdrom c. eject /media/cdrom d. detach /media/cdrom
B
Mike has changed directory into one subdirectory after the next and has lost track of where he's at in the directory tree. Which of the following commands can he use to tell him the full path to the current subdirectory he is in? a. cd - b. pwd c. cwd d. ls -dir
B
Mindy wants to create a new subdirectory at ~/2019projects/projectx/projectplans to start storing the initial project plans for projectx. However, this is the first project she has worked on in 2019 and the 2019projects directory does not exist yet. Which of the following commands will create the higher level directories if they do not already exist? a. mkdir -r ~/2019projects/project/projectplans b. mkdir -p ~/2019projects/project/projectplans c. mkdir --all ~/2019projects/project/projectplans d. mkdir -v ~/2019projects/project/projectplans
B
Select the utility below that will start and perform a thorough check of RAM for hardware errors when run. a. memcheck68 b. memtest86 c. fixram d. fsck
B
The apropos list command produces the same results as which command below? a. man -j list b. man -k list c. man -l list d. man -m list
B
To display a text file in reverse order, what command should be used? a. cat b. tac c. tee d. sed
B
What command can be issued to confirm which directory you are in at a command line prompt? a. dir b. pwd c. whereami d. ld
B
What file in the /proc directory contains a list of memory address ranges reserved for device use? a. meminfo b. ioports c. iomem d. misc
B
What would be the result of running the command chown :root file1.txt a. This would set the owner of file1.txt to root. b. This would set the group ownership of file1 to root. c. This would set the owner and group ownership of file1 to root. d. This would keep the current ownership of the file, and add root as a second owner of the file.
B
When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be: a. Arguments b. Options c. Keywords d. Metacharacters
B
Which Linux command can be utilized to display your current login name? a. who b. whoami c. id d. w
B
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? a. create showauth='tail -f /var/log/auth.log' b. alias showauth='tail -f /var/log/auth.log' c. new showauth as 'cat -f /var/log/auth.log' d. ln showauth='tail -f /var/log/auth.log'v
B
Which of the following commands can be used to display the filesystem and partition UUIDs on a Linux system? a. e2label b. blkid c. fatlabel d showpart
B
Which of the following is a virtual filesystem that is made up of virtual files that a Linux operating system is able to export information to about kernel sub-systems, hardware devices, and device drivers to make it easy for users to access the information? a. tmpfs b. sysfs c. procfs d. varfs
B
Clint has run the command parted /dev/sdb and wants to display a list of the existing partitions that exist on that drive. Which of the following commands can he use to display the existing partitions? a. disp b. list c. print d. display
C
Dustin runs a command at the command line trying to find out what kernel version the system is running. However, it doesn't give him the information he needs. He knows there is an option that can be used to display the kernel version. How can he find out which option to use? a. ver --help b. help version c. man uname d. lsproc -?
C
Elijah is done working with an external USB hard drive and wants to properly disconnect it. Which of the following commands should he use before unplugging the USB cable? a. unmount b. disable c. umount d. mount --eject
C
If a Linux installation ends abnormally and the screen displays a fatal signal 11 error, what type of error has occurred? a. Page fault b. IRQ fault c. Segmentation fault d. RAM failure
C
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. a comma b. a colon c. a semicolon d. a pound sign
C
Proxy servers keep track of the information passed to each client by maintaining what type of table? a. Firewall b. Routing c. Network Address Translation (NAT) d. Caching
C
Sandra needs to obtain the latest image of Fedora so that she can install it as a virtual machine on her Windows workstation. Which of the following file formats is Sandra likely to find available for download from Fedora's website in order to allow her to use the file as the source for booting and installing Linux as a VM? a. .zip b. .tar.gz c. .iso d. .tgz
C
The mutt software is an example of what type of mail service software on Linux? a. Mail Transfer Agent b. Mail Delivery Agent c. Mail User Agent d. Mail Transport Agent
C
What argument can be used with the chmod command to add read permission and remove write permission for a group on a file? a. u+r+w b. g-r+w c. g+r-w d. o+r-w
C
What is the term for a ZFS managed filesystem that is created from ZFS pools? a. ZFS store b. ZFS vault c. ZFS volume d. ZFS lake
C
What metacharacter can be used to issue two commands to be run in consecutive order, without piping or redirecting output? a. \ b. & c. ; d. |
C
What piece of software tells the operating system how to use a specific hardware device? a. Graphical user interface b. System service c. Device driver d. User interface
C
What two Linux distributions utilize the Debian package manager by default? a. Red Hat Linux b. SUSE Linux c. Linux Mint d. Ubuntu Linux
C
When viewing the version number for a Linux kernel, what number indicates the stability of the kernel? a. Major number b. Revision number c. Minor number d. Production kernel number
C
Which file should be configured so that quotas are enabled at boot time? a. /etc/edquota b. /etc/quotas c. /etc/fstab d. /etc/fsq
C
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics? a. $ b. x c. Crl+g d. P
C
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? (Choose two.) a. cat /etc/passwd | grep root | merge ~/root.txt b. cat /etc/passwd | grep root >> ~/root.txt c. grep root /etc/passwd | tee ~/root.txt d. grep root /etc/passwd | split ~/root.txt
C
Which of the following will the split command do on a file when no other options are specified? a. It will split a file into new files that are 1 kilobyte each. b. It will split a file into new files that are 1 megabyte each. c. It will split a file into new equally sized files that are 1/10th of the original file size. d. It will split a file into new files that are 1,000 lines each.
C
An alias has previously been created named showauth. Which of the following commands can be used to get rid of that alias? a. alias -d showauth b. ualias shoauth c. noalias showauth d. unalias showauth
D
An archive of files that usually contain scripts that install the software contents to the correct location on the system is referred to as a: a. Router b. Package manager c. DBMS d. Tarball
D
How many times will the following loop execute as part of a script:#!/bin/bashCOUNTER=0while [ $COUNTER -lt 7 ]doecho "hello world"done a. 0 b. 1 c. 7 d. until ctrl-c is used to terminate it
D
If a hard link is created to a file and then the original file is deleted, which of the following is true? a. Both the original file and the hard link are removed. b. An error message will be displayed preventing the deletion of the original file. c. The original file will be removed while the hard link remains, though the content will not be accessible. d. The original file will be removed while the hard link remains usable to access the contents of the file.
D
If the physical extent of a volume group is set to 32MB, what is the maximum logical volume size? a. 256GB b. 512GB c. 1TB d. 2TB
D
In Fedora 20, what journaling database system has replaced the logging system used to record the messages normally stored within the boot.log, messages, and syslog files? a. systemd b. messaged c. logd d. journald
D
In order to create and manage KVM or Qemu virtual machines, a Linux system must have which of the following installed? a. libvm b. virsh c. vmlib d. libvirt
D
Kate wants to compare two text files to identify what might have been changed from one version to another. Which of the following commands can she use to do this? a. match document1.txt document2.txt b. version --compare document1.txt document2.txt c. compare document1.txt document2.txt d. diff document1.txt document2.txt
D
Nicholas wants to verify whether a file is a hard link to a file within the same directory. Which of the following commands could he use to see information that would be helpful to make this determination? a. ls -s b. ls -l c. ls -al d. ls -i
D
Select the command that can be used to provide a long listing for each file in a directory: a. ls -T b. ls -L c. ls -F d. ls -I
D
The Filesystem Hierarchy Standard specifies what directory as the root user's home directory? a. /bin b. /home/root c. /boot d. /root
D
To ensure that Linux has detected the correct amount of RAM in the system after installation, you should view the contents of what file in the proc directory? a. /proc/mem b. /proc/cpuinfo c. /proc/meoryinfo d. /proc/meminfo
D
Und er the root directory in Linux, which directory contains system commands and utilities? a. /o pt b. /var c. /boot d. /usr
D
What Linux distribution is the most commonly used distribution within organizations today? a. Mandrake b. SuSE c. Debian d. Red Hat
D
What command can be used to check different kinds of filesystems on Linux for errors? a. chkdsk b. fs_check c. errorchk d. fsck
D
What command can be used to display the last five lines of a text file? a. end -5 b. head -5 c. stop -5 d. tail -5
D
What directory under / contains the log files and spools for a Linux system? a. /boot b. /usr c. /opt d. /var
D
What file under the proc directory contains information regarding what modules are currently loaded into the Linux kernel? a. modinfo b. kmods c. mod_info d. modules
D
What software type is distributed free of charge, but the source code is not available? a. Open source software b. Shareware c. Closed source software d. Freeware
D
When using the vi text editor, which of the following keys, when in command mode, will change to insert mode and place the cursor at the end of the current line? a. i b. a c. I d. A
D
Which command should you run after installing a new kernel module to update the module dependency database? a. insmod b. modprobe c. lsmod d. depmod
D
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? a. $ b. > c. % d. #
D
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
Chase is trying to extract records for employees 423 through 428 out of a comma separated values file and store them in another one. Which of the following commands would accomplish this? (Choose all that apply.) a. cat employees.csv | grep 423,424,425,426,427,428 > employees.csv b. cat employees.csv | grep "42[3-8]" > employees-newhires.csv c. grep "42[3-8]" employees.csv > employees-newhires.csv d. grep "42[3-8]" < employees.csv > employees-newhires.csv
3/3 B C D
Jo has received a text file which contains multiple instances of his name spelled correctly as well as multiple instances spelled as Joe. Which of the following commands would search a text file for any occurrences of either spelling and display them out to the terminal? (Choose three.) a. grep "Joe?" document1.txt b. grep -E "Joe?" document1.txt c. grep "Joe*" document1.txt d. grep -E "Joe*" document1.txt
3/3 B C D
If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature? a. Alt b. Tab c. Ctrl d. Esc
B
If the mkfs command is executed to create a filesystem and only the block device name is specified, which of the following filesystems will be created? a. exFAT b. ext2 c. ext3 d. ext4
B
In order to move from the /home/joe/test/data to the /home/joe directory, what command should be issued? a. cd .. b. cd ../.. c. /home/joe d. cd ./..
B
In order to set all of the special permissions on a certain file or directory, which command should be used on a file named filename? a. chmod 777 filename b. chmod 7777 filename c. chmod 6666 filename d. chmod 0000 filename
B
Jan needs to set permissions on a file so that the owner has read, write, and execute permissions. The group should have read permissions only, and everyone else should have no access. Which of the following parameters, when used with the chmod command, would set the permissions described? a. 047 b. 740 c. 026 d. 620
B
Jean installs a distribution of Linux on a workstation and attempts to run the locate command to find a certain file. Instead of returning the results she expected, an error message is displayed that it cannot find the mlocate.db file in its default location. Which of the following commands should Jean run in an attempt to resolve this problem? a. apt upgrade mlocate b. updatedb c. locate --update d. mlocate --update
B
Select the command that can be used to change the root filesystem to a different directory, such as when you are in a rescue environment. a. change_root b. chroot c. set_root d. croot
B
Leonard wants to find detailed information about the Bluetooth kernel module. Which of the following commands can he use to display this information? a. modstatus bluetooth b. lsmod bluetooth c. modinfo bluetooth d. modstat bluetooth
C
Lynn runs the locate command and the results include many files from a directory that she doesn't want to include in her search. Which of the following files could Lynn modify so that the locate command no longer includes those results? a. /etc/locate.d/updatedb.conf b. /etc/locate.conf c. /etc/updatedb.conf d. /etc/locatedb.conf
C
What metacharacter indicates background command execution? a. @ b. ^ c. & d. !
C
A government office wants to secure a few of its Linux systems so that they can only use certain USB devices. After plugging in a USB device, which of the following commands could be used to detect certain identifying information that can be used to only allow that type of USB device? a. usbdetect b. modusb c. lspci d. lsusb
D
After logging into a terminal, a user will receive an interface known as which option? a. Processor b. User interface c. Swap memory d. Shell
D
Which of the following options will change the ownership of files and directories recursively within a directory? (Choose all that apply.) a. -r b. -R c. --recursive d. --follow
2/2 B C
Which of the following can be used to mount a filesystem? (Choose all that apply.) a. A device path such as /dev/sdb2 b. A filesystem UUID c. A filesystem label d. A filesystem nickname configured in /etc/mtab
3/3 A,B C
Which of the following can be used for comparing values within an if statement? (Choose two.) a. -lt b. -neq c. = d. -grt
2/2 A C
Which of the following can be used to show the block devices on a Linux system? (Choose two.) a. ls /sys/block b. cat /proc/block c. lsblk d. ls /etc/block
2/2 A C
Which of the following is a valid method of running a script named myscript.sh? (Choose two) a. source myscript.sh b. run myscript.sh c. exec ./myscript.sh d. ./myscript.sh
2/2 A D
Jamie has created a hard link to another file within the same directory. Which of the following commands can he use to verify that the hard link was created correctly? (Choose all that apply.) a. ls -il b. ls -i c. ls -l d. ls -al
2/2 AB
After a shell is no longer needed, what command can be given to exit the shell? a. exit b. stop c. reset d. quit
A
Garrett wants to search through a csv file to find all rows that have either the name John or Bob in them and display them out to the terminal. Which of the following commands could Garrett use to perform this search? a. grep -E "(John|Bob)" salesemployees.csv b. grep (John|Bob) salesemployees.csv c. grep -E (John|Bob) salesemployees.csv d. egrep (John|Bob) salesemployees.csv
A
Which of the following commands will display all files and directories within the /var/log directory or its subdirectories which are owned by the root user? (Choose two.) a. find /var/log -user root b. find -uid root -print /var/log c. find -user root -print /var/log d. find -path /var/log -user root
A
Which of the following commands will prompt to convert an MBR partition to GPT, thus destroying all existing MBR partitions on a disk? a. gdisk b. cfdisk c. gfdisk d. iconv
A
Which of the following commands will send the output of the cat command to the grep command to be filtered? a. cat /etc/passwd | grep jsmith b. cat /etc/passwd > grep jsmith c. cat /etc/passwd >> grep jsmith d. cat /etc/passwd @ grep jsmith
A
A calendar for the current month can be shown on the command line by issuing which command? a. date b. cal c. w d. id
B
On a system using the KVM hypervisor, which of the following modules would you expect to see as part of the output of the lsmod command on a guest Linux virtual machine? a. hv_ b. virtio c. vmw d. hyperv_
B
In Linux, the core component of the GUI is known as: a. GNOME b. KDE c. X Windows d. Red Hat
C
Which of the following directories is created by default when an ext2, ext3, or ext4 filesystem is created on a device that is used by the fsck utility? a. /var/crash/ b. /var/tmp/ c. /lost+found/ d. /proc/tmp/
C
Which of the following is the common escape sequence to display a horizontal tab using the echo command? a. \tab b. ?tab c. \t d. %tab
C
Which of the following is the greatest expense for companies using Linux? a. Additional software b. Operating system cost c. Hiring people to maintain the Linux system d. Software upgrades
C
Which of the following commands will display the contents of the /etc/passwd file in alphanumerical order? a. cat --sort /etc/passwd b. cat -s /etc/passwd c. sed /etc/passwd d. sort /etc/passwd
D
Which of the following is a type of software that allows a piece of hardware to host multiple operating systems? a. guest operating system b. thick client c. thin client d. hypervisor
D
Which of the following will take output from a command and append it to the end of a file? a. < b. << c. > d. >>
D
The iptables software on Linux is an example of what kind of software? a. Routing b. Anti-virus c. Firewall d. Proxy
C
The United States Air Force was able to install Linux on a popular gaming console and then connect over 1,700 of these systems together to work as one big supercomputer. Which of the following types of technologies did they implement? a. herding b. cloud computing c. group computing d. clustering
D
Which of the following commands will not interpret regular expressions, which translates into faster results being returned? (Choose all that apply.) a. grep b. grep -F c. egrep d. fgrep
2/2 B D
Which of the following commands can be used to create and activate a swap partition on a Linux system? (Each answer represents part of the whole.) a. makeswap /dev/sda6 b. mkswap /dev/sda6 c. mkeswap /dev/sda6 d. mke2swap /dev/sda6 e. mke2swap -on /dev/sda6 f. mkswap -on /dev/sda6 g. swapon /dev/sda6
2/2 B G
When using the vi text editor, which of the following keys, when in command mode, will move to the last line in the document? a. G b. L c. P d. W
A
Which of the following are valid permissions for a directory where the command chmod 1777 has been used to set the permissions on it? a. drwxrwxrwt b. Srwxrwxrwx c. trwxrwxrwx d. drwxrwxrw-
A
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? a. read -s -p "Please enter the password: " password b. read -p "Please enter the password: " $password c. read -p -s "Please enter the password: " password d. read -s -p "Please enter the password: " $password
A
Which of the following commands can be used to create a BASH variable named CREATOR with the value of Torvalds? a. CREATOR="Torvalds" b. set $CREATOR = "Torvalds" c. CREATOR = "Torvalds" d. var CREATOR as "Torvalds"
A
Which of the following commands can be used to create and manage a software RAID configuration after installation? a. mdadm b. raidadm c. dmadm d. madam
A
Which of the following commands can be used to display general hardware information for the entire system? a. lshw b. lscpu c. hwdisp d. hware
A
Which of the following commands can be used to show the block devices, including their major and minor numbers, on a system which are located in the /sys/block directory? a. lsblk b. cat /sys/block c. ls -al /sys/block d. lsblock
A
Which of the following commands will create a symbolic link named foo.txt to an original file named bar.txt a. ln bar.txt foo.txt b. ln foo.txt bar.txt c. ln -s bar.txt foo.txt d. ln -h foo.txt bar.txt
A
Which of the following files can you add filenames to so that the git add * command will not stage them? a. .gitignore b. .gitnopush c. .ignore d. .nopush
A
Which of the following server roles does Apache perform? a. web server b. mail server c. name server d. certificate authority
A
Which of the following umask settings will result in new files receiving the default permissions -rw-------? a. 0177 b. 0600 c. 0188 d. 0688
A
Which of the following commands will return one result of where the grep binary executable is located? (Choose two.) a. which grep b. locate grep c. type grep d. find grep
A C
Which of the following commands can be used to recursively search a directory tree for files that meet a certain criterion without using a database or premade index of files? a. locate b. find c. where d. search
B
Which of the following commands cannot be used to create an exFAT filesystem on a USB thumb drive that is recognized as /dev/sdb? a. mkfs.exfat /dev/sdb1 b. mkfs exfat /dev/sdb1 c. mkexfatfs /dev/sdb1 d. mke2fs.exfat /dev/sdb1
B
Which of the following commands will count the number of lines in a file named data.csv? a. lc data.csv b. wc -l data.csv c. lines data.csv d. count -l data.csv
B
Which of the following commands will display a summarization of quotas for a filesystem? a. quota --list b. repquota c. quotadisplay d. quotaprint
B
Which of the following commands will display the current CPU(s) detected by a Linux system? a. cat /sys/cpuinfo b. cat /proc/cpuinfo c. cat /etc/cpu.conf d. cat /var/log/boothw.log
B
Which of the following is required as a separate partition in order to use LVM? a. /var b. /boot c. /tmp d. /home
B
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? a. when b. where c. if d. comp
C
Which of the following terms describes a type of useful and legitimate software that is distributed by a developer where they do not charge for the software but also do not distribute the source code along with it? a. shareware b. freeware c. malware d. tryware
B
Which of the following types of encryption uses a pair of keys known as a public and private? a. symmetric b. asymmetric c. SHA1 hashing d. message digest
B
Which of the following commands can be used to recursively search through the directory tree in search of a file that meets a set of given criteria instead of using an indexed database? a. locate b. mlocate c. find d. where
C
Which of the following commands can be used to update the last modified timestamp on a file, or if the file specified does not exist will create the file? a. update file.txt b. updatets file.txt c. touch file.txt d. stamp file.txt
C
Which of the following commands should you use to specify that you want to use Git for version tracking on them? a. git version b. git track c. git add d. git new
C
Which of the following commands will count down from 10 to 1? a. seq 10 1 b. seq 10 -1 c. seq 10 -1 1 d. seq 10 1 -1
C
Which of the following commands will delete a directory and all of the files contained within it? (Choose all that apply.) a. rm olddir b. rmdir olddir c. rm -rf olddir d. rmdir -rf olddir
C
Which of the following commands will display the exit status of the last command used in the BASH shell? a. echo $status b. echo $exit c. echo $? d. echo $!
C
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? a. numbers /etc/passwd b. wc -l /etc/passwd c. nl /etc/passwd d. ln /etc/passwd
C
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 a. elephant dog carrot b. apple banana carrot dog elephant c. carrot dog elephant banana apple d. carrot dog elephant apple banana
C
Which of the following types of servers can be used to cache requested Internet resources so that they can be more quickly delivered to users requesting the same resource while at the same time reducing the burden on the external network connection to the Internet for an organization? a. file server b. DNS server c. proxy server d. DHCP server
C
Which of the following virsh commands will display the total amount of memory as well as the amount of free memory for a node? a. nodesh b. nodemem c. nodememstats d. showmem
C
Which of the following would be a term applicable to an e-mail program on a workstation that is used to view email? a. MTA b. MDA c. MUA d. MBR
C
Which of the following would be the device file for the third partition on the second SATA drive on a Linux system? a. /dev/hdb3 b. /dev/hdc2 c. /dev/sdb3 d. /dev/sdc2
C
Which of the following would be the results of running the command seq 7? a. 6 through 0 being displayed one number per line. b. 7 through 1 being displayed one number per line. c. 1 through 7 being displayed one number per line. d. 0 through 6 being displayed one number per line.
C
Jackson wants to automatically mount a secondary internal hard drive when his Linux workstation boots up. In which of the following files should he configure an entry for the partition on the drive that he wants to mount? a. /etc/ftab b. /etc/crontab c. /etc/mtab d. /etc/fstab
D
Which of the following are true of the echo command? a. When used to display text, quotation marks are optional. b. It can be used to display shell variables by including a $ sign in front of the variable name. c. Including a semicolon at the end of the line will not affect the text being displayed. d. All of the other options are true.
D
Which of the following can be used to synchronize the time between a number of Linux servers and workstations on a network with a time clock source on the Internet? a. SFTP b. IMAP c. SMTP d. NTP
D
Which of the following commands when run from the /, or root, directory will return a very long list of many pages of results? a. fdisk --list b. ls -al c. df d. du
D
Which of the following commands will display messages that were displayed during the boot sequence by the kernel? a. kdis b. kernlog c. messages d. dmesg
D