CompTIA Linux+ Guide to Linux Certification Ch. 3 Review Questions

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

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.

Press the Esc key.

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

True

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

True

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-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:\myfolder\resume

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.

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 ./.

cd ../..

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 \et

cd /etc

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

command, insert

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

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

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

d. quit without saving any changes

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

e. the first 10 lines of the file mary

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

filea, fileb, filec

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

pwd

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

represent hardware devices such as hard disk drives and ports

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

False

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

strings

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.

It is an executable file.

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 string with a /. b. Follow the string with a \. c. Precede the string with a $. d. Precede the string with a ^.

Precede the string with a ^.

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

resume


Ensembles d'études connexes

EMT Chapter 11: Principles of Pharmacology

View Set

Anatomy Block 1 Practice Questions- Upper Limb, Back, Etc.

View Set

Third Midterm Exam, GOV 312L: U.S. Foreign Policy

View Set

Spanish 1 - Practice Conjugating with Venir

View Set