Quiz: Chapter 03 Exploring Linux Filesystems CA 157

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

Which of the following is an absolute pathname? (Choose all that apply.)

/home/resume, C:\myfolder\resume

The less command offers less functionality than the more command.

False

After typing the ls -a command, you notice a file whose filename begins with a period (.). What does this mean?

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?

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?

Precede the string with a ^.

How can a user switch from insert mode to command mode when using the vi editor?

Press the Esc key.

A directory is a type of file.

True

Linux has only one root directory per directory tree.

True

Using a regular expression, how can you indicate a character that is not an a or b or c or d?

[^abcd]

A user typed the command pwd and saw the output: /home/jim/sales/pending. How could that user navigate to the /home/jim directory?

cd ../..

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?

cd /etc

The vi editor can function in which two of the following modes? (Choose both that apply.)

command, insert

The tac command _____.

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

What will the following wildcard expression return: file[a-c]?

filea, fileb, filec

Which command would a user type on the command line to find out the current directory in the directory tree?

pwd

What will typing q! at the : prompt in command mode do when using the vi editor?

quit without saving any changes

A special device file is used to _____.

represent hardware devices

Which command searches for and displays any text contents of a binary file?

strings

A user types the command head /poems/mary. What will be displayed on the terminal screen?

the first 10 lines of the file mary

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?

resume


Ensembles d'études connexes

loopreguntas que deberes responder

View Set

Ch 23: Body Mechanics, Positioning, and Moving TTE

View Set

Biology - Diffusion&Osmosis_ch 5

View Set

chapter 3. human growth and development

View Set

Chapter 7: Legal Dimensions of Nursing Practice

View Set

Pathophysiology and Pharmacology I - Chapter 2

View Set