Linux Installation & Configuration Chapter 3 HW Unit 1 exam review

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

Which of the following is an absolute pathname? (Choose all that apply.) Home/resume C:\myfolder\resume resume /home/resume C:home/resume

/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 binary file. It is a system file. It is a file in the current directory. It is a hidden file.

It is a hidden file.

After typing the ls -F command, you notice a filename that ends with an * (asterisk) character. What does this mean? It is a hidden file. It is a linked file. It is a special device file. It is an executable file.

It is an executable 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 /. Follow the string with a \. Precede the string with a $. Precede the string with a ^.

Precede the string with a ^.

How can a user switch from insert mode to command mode when using the vi editor? Press the Ctrl+Alt+Del keys simultaneously. Press the Del key. Type a : character. Press the Esc key.

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? [^abcd] not [a-d] [!a-d] !a-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 .. cd /jim cd ../.. cd ./.

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 .. cd /home/mary/etc cd etc cd /etc cd \etc

cd /etc

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

command insert

The tac command _________. . is not a valid Linux command. displays the contents of hidden files . displays the contents of a file in reverse order, last word on the line first and first word on the line last. displays the contents of a file in reverse order last line first and first line last.

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-c filea, filec filea, fileb, filec fileabc

filea, fileb, filec

Which command would a user type on the command line to find out the current directory in the directory tree? pd cd where pwd

pwd

What will typing q! at the : prompt in command mode do when using the vi editor? quit as no changes were made quit after saving any changes nothing because the ! is a metacharacter quit without saving any changes

quit without saving any changes

A special device file is used to ___________. enable proprietary custom-built devices to work with Linux represent hardware devices such as hard disk drives and ports keep a list of device settings specific to each individual user do nothing in Linux

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? /home/resume /resume resume \home\resume

resume

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

strings

A user types the command head /poems/mary. What will be displayed on the terminal screen? the first line of the file mary the header for the file mary the first 20 lines of the file mary the last 10 lines of the file mary the first 10 lines of the file mary

the first 10 lines of the file mary


Kaugnay na mga set ng pag-aaral

Foundations of Psychiatric Nursing SCC 4th quarter psych

View Set

Accounting Knowledge Check Review

View Set

Ch.6: Group 2 - Section 6_4 - 6_5

View Set

Ex. #21: Looking at Calendars in Different Ways OL 03

View Set

MyProgrammingLab Starting out with python ch.8

View Set

Test 2 PrepU (Ch 4,8-11, 26-28, 32-34), Resp., renal, reprod., A/B

View Set

Chapter 28: The Child with Endocrine Dysfunction

View Set