Study guide for Final exam - quiz 3 review questions

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

c. resume

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

c. cd /etc

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

a. True

Linux has only one root directory per directory tree. a. True b. False

a. [^abcd]

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

c. filea, fileb, filec

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

d. quit without saving any changes

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

b. strings

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

d. It is an executable file.

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.

b. False

The less command offers less functionality than the more command. a. True b. False

a. True

A directory is a type of file. a. True b. False

d. Precede the string with a ^.

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

d. Press the Esc key.

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 a : character. d. Press the Esc key.

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

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

a. command d. insert

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

d. pwd

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

b. the first 10 lines of the file mary

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

d. It is a hidden file.

After typing the ls -a command, you notice a file whose filename begins with a period (.). 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.

a. C:\myfolder\resume c. /home/resume

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

c. cd ../..

A user typed 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 ./.

b. represent hardware devices

A special device file is used to _____. a. enable proprietary custom-built devices to work with Linux b. represent hardware devices c. keep a list of device settings specific to each individual user d. do nothing in Linux


Set pelajaran terkait

DATABASE ANALYSIS AND DESIGN (CISS-3330).03

View Set

CMMB 411: Topic 6 - DNA Damage, Mutation, and Repair Mechanisms

View Set

Chapter 16: Law and Ethics in Abnormal Psychology

View Set