CIST2431-Introduction Unix/Linux Final Exam Practice 1

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Emacs is a modal editor.

False

OpenOffice.org is not available for Windows systems.

False

Shell scripts can automatically access variables created and assigned on the command line.

False

The less command scrolls only down, whereas more enables you to scroll down and up.

False

The top utility continues to produce output until you press x to terminate the execution of the program.

False

Samba is a utility that uses the ____ protocol, which is also used by Windows systems for sharing folders and printers.

SMB

You can complete a project using awk that you cannot complete using a combination of paste, cut, sort, and join.

True

Unlike top, the free utility runs and then automatically exits.

True

You can switch from one shell to another by typing the shell's name on the command line.

True

You can transport files between OpenOffice.org and Microsoft Office programs by saving the files with the appropriate extensions.

True

You can use the less command with a directory to view its contents one screen at a time, such as less /sbin.

True

You can use the vi editor to create script files.

True

You should omit spaces when you assign a variable without using single or double quotation marks around its value.

True

The ____ command displays the amount of free and used memory in the system.

free

You can type more than one command on the command line by separating commands with a ____.

semicolon (;)

The rm -r command can be used to delete a directory that is not empty.

True

When editing a text file with vi, if you want to save your changes and exit right away, you can use ____ or ZZ from command mode.

:wq

The pipe operator can connect several commands on the same command line.

True

Using ____ plus a command-line command enables you to start a new shell, run the command, and then go back into the vi editor.

:!

Insert mode, which lets you enter text, is accessed by typing the letter ____ after the vi editor is started.

"i"

The ____ option of the diff command does not compare for blank lines.

-B

The ____ option of the paste command is used to specify a different separator as a delimiter.

-d

The ____ option of the find command displays files that have been changed within the last n days.

-mtime n

The ____ option of the ping command displays only a summary of the results.

-q

The cp ____ option creates a symbolic link or name at the destination rather than a physical file.

-s

One way to run a shell script is to make it executable by using the x permission and then typing ____ prior to the script name when you run the script itself.

./

The ____ directory contains configuration files that the system uses when the computer starts.

/etc

The df utility reports the number of ____-byte blocks that are allocated, used, and available; the percentage used; and the mount point—for mounted file systems.

1024

Runlevel ____ is multiuser mode, but network services are not enabled.

2

Linux uses the freeware ____ shell as its default command interpreter.

Bash

In the Linux Bash shell, the ____ key combination moves the cursor to the previous letter.

Ctrl+b

To log out of UNIX/Linux (Bourne, Korn, or Bash shells) you can enter exit on the command line or press ____.

Ctrl+d

A disadvantage of ufs is that it does not support journaling.

False

A popular use of pr is to convert lowercase characters to uppercase characters.

False

When using wc, you cannot specify all three options (-l, -w and -c) in the command line at the same time.

False

When you are moving files, using the -o option with the mv command can be a good idea so that you don't unexpectedly overwrite a destination file with the same name.

False

When you use cat to combine two files into a third file, the first line of the output contains the first line of the first file followed by the first line of the second file.

False

When you use the paste command, by default, the pasted results appear in columns separated by commas.

False

You can use the < operator to redirect a command's output from the screen to a file.

False

The ____ program of OpenOffice.org is a mathematical equation tool used to set up and solve mathematical equations.

Math

As a general rule, the swap partition should be the same size as the amount of RAM in your computer.

True

Emacs is a screen editor.

True

Like the vi editor, Emacs lets you search for specific text.

True

One of the most effective utilities for auditing system performance is the top command.

True

In X Window network terminology, the underlying desktop system from which you run a program is called the ____.

X server

The ____ statement simplifies the selection of a match when you have a list of choices.

case

You can change the pattern of permission settings by using the ____ command.

chmod

To reference a variable, you use a dollar sign ($) in front of it or enclose it in ____.

curly brackets ({ })

The root of a file system is denoted by the ____.

forward slash (/)

KDE is set by default to enable ____ desktops.

four

You use the ____ command to display a directory's contents, including files and other directories.

ls

The exclusive use of 0s and 1s as a way to communicate with the computer is known as ____ language.

machine

The ____ utility maintains program source code.

make

UNIX and Linux are ____ systems, which allow one user to execute more than one program at a time.

multitasking

When you ____ software, you are adapting it from one type of computer or operating system to run on a different computer or operating system.

port

The ____ command prints a listing of environment and configuration variables.

printenv

The ____ function within the awk command is used to format output.

printf

____ is NOT a selection command.

sed

When you create a shell script to run in Bash, you can immediately run the script by typing ____ and then the name of the script.

sh

The paste command normally sends its output to ____.

stdout

The ____ partition acts like an extension of memory, so that UNIX/Linux have more room to run large programs.

swap

If a source file contains ____ errors, it cannot be converted into an executable file.

syntax

In the vi editor, lines containing a(n) ____ are not part of the file; they indicate lines on the screen only.

tilde (~)

You can use the ____ command to create empty files.

touch

The ____ statement continues to loop and execute commands or statements as long as a given condition or set of conditions is true.

while


Ensembles d'études connexes

Chapter 1 Introduction: What Is Economics?

View Set

ECON 202 Final Exam (Ch. 9, 10, 12, 13, 16)

View Set

Business Law Ch. 12 Reality of Assent

View Set