Study Guide: C/Unix

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

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

False

True or False After creating a flowchart, the next step in designing a program is to write the program code.

False

True or False In UNIX/Linux, all shells support the same commands and programming statements.

False

True or False In a peer-to-peer network, the system administrator secures all the information.

False

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

False

True or False Shell scripts run more quickly than compiled programs.

False

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

False

True or False The system administrator prompt is the $

False

True or False UNIX/Linux are not case sensitive.

False

True or False You use the chexec command to indicate that a (shell script) file can be executed.

False

_____ is an Internet terminal emulation program.

Telnet

True or False A directory is a special kind of file that can contain other files and directories.

True

True or False A high-level language is a computer language that uses English-like expressions.

True

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

True

True or False Most shells keep a list of your recently used commands and allow you to recall a command without retyping it.

True

True or False Pseudocode is a design tool only, and is never processed by the computer.

True

True or False The Bash shell offers improved features over the older Bourne and Korn shells and is fully backward compatible with the Bourne shell.

True

True or False The clear command has no options or arguments.

True

True or False The command cd source uses relative path addressing

True

True or False The program development cycle begins with creating specifications for a program.

True

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

True

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

True

Wildcard characters are also known as _____ characters.

glob

The UNIX file system (ufs) supports _____, which automatically move data on damaged portions of disks to areas that are not damaged.

hot fixes

_____ operators compare the relationship between two values or arguments.

Relational

The two most popular hard disk interfaces are IDE and ______.

SCSI

write changes to disk and exit vi

:wq

save changes and exit vi

:x

To append output to an existing file, you use ______.

>>

leave vi temporarily

:!

cancel an editing session

:q

read text from one file and add it to another

:r

turn on certain options, such as line numbering

:set

The _____ operator of the test command, combines two expressions and tests a logical OR relationship between them.

-o

to save a file and continue working

:w

When using the mount command, you use the _____ option to specify a file system to mount.

-t

The ______ file runs when you log in using the Bash shell

.bashre

search forward for a pattern of characters

/

The _____ directory contains executables, which are the programs needed to start the system tasks.

/bin

The _____ directory contains the kernel (operating system) images.

/boot

If you plan to have multiple users access a system, you can create a _____ partition, which is the home directory for all users' directories.

/home

You can create a _____ partition to hold files that are created temporarily, such as files used for printing documents (spool files) and files used to record monitoring and administration data, often called log files.

/var

Fedora, Red Hat Enterprise Linux, SUSE, and Knoppix, recognize up to ______ characters in your user name.

32

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

Bash

Stephen Bourne at AT&T Bell Labs developed the _____ shell as the first UNIX command processor.

Bourne

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

Currently, the _____ project, a joint effort of experts from industry, academia, and government, is working to standardize UNIX.

POSIX

_____ are programs that perform operations such as copying files, listing directories, and communicating with other users.

Utilities

_____ is a multifunction tool that enables you to manage openSUSE from one location.

YaST

in command mode, save changes and exit vi

ZZ

An _____ path begins at the root level and lists all subdirectories to the destination file.

absolute

You can use the ______ command to show the system calendar.

cal

The _____ statement simplifies the selection of a match when you have a lists of choices.

case

To navigate the UNIX/Linux directory structure, you use the _____ command.

cd

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

chmod

Each record in the /etc/passwd file is simply a record with variable-length fields separated by _____ .

colons ( : )

Logic structures are also called _____ structures.

control

to leave vi to temporarily access the command line - use the fg command to return to vi

ctrl + z

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

curly brackets {}

The UNIX/Linux _____ command displays the system date, which the system administrator maintains.

date

In a flowchart, a _____ is used to represent a decision.

diamond

The _____ is the prompt symbol traditionally associated with ordinary users.

dollar sign ( $ )

UNIX/Linux systems interpret _____ to mean the parent directory.

dot ( .. )

When you assign a value to a variable, you might want to evaluate it by displaying its contents via an _____ operator.

evaluating

In Linux, the native file system is the ______, which is installed by default.

ext fs

A ______ is used to reduce file fragmentation, because a block of contiguous disk storage can be reserved for a file.

extent

A _____ is a logic diagram that uses a set of standard symbols to visually explain the sequence of events from the start of a process to its end point.

flowchart

Th e UNIX/Linux shell acts as an _____ when reading script files.

interpreter

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

journal

A _____ is a name consisting of letters, numbers, or characters and is used to reference the contents of a variable.

label

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

ls

To view a list of the files in a directory, including the hidden files, you should enter _____.

ls -a

The _____ command is used to create a new directory

mkdir

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

multitasking

UNIX/Linux are _____ systems, which let many people simultaneously access and share the resources of a server a computer.

multiuser

The term _____ refers to a "black hole"; any data sent to this device is gone forever.

null

A function name differs from a variable name because a function name is followed by a set of _____.

parentheses

You can change your password, if necessary, by using the _____ command, but you must know you current password to change it.

passwd

In shell scripts, comment lines begin with a _____.

pound (#) symbol

If you have configured your prompt so that it does not show your working directory, you can use the _____ command to verify in what directory you are located, along with the directory path.

pwd

A simple way to delete a record using _____ is with the -d (delete) option.

sed

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

semicolon ( ; )

With no options, _____ displays the current listing of Bash environment and shell script variables.

set

_____ variables are those you create at the command lines or in a shell script.

shell

A program's high-level language statements are stored in a file called the ____ file.

source

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

swap

Each step in the program is represented by a _____ in the flowchart.

symbol

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

syntax

The head and tail commands, allow you to view the first few or last few lines of a file ( _____ lines by default).

ten

The second step in the program development cycle is _____.

the design process

When you create a script, you should include the command that sets the particular shell to use on _____.

the first line of the script

A _____ is used to refer to the user's home directory.

tilde ( ~ )

The _____ is shorthand for the home directory, which typically has the same name as the user's account name.

tilde ( ~ )

The _____ command enables you to initialize the terminal display or terminal window, to place text and prompts in desired locations, and to respond to what the user selects from the menu.

tput

To format record output you can use the translate utility, _____.

tr

The _____ command is useful when you want your shell program to automatically remove any temporary files that are created.

trap

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

while

To determine information about who is logged in, you can use the _____ command.

who

The .bashrc file is a hidden file contained in _____ directory.

your home


संबंधित स्टडी सेट्स

CHAPTER 9-LUMBAR SPINE, SACRUM, & COCCYX: RADIOGRAPHIC POSITIONING & PATHOLOGY

View Set

Hands-On Microsoft Server 2019 Final

View Set

35 - Les Almohades (1147-1269) - Architecture

View Set

AP European History Chapter 19 Reading Guide

View Set

DH119A Dentifrices and oral rinses

View Set

HA - Unit 2 - Chapter 16: Assessing Eyes

View Set