NOS 120- Chapter 3 Review: Exploring Linux Filesystems

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

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

- command - insert

Which of the following is an absolute pathname in Linux?

/home/resume

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

False

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

It is a hidden 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 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 an a or b or c or d?

[!a-d]

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?

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?

cd /etc

The tac command _________.

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

What will the following wildcard regular 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 such as hard disk drives and ports

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

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.

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


Ensembles d'études connexes

Astronomy Chapter 6 Module 6 HW2

View Set

Inquizitive Chapter 1 Test (Intro: The Citizen and Government)

View Set

Chapter 10 ( Operator Overloading: Class String )

View Set

"Θα σου κάνω μερικές ερωτήσεις και θα πρέπει να μου απαντήσεις με σωστή σύνταξη. Θα σου έχω πίσω από την ερώτηση πως θα πρέπει να είναι η απάντησή σου αν δυσκολευτείς."

View Set

Amendments to the U.S. Constitution

View Set

Public speaking week 15 study guide

View Set

Digital Photography Unit 2: Capturing Digital Photographs

View Set