Linux chapter review Questions

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

C

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? a) /home/resume b) /resume c) resume d) \home\resume

True

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?

True

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

B

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

B

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

A,C

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 kernet? (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

D

The default permissions given by the system prior to analyzing the unmask are ________ for directories and __________ for files. a. rw-rw-rw- and rw-rw-rw- b. rw-rw-rw- and r--r--r-- c. rw-rw-rw- and rwxrwxrwx d. rwxrwxrwx and rw-rw-rw- e. rwxrw-rw- and rwx-rw-rw-

A

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? a. Run chgrp again listing the root user as the new owner. b. Nothing because this is a one-way, one -time action. c. have the new owner run chgrp, and list the root user as the new owner. d. Run chown and list the root user as the new owner.

D

The tac command ______________. a. is not a valid Linux command b. displays the contents of hidden files 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 a file in reverse order, last line first and first line last

B,E

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

D

The which command __________. a. can only be used to search for executables b. searches for a file in all directoryes, starting from the root c. is not a valid Linux command d. searches for a file only in directores that are in the PATH variable.

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?

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?

C

To which license does Linux adhere? a) open license b) artistic license c) GNU General Public license d) free source license

False

Users enter commands directly to the kernel of the Linux operating system. True or False?

C

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

A,B,C

What are some good reasons for using Linux in corporate environment? (Choose all that apply.) a) Linux software is unlikely to be 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 d) Most Linux software is closed source.

C

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

C

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

D

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

B

What does /var directory contain? a. various additional programs b. spools and log files c. temporary files d. files that are architecture-independent e. local variance devices

C,D

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

D

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. who b. man help c. man - descriptive d. info

D

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

B

What is the most common open source Web server available for Linux? a) Sambac b) Apache c) Squid d) Pine

E

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

C

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

A

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 b. cannot be used, because it applied only to files c. allows users the ability to use more than two groups for files that they create within the directory d. causes users to have their permissions checked before they are allowed to access files in the directory.

C

When sitting at a computer running Linux, what key combination is pressed to open the graphical terminal? a. Ctrl+Alt+G b. Ctrl+Alt+F4 c. Ctrl+Alt+F1 d. Ctrl+7

C

When the core components of the Linux operating system are packaged together with other Open Source Software, it is called a ___________ a) new kernel b) new platform c) Linux distribution d) GNU Project

D

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 because they have different inodes. d. the data in the file you modified as well as the data in all hard-linked files are modified because they share the same data and all have the same inode and file size.

D

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

A

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

B,D

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

D

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 d) all of the above

A,B,C,D

Which of the following are factors that determine which Linux distribution a user will use? (Choose all that apply.) a) package manager support b) hardware platform c) kernel features d) language support

A

Which of the following can be used on Linux to provide file and print services? a) Samba b) Apache c) Squid d) pine

A

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 b. chown user1 : root file1 c. This cannot be done because user and group properties of a file must be modified separately. d. chown root:user1file1 e. chown root : user1file1

B,D

Which of the following is an absolute pathname? (Choose all that apply.) a) Home/resume b) C:\myfolder\resume c) resume d) /home/resume e) C:home/resume

C

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

C

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

A, B

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

D

You noticed a file in your home|directory that has a + symbol appended to the mode. What does this indicate? a. Special permissions have been set on the file b. The file has one or more files on the filesystem that are hard linked to it c. The sticky bit directory permission has been set on the file and will remain inactive as a result. d. Additional entries exist within the ACL of the file that can be viewed using the getfacl command.

C

After typing the command unmask 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? a. rw-rw-rw- b. rwxrw-r-- c. -- -r- -rw- d. -- - -wx- -x

C

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) hardware b) records c) software d) processors

B

Given the following output from the ls command, how many files are linked with file1? drwxr-xr-x 3 root root 4096Apr 8 07:12 -rw-r--r-- 3 root root 282 Apr 29 -rw-r--r-- 1 root root 282 Apr 29 -rw-r--r-- 4 root root 282 Apr 29 -rw-r--r-- 2 root root 282 Apr 29 -rw-r--r-- 1 root root 282 Apr 29 -rw-r--r-- 1 user1 sys 282 Apr 29 a. one b. two c. three d. four

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?

D

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

E

How can you protect a metacharacter (such as the $ character) from shell interpretation? a) Precede it with a / b) Follow it with a \ c) Precede it with a $ d) It cannot be done because metacharacters are essential e) Precede it with a \

D

How can you specify a text pattern that must be at the beginning of a line of text using a regular expression? a. Precede the strings with a /. b. Follow the string with a \. c. Precede the string with a $. d. Precede the string with a ^.

D

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 .. b) cd /home/mary/etc c) cd etc d) cd /etc e) cd \etc

False

The less command offers less functionality than the more command. True or False?

True

The operating system software is necessary for a computer to function. True or False?

B

Which command displays the users who are currently logged in to the Linux system? a) finger b) who c) id d) date

B

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

B

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

D

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

A,C

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

B

Which of the following refers to the third primary partition on the second SCSI hard disk within Linux? a) hdb2 b) sda3 c) hdb3 d) sdb3

A

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

C

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

A, D

Which two people are credited with creating the UNIX operating system? (Choose two answers.) a) Dennis Ritchie b) Richard Stallman c) Linus Torvalds d) Ken Thompson

B

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

A

You know a Linux command will a 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 b) man -k find all c) man flush d) man -key flush

True

A directory is a type of file. True or False?

D

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

D

After typing the ls -a command, you notice that there is a file whose filename begins 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.

B

After you log into a terminal, you receive a user interface called a __________. a) GUD b) shell c) text box d) command screen

False

Linux commands entered via the command line are not case sensitive. True or False?

A

Linux was developed by ________, to resemble the operating system _______. a) Linus Torvalds, MINIX b) Linus Torvalds, GNU c) Richard Stallman, GNU d) Richard Stallman, MINIX

A

Many types of software are available today. Which type of software does Linux represent? a) Open Source Software b) closed source software c) freeware d) shareware

False

Only the root user can modify a file that has the immutable attribute set. True or False?

C

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

D

What will typing q! at the :prompt in command mode do when using the vi editor? a) quit because no changes were made b) quit after saving any changes c) nothing because the ! is a metacharacter d) quit without saving any changes

A,C

Which two partitions do you typically create at a minimum during a Fedora Linux installation (Choose two answers.) a) / b) /boot c) swap d) /home

DD

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.) a. chmod u+x-r, g+r-x, o+w file1 b. chmod u=w, g=w, o=rx file1 c. chmod u-r-w, g+r-w, o+r-x file1 d. chmod u=x, g+r, o=wx file1 e. chmod u+w, g+r-w, o+r-x file1 f. chmod u=rw, g=r, o=r file1

D

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

B

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

False

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?

C

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? a. cd .. b. cd /jim c. cd ../.. d. cd ./.

E

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

A

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


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

Phycology 101 - Chapter 1, 2 & 3

View Set

Chapter 16: Capacity and Legality

View Set

Service Cloud - Service Cloud Solution Design

View Set

Embalming 2: preparation of the autopsied body

View Set