Linux+ chapter 3

¡Supera tus tareas y exámenes ahora con Quizwiz!

19. Using wildcard metacharacters, how can you indicate a character that is NOT a or b or c or d?

c. [!a-d]

20. 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?

c. cd ../..

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

c. filea, fileb, filec

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

False

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

True

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

True

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

b. C:\myfolder\resume

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

b. command e. insert

4. A special device file is used to __________.

b. represent hardware devices such as hard disk drives and ports

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

b. strings

12. 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?

c. resume

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

d. It is a hidden file.

7. After typing the ls -F command, you notice a filename that ends with an * (asterisk) character. What does this mean?

d. It is an executable file.

17. How can you specify a text pattern that must be at the beginning of a line of text using a regular expression?

d. Precede the string with a ^.

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

d. Press the Esc key.

5. 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?

d. cd /etc

16. The tac command __________.

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

2. Which command would a user type on the command line to find out which directory in the directory tree he is currently located in?

d. pwd

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

d. quit without saving any changes

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

e. the first 10 lines of the file mary


Conjuntos de estudio relacionados

Combo Unit 12, 11, 10, 9, 8, 7, 6, 4" and SAT

View Set

Psychology 107 Exam 3 (Chapters 7-9)

View Set

CH 12- Health insurance providers

View Set

Zoology Chapter 1: Intro to Animals

View Set