CompTIA Linux + (Chapter 3) - Quiz {88/100}

Ace your homework & exams now with Quizwiz!

Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?

Ctrl+g

In the GNU Emacs editor, what key combination can be used to delete all characters between the cursor and the end of the line?

Ctrl+k

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

Emacs editor

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

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

[1-4]

What two regular expression characters can be used to match the characters at the beginning or end of a line, respectively?

^ $

To display the contents of a text file called data, what command should be used?

cat data

In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?

cd ..

In what mode does the vi editor open by default?

command mode

In vi, using command mode, what series of key presses below will cause the line on which the cursor is on to be deleted?

dd

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

tac

What command can be used to display the last five lines of a text file?

tail -5

What two characters below should not be used in filenames?

$ *

Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.

*

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

-F

Select the two filename extensions that are associated with C++ programming language source code files:

.cc .cpp

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

:q!

When issuing the ls -F command, what special character indicates a linked file?

@

Select the command below that can be used to provide a long listing for each file in a directory:

ls -l

What command is most effective at identifying different types of files?

ls -l

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

ls -l ll

When displaying a large text file, what two commands provide the ability to show text in a page by page fashion?

more less

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

pwd

Which character(s) below represent extended regular expression metacharacter(s)?

{}

What metacharacter can be used to refer to the current users home directory?

~


Related study sets

Accounting 2020 Chapter 11 Smartbook

View Set

CEN Randomized 150 Question Prep Quiz

View Set

Honors US Chapter 10, 11, and 12

View Set

Biology 1260 Chapter 12: Organization of Multicellular Organisms

View Set