CET 130 chap 3 test

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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

*

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

-F

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

Emacs editor

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

File command

An alternative to the vi editor that offers an equal set of functionality is the_______ editor.

GNU Emacs

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

Tac command

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

Tail -5

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

[1234]

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

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

dd

Filenames that start with a period, such as .file, are referred to as ______ files.

hidden

Text wildcards used to ease the searching of specific text information are called _______.

regular expressions

Linux uses a logical directory tree to organize files into different folders.

t

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

@

In what mode does the vi editor open by default?

command

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

:q!

What command can be used to provide a long listing for each file in a directory

ls -l

In a file listing, the 9 characters following the file type (for example, -rwxr-xr-x) refer to the file's _______.

permissions

Due to the fact that the * character can be used to match all characters in a filename, or all files in a directory, it is referred to as a_______ metacharacter.

wildcard

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

{}

What metacharacter can be used to refer to the current user's home directory?

~

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

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

Ctrl + g

It is acceptable to use shell metacharacters when naming files.

f

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

f

The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program.

f

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

pwd

The more command should not be used on binary files.

t

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


Kaugnay na mga set ng pag-aaral

Pharmacology Ch. 19 Introduction to Nerves and the Nervous System

View Set

ARHS 2 (courbet/haussmann/manet/impressionism)

View Set

IT Project Management Chapters 1-3

View Set

Neuromusculoskeletal and movement related functions, muscle functions, and movement functions

View Set

Present Simple vs Present Continuous

View Set