Deck 8: The Command Line

Full screen (f)
exit full mode
Question
To see a list of available commands at the Windows 10 command prompt, what command can be executed?

A)MAN
B)HELP
C)DOC
D)DIR
Use Space or
up arrow
down arrow
to flip the card.
Question
In CentOS 7, the shell interprets the commands in what type of session?

A)batch
B)system
C)terminal
D)editor
Question
In Windows 10, what command will allow you to use the completion feature during an editing session?

A)CMD /F:
B)CMD /F:ON
C)CD /F:ON
D)CMD /F:1
Question
What type of variable is utilized by CentOS 7 and Windows 10 to refer to various features of the computer system and certain basic system data?

A)System
B)Data
C)Kernel
D)Environment
Question
In CentOS 7, what command is to to extract fields from a file line (record)?

A)sort
B)less
C)set
D)cut
Question
What type of environment variables are established at login?

A)batch
B)predefined
C)local
D)extended
Question
To redirect the PRINT command output to a network printer using the UNC format, what syntax would you use?

A)\\servername
B)\\printername
C)\\printname\servername\
D)\\servername\printername
Question
In Windows 10, what command is used to display text to the console?

A)Monitor
B)Console
C)Echo
D)Mirror
Question
In Windows 10 use the TYPE command to display the contents of a text file on the standard output device.
Question
What tab in the command prompt properties box allows you to select the screen buffer and window sizes of the command prompt?

A)Layout
B)Font
C)Options
D)Colors
Question
When using CentOS 7, what is the correct syntax to redirect the output of the ls command to a file named myReport?

A)ls -l *.* > myReport
B)ls /l *.* < myReport
C)ls -l < myReport
D)ls -l myReport
Question
In CentOS 7, what command displays the contents of an ASCII file to the standard output device?

A)file
B)print
C)cat
D)show
Question
By changing default settings in the Console Windows Properties dialog box, you will only affect the current command prompt.
Indicate the answer choice that best completes the statement or answers the question.
Question
What command in the Windows 10 CLI will display the contents of a text file on the standard output device?

A)TYPE
B)PRINT
C)ASSOC
D)XCOPY
Question
The CentOS 7 tail command reads an entire file before printing it.
Question
When a user is viewing a command's man page in CentOS 7, what area will give you information about the syntax of the command?

A)Synopsis
B)Options
C)Format
D)Syntax
Question
In CentOS 7, what command will search a file and then print all the lines that match your search?

A)more
B)less
C)tail
D)grep
Question
You can use both input and output redirection with the same CentOS 7 command.
Question
The man pages are Help files you use to reference commands in CentOS 7.
Question
The MORE filter displays one screen of information at a time, how many lines of information are displayed?

A)8
B)16
C)24
D)32
Question
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A command in CentOS 7 that displays the contents of an ASCII file on the standard output device
Question
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A temporary connection between two commands, represented by the | symbol
Question
What single-function command-line tool concept does PowerShell introduce?

A)comm
B)cmdlet
C)cmd
D)regedit
Question
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A small command in PowerShell
Question
In CentOS 7, what command will allow you to access the man pages for the grep command?

A)grep man
B)man grep
C)help grep
D)grep page
Question
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A command in Windows 10 that displays text to the standard output device
Question
In Windows 10, what command will redirect the output of DIR command to a local printer?

A)DIR /S *.* > list
B)DIR /S *.* prn
C)DIR /S *.* > prn
D)DIR /S > prn
Question
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
To change the direction of command output or input from the standard location
Question
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A string used to specify the location of resources, such as shared files or devices
Question
Before a command is echoed on the console, where must it first pass through?

A)STDOUT
B)STDIN
C)STDERR
D)STDDEV
Question
The CentOS 7 head command prints how many lines from a file to standard output?

A)5
B)10
C)15
D)20
Question
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A command that allows backward movement when you view file contents
Question
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
An invoked interface that parses and interprets command lines and code for execution on behalf of a user interface or program process
Question
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A command in CentOS 7 that searches a file or files by keyword
Question
What type of command does PowerShell allow a user to create when they are having trouble remembering a specific cmdlets name?

A)Alias
B)Ghost
C)Sub
D)Mirror
Question
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A term used in the CentOS 7 man pages to describe the syntax of commands
Question
When using the Edit menu within the Command Prompt or PowerShell, what task will display a dialog box to find a text string within the Command Prompt?

A)copy
B)mark
C)select
D)find
Question
In Windows 10, what command can be used without any arguments to display all environment variables along with their values?

A)sort
B)envar
C)view
D)set
Question
When a user is viewing a command's man page in CentOS 7, what area will show you the variety of switches you can use with the command?

A)Synopsis
B)Options
C)Format
D)Syntax
Question
What Windows 10 shortcut is used 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
B)F2
C)F3
D)F4
Question
Describe the CentOS 7 shell.
Question
What helpful feature at the command line and in PowerShell can you use when you are unsure of the directory name or filename that you need?
Question
How do you use the completion feature in Windows 10?
Question
What benefits will a user gain if they learn Command Prompt and PowerShell?
Question
How is one filter command connected to another?
Question
How do you reuse a command in the Windows 10 command history?
Question
How do you use a mouse in the Windows 10 command prompt edit menu?
Question
What are at least three benefits to using the command line shell with the Windows 10 CLI?
Question
Describe the basic naming structure of a PowerShell cmdlet.
Question
What are the man pages used for in CentOS 7?
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 8: The Command Line
1
To see a list of available commands at the Windows 10 command prompt, what command can be executed?

A)MAN
B)HELP
C)DOC
D)DIR
B
2
In CentOS 7, the shell interprets the commands in what type of session?

A)batch
B)system
C)terminal
D)editor
C
3
In Windows 10, what command will allow you to use the completion feature during an editing session?

A)CMD /F:
B)CMD /F:ON
C)CD /F:ON
D)CMD /F:1
B
4
What type of variable is utilized by CentOS 7 and Windows 10 to refer to various features of the computer system and certain basic system data?

A)System
B)Data
C)Kernel
D)Environment
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
In CentOS 7, what command is to to extract fields from a file line (record)?

A)sort
B)less
C)set
D)cut
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
What type of environment variables are established at login?

A)batch
B)predefined
C)local
D)extended
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
To redirect the PRINT command output to a network printer using the UNC format, what syntax would you use?

A)\\servername
B)\\printername
C)\\printname\servername\
D)\\servername\printername
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
In Windows 10, what command is used to display text to the console?

A)Monitor
B)Console
C)Echo
D)Mirror
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
In Windows 10 use the TYPE command to display the contents of a text file on the standard output device.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
What tab in the command prompt properties box allows you to select the screen buffer and window sizes of the command prompt?

A)Layout
B)Font
C)Options
D)Colors
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
When using CentOS 7, what is the correct syntax to redirect the output of the ls command to a file named myReport?

A)ls -l *.* > myReport
B)ls /l *.* < myReport
C)ls -l < myReport
D)ls -l myReport
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
In CentOS 7, what command displays the contents of an ASCII file to the standard output device?

A)file
B)print
C)cat
D)show
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
By changing default settings in the Console Windows Properties dialog box, you will only affect the current command prompt.
Indicate the answer choice that best completes the statement or answers the question.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
What command in the Windows 10 CLI will display the contents of a text file on the standard output device?

A)TYPE
B)PRINT
C)ASSOC
D)XCOPY
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
The CentOS 7 tail command reads an entire file before printing it.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
When a user is viewing a command's man page in CentOS 7, what area will give you information about the syntax of the command?

A)Synopsis
B)Options
C)Format
D)Syntax
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
In CentOS 7, what command will search a file and then print all the lines that match your search?

A)more
B)less
C)tail
D)grep
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
You can use both input and output redirection with the same CentOS 7 command.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
The man pages are Help files you use to reference commands in CentOS 7.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
The MORE filter displays one screen of information at a time, how many lines of information are displayed?

A)8
B)16
C)24
D)32
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A command in CentOS 7 that displays the contents of an ASCII file on the standard output device
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A temporary connection between two commands, represented by the | symbol
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
What single-function command-line tool concept does PowerShell introduce?

A)comm
B)cmdlet
C)cmd
D)regedit
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A small command in PowerShell
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
In CentOS 7, what command will allow you to access the man pages for the grep command?

A)grep man
B)man grep
C)help grep
D)grep page
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A command in Windows 10 that displays text to the standard output device
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
In Windows 10, what command will redirect the output of DIR command to a local printer?

A)DIR /S *.* > list
B)DIR /S *.* prn
C)DIR /S *.* > prn
D)DIR /S > prn
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
To change the direction of command output or input from the standard location
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A string used to specify the location of resources, such as shared files or devices
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
Before a command is echoed on the console, where must it first pass through?

A)STDOUT
B)STDIN
C)STDERR
D)STDDEV
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
The CentOS 7 head command prints how many lines from a file to standard output?

A)5
B)10
C)15
D)20
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A command that allows backward movement when you view file contents
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
An invoked interface that parses and interprets command lines and code for execution on behalf of a user interface or program process
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A command in CentOS 7 that searches a file or files by keyword
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
What type of command does PowerShell allow a user to create when they are having trouble remembering a specific cmdlets name?

A)Alias
B)Ghost
C)Sub
D)Mirror
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
Match each item with a statement below.
a.shell
b.UNC
c.ECHO
d.cmdlet
e.grep
f.synopsis
g.pipe
h.redirect
i.cat
j.less
A term used in the CentOS 7 man pages to describe the syntax of commands
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
When using the Edit menu within the Command Prompt or PowerShell, what task will display a dialog box to find a text string within the Command Prompt?

A)copy
B)mark
C)select
D)find
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
In Windows 10, what command can be used without any arguments to display all environment variables along with their values?

A)sort
B)envar
C)view
D)set
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
When a user is viewing a command's man page in CentOS 7, what area will show you the variety of switches you can use with the command?

A)Synopsis
B)Options
C)Format
D)Syntax
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
What Windows 10 shortcut is used 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
B)F2
C)F3
D)F4
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
Describe the CentOS 7 shell.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
What helpful feature at the command line and in PowerShell can you use when you are unsure of the directory name or filename that you need?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
How do you use the completion feature in Windows 10?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
What benefits will a user gain if they learn Command Prompt and PowerShell?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
How is one filter command connected to another?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
How do you reuse a command in the Windows 10 command history?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
How do you use a mouse in the Windows 10 command prompt edit menu?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
What are at least three benefits to using the command line shell with the Windows 10 CLI?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
Describe the basic naming structure of a PowerShell cmdlet.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
What are the man pages used for in CentOS 7?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.