Ch 3 Quiz

Ace your homework & exams now with Quizwiz!

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

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

The LISP artificial intelligence programming language can be used with which text editor below?

Emacs editor

Pressing the Esc key at the prompt while using the more command displays a help screen.

False

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

False

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

If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?

Tab

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]

Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?

[1-4]

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 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 regular expression return: file[a-c]?

filea, fileb, filec

What command can be issued to confirm what directory you are in at a command line prompt?

pwd

Which command would a user type on the command line to find out what directory in the directory tree he is currently in?

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

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

strings

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

true

To display a text file in reverse order, what command should be used?​

​tac

Which switch below can be added to the ls command to show a list of files and their type?

-F

It is acceptable to use shell metacharacters when naming files.

: True

Select below the command and the associated alias available on most Linux systems that displays ​a long listing for each file in a directory?

ll

At the vi command mode prompt, what key combination below will force a quit from the vi editor without saving changes?

​:q!


Related study sets

Accounting - Ch 3: Adjusting Accounts for Financial Statements

View Set

Chapter 13- Sustaining Tourism's Benefits

View Set

Positioning II Merrill's CH 20 Facial Bones & Orbits

View Set

Chapter 22 Care of Patients with Infection (Cancer Therapies Quiz)

View Set

Chapter 1: What is Sport? Why Study It?

View Set

Chapter 2: Organizational Strategy, Competitive Advantage, and Information Systems

View Set