Chapter 9 Shift Command Filter Command Header Line Function

subject Type Homework Help
subject Pages 7
subject Words 1487
subject Authors Ron Carswell, Shen Jiang, Terrill Freese

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
Chapter 9: The Command Line
TRUE/FALSE
1. By changing default settings in the Console Windows Properties dialog box, you will only affect the
current command prompt.
2. You can use both input and output redirection with the same Fedora 13 command.
3. The Fedora 13 tail command reads an entire file before printing it.
4. Any Windows 7 command you use at the command prompt can also be used in a batch program.
5. Errorlevels are not a standard feature of every command.
MULTIPLE CHOICE
1. After a command that is typed on the keyboard passes through the ____, the characters are echoed on
the console.
a.
STDOUT
c.
STDERR
b.
STDIN
d.
STDDEV
2. From the ____ tab of the "Command Prompt" Properties dialog box, you can select the screen buffer
and window sizes of the command prompt.
a.
Layout
c.
Options
b.
Font
d.
Colors
3. You can ____ text in the Windows 7 command prompt Edit Menu using the Shift key and cursor
movement keys.
a.
copy
c.
select
b.
paste
d.
mark
4. You can use the Windows 7 ____ shortcut to copy the current command in the history buffer to the
command prompt, up to the first occurrence of the character you specify.
a.
F1
c.
F3
b.
F2
d.
F4
page-pf2
5. To redirect the output to a network printer, specify the printer using the UNC (Universal Naming
Convention) format of ____.
a.
\\servername
c.
\\printername\servername\
b.
\\printername
d.
\\servername\printername
6. The MORE filter displays one screen (____ lines) of information at a time followed by -- More --.
a.
8
c.
24
b.
16
d.
32
7. To see a list of available commands at the Windows 7 command prompt, type ____ at the command
prompt and press Enter.
a.
MAN
c.
DOC
b.
HELP
d.
DIR
8. Use the ____ command in the Windows 7 CLI to display the contents of a text file on the standard
output device.
a.
TYPE
c.
ASSOC
b.
PRINT
d.
XCOPY
9. The Fedora 13 head command prints the first ____ lines from a file to standard output.
a.
5
c.
15
b.
10
d.
20
10. In Fedora 13, you can use the ____ command to search a file and then print all the lines that match
your search.
a.
more
c.
tail
b.
less
d.
grep
11. In Windows 7, the ____ command is specifically designed for batch programs.
a.
DIR
c.
CD
b.
FOR
d.
MD
12. In Windows 7, to echo a blank line on the screen, type ECHO followed by a(n) ____.
a.
colon
c.
period
b.
semicolon
d.
exclamation
13. Within a batch program, the ____ command directs Windows 7 to a line identified by a label.
a.
CALL
c.
SHIFT
page-pf3
b.
GOTO
d.
ECHO
14. If you suspect that a batch program is “running away” because of an infinite loop, or you change your
mind about allowing the program to complete, press ____ to stop the program.
a.
Ctrl+C
c.
Ctrl+S
b.
Ctrl+E
d.
Ctrl+X
15. The ____ command enables you to include comments (remarks) in a batch file.
a.
PAUSE
c.
FOR
b.
IF
d.
REM
16. ____ environment variables are preset in the operating system and are available to all Windows 7
processes.
a.
Batch
c.
Local
b.
System
d.
Extended
17. If you use the /A switch with the SET command, you can perform ____ operations.
a.
sorting
c.
analysis
b.
searching
d.
arithmetic
18. In Fedora 13, the header line indicates the type of ____ environment under which the script is run.
a.
batch
c.
shell
b.
console
d.
editor
19. In Fedora 13, the ____ command modifies the permissions of a file.
a.
chmod
c.
cd
b.
cp
d.
mknod
20. With both if command constructs, the decision is made by testing a ____.
a.
label
c.
variable
b.
wildcard
d.
constant
21. In Fedora 13, use the ____ command to enable multiple executions of a set of instructions while a
certain condition exists.
a.
if
c.
case
b.
while
d.
declare
COMPLETION
page-pf4
1. When a command console command produces errors when processed, the error message is passed
through the ____________________ for display on your monitor.
2. In the Fedora 13 man pages, the ____________________ displays the syntax of a command.
3. ____________________ files are lists of CLI instructions that are batched together in one document or
small program to help you automate repetitive tasks.
4. You use ____________________ environment variables to control the operation of your batch files.
5. You use the SET command to display, create (set), or remove environment ____________________.
MATCHING
Match each item with a statement below.
a.
cut command
f.
taskbar
b.
SHIFT command
g.
less command
c.
filter command
h.
for in command
d.
header line
i.
batch program
e.
function keys
1. A graphical toolbar used in Windows 7 to select open applications.
2. Used to speed the entry of commands.
3. Takes input from a file, changes the input in some way, and sends the output to a file or the standard
output device.
4. Used in Fedora 13 to move forward and backward through a file.
5. Used in Fedora 13 to extract fields from a file line (record).
page-pf5
6. An unformatted text file that contains one or more Windows 7 commands and has a .cmd extension.
7. Changes the position of batch parameters in a batch file.
8. The first line in a script.
9. Used in Fedora 13 to execute a number of instructions based on a maximum count you specify.
SHORT ANSWER
1. How do you use a mouse in the Windows 7 command prompt edit menu?
2. How do you use the Find option to locate text in the Windows CLI command prompt?
3. How do you reuse a command in the command history?
4. How do you use the completion feature in Windows 7?
page-pf6
5. Describe the Fedora 13 shell.
6. How is one filter command connected to another?
7. What are the man pages used for in Fedora 13?
8. Describe how batch parameters are used in Windows 7.
9. Describe the two environment variables used in scripts.
10. Describe two important properties of repetitive and conditional structures used in Fedora 13.
page-pf7

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.