Linux Chapter 3, 4, & 5 Test Final exam

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Match each item with a statement below. *An advanced vim navigational command that moves the cursor to the end of the current line.* Ctrl+B Ctrl+F Enter G H L M Spacebar $

$

To see a particular variable's stored value, you can use the echo command and add a(n) ____ symbol before the variable name. # ! = $

$

Compare the Windows file system to the Linux file system.

In Windows each partition is assigned a drive letter. Linux distributions vary in their interfaces and features.

In vim, you modify text by using the keyboard instead of the mouse. True False

True

You can undo changes you made to a file by typing u. False True

True

Describe two ways to start KWrite.

Type kwrite in a command prompt. Use the Kickoff Application Launcher

What is the simplest way to create a file in Linux? Use the create command. Use the open command. Use the touch command. Use the new command.

Use the touch command.

Identify and define the three categories of file permissions.

User, group, and other

A(n) ____________________ is an area of RAM used for temporary storage.

buffer

Which command is used to switch to other directories? cd mv sw chg

cd

Which command is used to change permissions on files and directories? del chmod chg rem

chmod

What is the command syntax that almost all Linux commands follow? command -arguments option command -arguments -option command -options -argument command -options argument

command -options argument

What is the main difference between the cp command and the mv command?

cp is used to copy the files. mv is used to move or rename the files but it will delete the original file while moving.

A(n) ____________________ is the way files are stored and organized to simplify access to data.

file-system

You type ____ in vim command mode to move the cursor one space to the left. j h k l

h

The BASH shell is an example of a(n)____. interpreter kernel file machine code file compiler

interpreter

You type ____ in vim command mode to move the cursor one space up. h k l j

k

Vim is a ____ editor meaning it can run in different operating modes. modular virtual hierarchal multi-operational

modular

Which command displays a file's contents one screen at a time? echo show more head

more

The cat command is usually used to display the contents of a ____. memory dump large text file small text file log file

small text file

KWrite has an advanced feature known as ____________________, to display text in different colors and fonts for programming languages such as C, C++, Java, HTML, and Perl.

syntax-highlighting

The head command displays the first ____ lines of a text file. five ten 100 two

ten

To navigate to a directory above your current directory with the relative method, you use ____. two dots (..) one dot (.) a back slash (\) a forward slash (/)

two dots (..)

In Linux, a(n) ____________________ represents letters and characters used to specify a filename for searches.

wildcard

Typing ____ at the extended mode prompt saves the file and exits the vim text editor. ws wq sx wx

wq

Which output column of the ls command displays the filename? The seventh column The second column The first column The eighth column

The eighth column

Which command can be used to display a text file's contents in reverse order and why might a user want to do this?

The tac command

Compare word processors and text editors.

A word processor is a more extensive text editor. A text editor is used solely to write and edit text.

Match each item with a statement below. *An advanced vim navigational command that moves the display up a full screen.* Ctrl+B Ctrl+F Enter G H L M Spacebar $

Ctrl+B

Match each item with a statement below. *An advanced vim navigational command that moves the display down a full screen.* Ctrl+B Ctrl+F Enter G H L M Spacebar $

Ctrl+F

____________________ are files that point to data on the hard drive.

Hard-links

Match each item with a statement below. *This directory should not contain subdirectories.* /bin /boot /dev /etc /home /lib /media /opt /usr

/bin

Match each item with a statement below. *Contains the Linux kernel and static files needed to boot the computer.* /bin /boot /dev /etc /home /lib /media /opt /usr

/boot

Match each item with a statement below. *Contains device files such as the CD/DVD-ROM drive.* /bin /boot /dev /etc /home /lib /media /opt /usr

/dev

Match each item with a statement below. *Contains static configuration files, which are also unshareable files meaning they're local to the machine.* /bin /boot /dev /etc /home /lib /media /opt /usr

/etc

Match each item with a statement below. *An optional directory.* /bin /boot /dev /etc /home /lib /media /opt /usr

/home

Match each item with a statement below. *Contains shared libraries that are loaded when a program starts.* /bin /boot /dev /etc /home /lib /media /opt /usr

/lib

Match each item with a statement below. *Contains the mount point for removable media.* /bin /boot /dev /etc /home /lib /media /opt /usr

/media

Match each item with a statement below. *Contains static sharable add-on software package.* /bin /boot /dev /etc /home /lib /media /opt /usr

/opt

Match each item with a statement below. *Contains sharable, read-only applications and files.* /bin /boot /dev /etc /home /lib /media /opt /usr

/usr

Which variable assignment method would you use to specify a variable's value in a script command? Prompt Positional parameter Direct assignment Conditional

Direct assignment

Match each item with a statement below. *An advanced vim navigational command that moves the cursor to the beginning of the next line.* Ctrl+B Ctrl+F Enter G H L M Spacebar $

Enter

The Linux file system is similar to Windows. True False

False

Match each item with a statement below. *An advanced vim navigational command that moves the cursor to the last line of the file.* Ctrl+B Ctrl+F Enter G H L M Spacebar $

G

Which GUI text editor is included with GNOME? Gedit TextPad vi Emacs

Gedit

Match each item with a statement below. *An advanced vim navigational command that moves the cursor to the top of the screen.* Ctrl+B Ctrl+F Enter G H L M Spacebar $

H

Match each item with a statement below. *An advanced vim navigational command that moves the cursor to the last line of the screen.* Ctrl+B Ctrl+F Enter G H L M Spacebar $

L

Match each item with a statement below. *An advanced vim navigational command that moves the cursor to the middle of the screen.* Ctrl+B Ctrl+F Enter G H L M Spacebar $

M

Compare a Linux GUI text editor to Windows Notepad.

One advantage of using a GUI text editor is that you can select and edit text quickly using your mouse.

When should you update (touch) important files and scripts you have created?

Periodically

Which wildcard character is used to represent only one character? Asterisk (*) Tilde (~) Question mark (?) Exclamation point (!)

Question mark (?)

Describe the autosave Gedit feature and explain the advantage of using it.

Saves text files automatically at regular intervals. Lowers the chance of losing data if there's a power loss.

Which type of file can be stored on one machine and used by multiple users on other machines? Static Unshareable Variable Shareable

Shareable

Match each item with a statement below. *An advanced vim navigational command that moves the cursor one space to the right.* Ctrl+B Ctrl+F Enter G H L M Spacebar $

Spacebar

What is the result of running the tail +5 scr8 command? The command displays the contents of the scr8 file in reverse, five times. The command displays the last five lines of the scr8 file. The command displays the contents of the scr8 file starting at line five. The command displays every fifth line of the scr8 file.

The command displays the contents of the scr8 file starting at line five.


Set pelajaran terkait

SIE unit 4 - Packaged Investments

View Set

Management 371 Final Exam (Test 2)

View Set

Ch 15 Triumph of Imperialism in Asia

View Set

World History Unit 5: Age of Encounter & Explorer

View Set

finance & Closing- ga state 15 questions

View Set