CompTIA Linux+ Ch. 1,Ch. 2,Ch. 3,Ch. 4 Review Questions
A symbolic link is also known as a soft link and is depicted by an @ symbol appearing at the beginning of the filename when viewed using the ls -l command. True or False?
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 or False?
False
Linux commands entered via the command line are not case sensitive. True or False?
False
Only the root user can modify a file that has the immutable attribute set. True or False?
False
The less command offers less functionality than the more command. True or False?
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 means that it is on a directory. True or False?
False
A directory is a type of file. True or False?
True
Hard links need to reside on the same filesystem as the target, whereas symbolic links need not be on the same filesystem as the target. True or False?
True
Linux has only one root directory per directory tree. True or False?
True
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 or False?
True
User enters commands directly to the kernel of the Linux operating system. True or False?
True
The operating system software is necessary for a computer to function. True or False?
True.
Which prompt do regular users receive when logged in to the system?
a. $
Which two partitions do you typically create at minimum during a Fedora Linux installation?
a. / c. swap
Which of the following kernels are developmental kernels? (Choose all that apply.)
a. 3.3.4 b. 3.5.5
Which two people are accredited with creating the UNIX operating system? (Choose two answers.)
a. Dennis Ritchie d. Ken Thompson.
Which common GUI environments are available in most Linux distributions? (Choose all that apply.)
a. GNOME c. KDE
Which of the following are common methods for gaining support for Linux?
a. HOWTO documents at www.linuxdoc.org b. a local Linux User Group c. Internet newsgroups
Linux was developed by ______________, to resemble the _____ operating system.
a. Linus Torvalds, MINIX
What are some good reasons for using Linux in a corporate environment? (Choose all that apply.)
a. Linux software is unlikely to become abandoned by its developers. b. Linux is secure and has a lower total cost of ownership than other operating systems. c. Linux is widely available for many platforms and supports many programming languages.
Many types of software are available today. Which type of software does Linux represent?
a. Open Source Software
Which of the following can be used on Linux to provide file and print services?
a. Samba
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 permission, members of the root group have read and execute permissions, and all others have read permissions to the file.
When applied to a directory, the SGID special permission _______________.
a. causes all new files created in the directory to have the same group membership as the directory, and not the entity that created them
Which of the following commands will change the user ownership and group ownership of file1 to user1 and root, respectively?
a. chown user1:root file1
You know a Linux command will perform a desired function for you, but you cannot remember the full name of the command. You do remember it will flush a variable from your system. Which command typed at a command prompt displays a list of commands that would likely contain the command you desire?
a. man -k flush
Which of the following are factors that determine which Linux distribution a user will use? (Choose all that apply.)
a. package manager support, hardware platform c. kernel features, and language support.
Which culture embraced the term "GNU" (GNU's Not UNIX) and laid the free software groundwork for Linux?
a. the hacker culture
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 to have support in Linux for new hardware c. when you need to increase the stability of Linux.
The command chmod 317 file1 would produce which of the following lines in the ls command?
b. --wx--xrwx 1 user1 root 0 Apr 29 15:40 file1
What is the most common open source Web server available for Linux?
b. Apache.
Which of the following is an absolute pathname? (Choose all that apply.)
b. C:\myfolder\resume
Who formed the Free Software Foundation to promote open development?
b. Richard Stallman
Which of the following are characteristics of Open Source Software? (Choose all that apply.)
b. The software is developed collaboratively. d. Any bugs are fixed quickly.
The vi editor can function in which two of the following modes? (Choose both that apply.)
b. command e. insert
Linux is a _________ and ____________ operating system.
b. multiuser, multitasking
Which command do you use to rename files and directories?
b. mv
A special device file is used to _____________________________.
b. represent hardware devices such as hard disk drives and ports
After you log in to a terminal, you receive a user interface called a _____.
b. shell
What does the /var directory contain?
b. spools and log files
Which command searches for and displays any text contents of a binary file?
b. strings
Given the following output from the ls command, how many files are linked with file1? drwxr-xr-x 3 root root 4096 Apr 8 07:12 Desktop -rw-r--r-- 3 root root 282 Apr 29 22:06 file1 -rw-r--r-- 1 root root 282 Apr 29 22:06 file2 -rw-r--r-- 4 root root 282 Apr 29 22:06 file3 -rw-r--r-- 2 root root 282 Apr 29 22:06 file4 -rw-r--r-- 1 root root 282 Apr 29 22:06 file5 -rw-r--r-- 1 user1 sys 282 Apr 29 22:06 file6
b. two
Which command displays the users who are currently logged in to the Linux system?
b. who
Which prompt does the root user receive when logged in to the system?
c. #
After typing the command umask 731, the permissions on all subsequently created files and directories will be affected. In this case, what will be the permissions on all new files?
c. - - -r--rw
When sitting at the computer running Linux, what key combination is pressed to open the graphical terminal?
c. Ctrl+Alt+F1
What was created to define a standard directory structure and common file location for Linux?
c. FHS
To which license does Linux adhere?
c. GNU General Public License
What does the mv command do? (Choose all that apply.)
c. It moves a directory. d. It moves a file.
When the core components of the Linux operating system are packaged together with other Open Source Software, it is called a __________________
c. Linux Distribution
Which of the following is not an example of virtualization software that can be used to install Linux within another operating system?
c. Spiceworks
Using wildcard metacharacters, how can you indicate a character that is NOT a or b or c or d?
c. [!a-d]
What command is equivalent to the 'man -k "keyword"' command?
c. apropos keyword
A user typed in the command pwd and saw the output: /home/jim/sales/pending. How could that user navigate to the /home/jim directory?
c. cd ../..
What are the three standard Linux permissions?
c. execute, read, write
What will the following wildcard regular expression return: file[a-c]?
c. filea, fileb, filec
Which of the following is not a piece of information that the Fedora installation program prompts you for?
c. firewall settings
If "resume" is the name of a file in the home directory off the root of the filesystem and your present working directory is home, what is the relative name for the file named resume?
c. resume
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________.
c. software.
You noticed a file in your home directory that has a + symbol appended to the mode. What does this indicate?
d. Additional entries exist within the ACL of the file that can be viewed using the getfacl command.
What is the default shell in Linux called?
d. BASH
After typing the ls -a command, you notice that there is a file whose filename begins with a dot ( . ). What does this mean?
d. It is a hidden file.
After typing the ls -F command, you notice a filename that ends with an * (asterisk) character. What does this mean?
d. It is an executable file.
How can you protect a metacharacter (such as the $ character) from shell interpretation?
d. Precede it with a \.
How can you specify a text pattern that must be at the beginning of a line of text using a regular expression?
d. Precede the string with a ^.
How can a user switch from insert mode to command mode when using the vi editor? a. Press the CtrlþAltþDel keys simultaneously.
d. Press the Esc key.
The root user utilizes the chgrp command to give ownership of a file to another user. What must the root user do to regain ownership of the file?
d. Run chown and list the root user as the new owner.
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?
d. cd /etc
A file has the following permissions: r----x-w-. The command chmod 143 would have the same effect as the command _______________. (Choose all that apply.)
d. chmod u=x,g=r,o=wx file1
Which command blanks the terminal screen, erasing previously displayed output?
d. clear
The tac command __________________.
d. displays the contents of a file in reverse order, last line first and first line last
What command can you use to safely shut down the Linux system immediately?
d. halt
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?
d. info
A production kernel refers to a kernel whose ____________________.
d. minor number is even.
Which command would a user type on the command line to find out which directory in the directory tree he is currently located in?
d. pwd
What will typing q! at the : prompt in command mode do when using the vi editor?
d. quit without saving any changes
The default permissions given by the system prior to analyzing the umask are _________ for directories and _____________ for files.
d. rwxrwxrwx and rw-rw-rwe.
Which of the following refers to the third primary partition on the second SCSI hard disk within Linux?
d. sdb3
The which command _______________.
d. searches for a file only in directories that are in the PATH variable
When you change the data in a file that is hard-linked to three others, _____________.
d. the data in the file you modified as well as the data in all hard-linked files are modified,
What must a user do to run cp or mv interactively and be asked if she wants to overwrite an existing file?
e. Just type cp or mv, because they run in interactive mode by default.
A user types in the command head /poems/mary. What will be displayed on the terminal screen?
e. the first 10 lines of the file mary