LINUX Midterm
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
/dev/sbd3
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
/etc/updatedb.conf
Under the root directory in Linux, which directory contains system commands and utilities? a)/opt b)/var c)/boot d)/usr
/usr
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
2TB
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
SaaS
After a shell is no longer needed, what command can be given to exit the shell? a)exit b)stop c)reset d)quit
exit
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
find
If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?
tab
What command can be used to display the last five lines of a text file?
tail -5
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
touch file.txt
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.)
umount /media/cdromeject /media/cdrom
Which Linux command can be utilized to display your current login name? a)who b)whoami c)id d)w
whoami
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.
All the options are true
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
Clustering
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
Freeware
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
G
Which of the following is the greatest expense for companies using Linux?
Hiring people to maintain the Linux system
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
MUA
When viewing the version number for a Linux kernel, what number indicates the stability of the kernel?
Minor number
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
NTP
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.
This would set the group ownership of file1 to root
In Linux, the core component of the GUI is known as:
X windows
Which of the following types of encryption uses a pair of keys known as a public and private?
asymmetrical encryption
Which of the following commands can be used to display the filesystem and partition UUIDs on a Linux system?
blkid
In order to move from the /home/joe/test/data to the /home/joe directory, what command should be issued?
cd ../..
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?
iso
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--
lrwxrwxrwx
Select the command that can be used to provide a long listing for each file in a directory:
ls -l
Which of the following commands when run from the /, or root, directory will return a very long list of many pages of results?
ls -l
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
mkfs exfat /dev/sbd1
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.)
mkswap /dev/sda6
Which of the following is required as a separate partition in order to use LVM?
must create one or more PVs that reference a partition on your hard disk in the computer
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
mv projectx projecty
When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be:
options
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
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
proxy server
What command can be issued to confirm which directory you are in at a command line prompt?
pwd
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
rm -rf olddir