Linux, Chapters 1-6, Midterm Exam

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

CH2 Which prompt does the root user receive when logged in to the system? a. # b. ! c. $ d. @

#

CH2 Which prompt do regular users receive when logged in to the system? a. # b. ! c. $ d. @

$

CH4 After typing the command umask 731, the permissions on all subsequently created files and directories will be effected. In this case, what will the permissions on all new files be? a. ----wx--x b. ---r--rw- c. rw-rw-rw- d. rwxrw-r--

---r--rw-

CH4 The command chmod 317 file1 would produce which of the following lines in the ls command? a. --w-rw-r-e 1 user1 root 0 Apr 29 15:40 file1 b. --w-r--rwx 1 user1 root 0 Apr 29 15:40 file1 c. --wx--xrwx 1 user1 root 0 Apr 29 15:40 file1 d. -rwxrw-r-x 1 user1 root 0 Apr 29 15:40 file1

--wx--xrwx 1 user1 root 0 Apr 29 15:40 file1

CH5 Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command? /dev/sda1 / ext4 defaults 1 1 none /dev/pts devpts gid=5,mode=620 1 0 none /proc proc defaults 0 1 none /dev/shm tmpfs defaults 1 0 /dev/sdc2 swap swap defaults 0 1 /dev/dvd /media/dvd iso9660 noauto,ro 0 0 /dev/fd0 /media/floppy auto noauto 0 0 a. all of them, as fsck is run automatically at boot for all filesystems b. /, /proc and swap c. none, as fsck must be run manually for each filesystem d. /, /dev/pts and /dev/shm

/, /proc and swap

CH5 You plug a USB flash memory drive into a system that has two SATA hard disks. What will the partition on this USB flash memory drive be recognized as to the Linux system? a. /dev/sdc1 b. /dev/sda2 c. /dev/sdb1 d. /dev/sda1

/dev/sdc1

CH6 You want to view log files to get information about a problem that occurred during a Linux installation. In which directory will you likely find the log files? a. /etc/log b. /root/log c. /sys/log d. /var/log

/var/log

CH4 What does the mv command do? (Choose all that apply.) a. It makes a directory. b. It moves a file. c. It makes a volume. d. It moves a directory.

It moves a file It moves a directory

CH4 What must a user do to run cp or mv interactively and be asked if she wants to overwrite an existing file? a. There is no choice as the new file will overwrite the old one by default. b. Type cp -i or mv-i. c. Type interactive cp or interactive mv. d. Just type cp or mv as they run in interactive mode by default.

Just type cp or mv as they run in interactive mode by default

CH1 Linux was developed by __________ to resemble the _________ operating system. a. Linus Torvalds, MINIX b. Richard Stallman, MINIX c. Richard Stallman, GNU d. Linus Torvalds, GNU

Linus Torvalds, MINIX

CH1 Many types of software are available today. Which type of software does Linux represent? a. Freeware b. Closed Source Software c. Shareware d. Open Source Software

Open Source Software

CH2 How can you protect a metacharacter (such as the $ character) from shell interpretation? a. Precede it with a $. b. Precede it with a /. c. Precede it with a \. d. Follow it with a \.

Precede it with a \

CH3 How can a user switch from insert mode to command mode when using the vi editor? a. Type in a : character b. Press the Del key c. Press the Esc key d. Press the Ctrl+Alt+Del keys simultaneously

Press the Esc key

CH1 Who formed the Free Software Foundation to promote open development? a. Dennis Ritchie b. Richard Stallman c. Ken Thompson d. Linus Torvalds

Richard Stallman

CH1 Every computer consists of physical components and nonphysical components. The nonphysical components of a computer that understand how to work with the physical components are referred to as _________ a. Software b. Hardware c. Records d. Processors

Software

CH2 Which of the following is NOT an example of virtualization software that can be used to install Linux within another operating system? a. VMware b. Oracle VirtualBox c. Microsoft Hyper-V d. Spiceworks

Spiceworks

CH4 When you change the data in a file that is hard-linked to three others, __________. a. Only the data in the file you modified is affected. b. Only the data in the file you modified and any hard linked files in the same directory are affected. c. The data in the file you modified and the data in all hard linked files are modified as they have different inodes. d. The data in the file you modified as well as the data in all hard linked files are modified as they share the same data and all have the same inode and file size.

The data in the file you modified as well as the data in all hard linked files are modified as they share the same data and all have the same inode and file size

CH2 True/False: To install Linux within a virtual machine, you can specify the path to an ISO image that contains the Linux installation media within virtualization software without having to first write the ISO image to a DVD or USB flash drive.

True

CH3 True/False: Linux has only one root directory per directory tree. True or False?

True

CH4 After typing the ls -F command, you see the following line in the output: -rw-r-xr-- 1 user1 root 0 Apr 29 15:40 file1 What does this mean? a. User1 has read and write, all others have read and execute, and members of the root group have read permissions to the file. b. All users have read and write, members of the root group have read and execute, and user1 has read permissions to the file. c. User1 has read and write, members of the root group have read and execute, and all others have read permissions to the file. d. Members of the root group have read and write, user1 has read and execute, and all others have read permissions to the file.

User1 has read and write, members of the root group have read and execute, and all others have read permissions to the file

CH1 The core component of the Linux operating system is the Linux kernel. If you were a Linux systems administrator for a company, when would you need to upgrade your Linux kernel? (Choose all that apply.) a. when you need support in Linux for new hardware b. when you need another user interface c. when you need to increase the stability of Linux d. when you need to use kernel modules

When you need support in Linux for new hardware When you need to increase the stability of Linux

CH5 You want to see the filesystems that are presently in use on the system. What command could you use? a. cat /etc/mtab b. ls -l /etc/fstab c. cat /etc/fstab d. ls -l /etc/fstab

cat /etc/mtab

CH3 If a user's current directory is /home/mary/project1, which command could she use to move to the etc directory directly under the root? a. cd etc b. cd /etc c. cd /home/mary/etc d. cd ..

cd /etc

CH4 Which of the following commands will change the user ownership and group ownership of file1 to user1 and root respectively? a. chown root:user1file1 b. chown user1 : root file1 c. chown user1:root file1 d. chwon root : user1file1

chown user1:root file1

CH5 Which command is used to display the amount of free space that exists on a filesystem? a. df b. du c. quota d. fsck

df

CH3 The tac command _________. a. is not a valid Linux command b. displays the contents of a file in reverse order last line first and first line last c. displays the contents of a file in reverse order last word on the line first and first word on the line last d. displays the contents of hidden files

displays the contents of a file in reverse order last line first and first line last

CH4 What are the three standard Linux permissions? a. execute, read, write b. read, write, examine c. full control, read-execute, write d. read, write, modify

execute, read, write

CH3 What will the following wildcard regular expression return: file[a-c]? a. filea, fileb, filec b. filea, filec c. fileabc d. filea-c

filea, fileb, filec

CH2 Which of the following is NOT a piece of information that the Fedora installation program prompts you for? a. keyboard layout b. time zone c. installation destination d. firewall settings

firewall settings

CH2 What command can you use to safely shut down the Linux system immediately? a. halt b. shutdown -c c. shutdown -r d. down

halt

CH6 Where is the /proc filesystem stored? a. on the hard disk drive in the / directory b. on the hard disk drive in the /etc directory c. on the hard disk drive in the /var directory d. in RAM

in RAM

CH2 What equivalent to the man command generally provides an easier-to-read description of the queried command and also contains links to other related information? a. man -descriptive b. who c. info d. man help

info

CH6 Which of the following commands can be used on a Fedora 20 system to view hardware and service startup information during the boot process? a. less /var/log/messages b. less /var/log/syslog c. journalctl -b d. less /var/log/boot.log

journalctl -b

CH5 Which command is used to format a partition on a hard disk drive with the ext4 filesystem? a. mkfs -t ext4 device b. makeext4FS device c. ext4mkfs device d. format_ext4 device

mkfs -t ext4 device

CH5 Which command mounts all existing filesystems in /etc/fstab a. mount /etc/mtab b. mount -a c. mount -f d. mount /etc/fstab

mount -a

CH5 Which of the following commands can be used to create partitions on either a MBR or GPT hard disk? a. parted b. fdisk c. cfsck d. gdisk

parted

CH3 Which command would a user type on the command line to find out what directory in the directory tree he is currently in? a. cd b. pd c. where d. pwd

pwd

CH3 A special device file is used to ___________. a. keep a list of device settings specific to each individual user b. represent hardware devices such as hard disk drives and ports c. do nothing in Linux d. enable proprietary custom-built devices to work with Linux

represent hardware devices such as hard disk drives and ports

CH4 The default permissions given by the system prior to analyzing the umask are ___________for directories, and __________ for files. a. rw-rw-rw- and rwxrwxrwx b. rw-rw-rw- and r--r--r-- c. rwxrwxrwx and rw-rw-rw- d. rw-rw-rw- and rw-rw-rw-

rwxrwxrwx and rw-rw-rw-

CH6 Which of the following is NOT a type of RAID a. serial RAID b. hardware RAID c. software RAID d. firmware RAID

serial RAID

CH2 After you log in to a terminal, you receive a user interface called a __________. a. GUID b. text box c. command screen d. shell

shell

CH5 What does the du /var command do? a. displays the amount of free space in the /var directory b. dumps the /var directory c. shows the users connected to the /var directory d. shows the size of all directories within the /var directory

shows the size of all directories within the /var directory

CH6 Which type of RAID is entirely configured during the Linux installation process? a. firmware RAID b. hardware RAID c. software RAID d. serial RAID

software RAID

CH4 What does the /var directory contain? a. various additional programs b. spools and log files c. temporary files d. local variance devices

spools and log files

CH3 Which command searches for and displays any text contents of a binary file? a. od b. less c. strings d. text

strings

CH2 Which two partitions do you typically create at minimum during a Fedora Linux installation? a. /boot b. swap c. / d. /home

swap /

CH3 A user types in the command head /poems/mary What will be displayed to the terminal screen? a. the first 20 lines of the file mary b. the first 10 lines of the file mary c. the first line of the file mary d. the header for the file mary

the first 10 lines of the file mary

CH6 Which RAID level is also referred to as mirroring? a. 0 b. 5 c. 1 d. 4

1

CH6 Linux servers are typically installed in a rack using rackmount server hardware. Which of the following is used to describe the minimum height of a rackmount server? a. Series A b. 1U c. Level 5 d. Type A

1U

CH1 Which of the following kernels are developmental kernels? (Choose all that apply.) a. 3.2.7 b. 3.4.4 c. 3.3.4 d. 3.5.5

3.3.4 3.5.5

CH6 Which RAID level uses striping with parity? a. 1 b. 2 c. 4 d. 5

5

CH1 What is the most common open source Web server available for Linux? a. Apache b. Samba c. pine d. Squid

Apache

CH2 What is the default shell in Linux called? a. SH b. BASH c. BSH d. CSH

BASH

CH6 Which of the following items are you typically required to configure during a Linux server installation? (Choose all that apply.) a. Boot loader configuration b. System host name c. Package selection d. Update configuration

Boot loader configuration System host name Package selection Update configuration

CH4 What was created to define a standard directory structure and common file location for Linux? a. FHS b. X.500 c. root directory d. FSH

FHS

CH2 True/False: Linux commands entered via the command line are not case sensitive.

False

CH3 True/False: The less command offers less functionality than the more command.

False

CH4 True/False: A symbolic link is also known as a soft link and is depicted by an @ appearing at the beginning of the filename when viewed using the ls -l command.

False

CH4 True/False: There is no real difference between the "S" and "s" special permissions when displayed using the ls -l command. One just means it is on a file and the other that it is on a directory.

False

CH5 True/False: After a partition on a hard disk drive is formatted with a filesystem, all partitions on that hard disk drive must use the same filesystem.

False

CH5 True/False: Character devices typically transfer data more quickly than block devices

False

CH1 Which common GUI environments are available in most Linux distributions? (Choose all that apply.) a. CDE b. GNOME c. KDE d. RPM

GNOME KDE

CH1 To which license does Linux adhere? a. GNU General Public License b. Open license c. Artistic license d. Free source license

GNU General Public License

CH3 After typing the ls -a command, you notice that there is a file whose filename begins with a dot ( . ). What does this mean? a. It is a binary file. b. It is a system file. c. It is a file in the current directory. d. It is a hidden file.

It is a hidden file

CH3 After typing the ls -F command, you notice a filename that ends with an * asterisk character. What does this mean? a. It is a special device file. b. It is a hidden file. c. It is an executable file. d. It is a linked file.

It is an executable file

CH1 What are some good reasons for using Linux in a corporate environment? (Choose all that apply.) a. Linux software is unlikely to be abandoned by its developers. b. Linux is widely available for many platforms and supports many programming languages. c. Most Linux software is closed source. d. Linux is secure and has a lower total cost of ownership than other operating systems.

Linux software is unlikely to be abandoned by its developers. Linux is widely available for many platforms and supports many programming languages. Linux is secure and has a lower total cost of ownership than other operating systems.

CH1 A production kernel refers to a kernel whose _________. a. revision number is even b. minor number is odd c. major number is odd d. minor number is even

Minor number is even

CH1 Linux is __________ and __________ operating system. a. large, useful b. multiuser, multitasking c. processing, closed source d. production, stable

Multiuser, Multitasking

CH5 Which of the following statements are true? (Choose all that apply.) a. Quotas can limit both user space and the number of files a user can own. b. Soft limits can never be exceeded c. Hard limits can never be exceeded d. Soft limits allow a user to exceed them for a certain period of time e. Hard limits allow a user to exceed them for a certain period of time

Quotas can limit both user space and the number of files a user can own. Hard limits can never be exceeded. Soft limits allow a user to exceed them for a certain period of time.

CH6 Which of the following RAID levels is NOT fault tolerant? a. RAID 0 b. RAID 5 c. RAID 1 d. RAID 4

RAID 0

CH1 Which culture embraced the term "GNU" (GNU's Not UNIX) and laid the free software groundwork for Linux? a. the hacker culture b. the MIT culture c. the Artificial Intelligence culture d. the cracker culture

The hacker culture

CH1 Which of the following are characteristics of Open Source Software? (Choose all that apply.) a. The source code for software is available for a small fee. b. The value of the software is directly related to its price. c. The software is developed collaboratively. d. Any bugs are fixed quickly.

The software is developed collaboratively Any bugs are fixed quickly

CH1 True/False: The operating system software is necessary for a computer to function.

True

CH2 True/False: If you boot your computer from Linux live media, you will be able to use a fully functional Linux system prior to installing Linux on permanent storage.

True

CH5 What must you do to successfully run the fsck command on a filesystem? a. Run the fsck command with the -u option to automatically unmount the filesystem first. b. Choose yes when warned that running fsck on a mounted filesystem can cause damage. c. Ensure that the filesystem is mounted. d. Unmount the filesystem.

Unmount the filesystem

CH3 Using wildcard metacharacters, how can you indicate a character that is NOT an a or b or c or d? a. [!a-d] b. not [a-d] c. !a-d d. [^abcd]

[!a-d]

CH6 Which of the following could result in a segmentation fault (fatal signal 11) during a Fedora installation? a. RAM problems b. improper device driver c. overclocked CPU d. all of the above

all of the above

CH2 Which command blanks the terminal screen, erasing previously displayed output? a. clean b. clear c. blank d. erase

clear

CH3 The vi editor can function in which two of the following modes? (Choose both that apply.) a. insert b. interactive c. command d. text

insert command

CH4 Which command do you use to rename files and directories? a. cp b. rename c. mv d. rn

mv


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

Chapter 55: Drugs Acting on the Lower Respiratory Tract

View Set

Capstone Chap.4 The Internal Assessment

View Set

Introduction to Behavior Modification-Chapter 1

View Set

Dr. Laura Ellis-Lai Technical Communication

View Set

Business English: Pronoun Who and Whom

View Set

COMM 1110 Public Speaking Chapter 2:

View Set

1-1 What is History / Historical Vocabulary Grade 3/4

View Set

Chapter 13 aging and the elderly sociology 100

View Set

Nervous and Reproductive systems review

View Set

Exam 1 - PT 625 Professional Development I

View Set

Oceanography Exam - Questions Chapter 1

View Set