ITSC Ch8
Which of the following symbols do you use to redirect input from a file to a screen display in Windows 10 or CentOS 7? a. < b. > c. -> d. <>
a. <
Use the _______ commands to locate lines with certain text in Windows 10. (Choose all that apply.) a. FIND b. LOCATE c. FINDSTR d. SEARCH
a. FIND c. FINDSTR
Which of the following commands can you use with PowerShell in Windows 10 to obtain help? (Choose all that apply.) a. Get-Help DIR b. Get-Help ECHO c. DIR /? d. ECHO /?
a. Get-Help DIR b. Get-Help ECHO
Why should you use the CLI? (Choose all that apply.) a. It offers a faster way to perform a task, such as renaming multiple files. b. It may inspire you to stay away from computer programming. c. It uses fewer resources than the graphical user interface. d. It allows you to use powerful, multifaceted commands.
a. It offers a faster way to perform a task, such as renaming multiple files. c. It uses fewer resources than the graphical user interface. d. It allows you to use powerful, multifaceted commands.
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
a. Layout
To display the contents of a file in Windows 10, you can use the _______ command. (Choose all that apply.) a. SET b. REM c. PRINT d. TYPE
a. PRINT d. TYPE
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
a. TYPE
To display the entire contents of a file in CentOS 7, you can use the _______ command. a. cat b. head c. tail d. less
a. cat
Use the ECHO command in Windows 10 to _______ (Choose all that apply.) a. display messages b. temporarily stop the program to ask a question c. create text files d. display environment variables
a. display messages c. create text files
You can use the SET command in Windows 10 to _______ environment variables. (Choose all that apply.) a. print b. create c. remove d. display
a. print b. create c. remove d. display
Which of the following commands should you use in a CentOS 7 script to print the last bytes of a file? a. tail b. last c. lastbytes d. head
a. tail
The man pages in CentOS 7 display _______. (Choose all that apply.) a. the synopsis of a command b. the description of a command c. the known bugs associated with a command d. options you can use with a command
a. the synopsis of a command b. the description of a command c. the known bugs associated with a command d. options you can use with a command
Environment variables in Windows 10 are classified as _______. (Choose all that apply.) a. user b. system c. character d. fundamental
a. user b. system
The CentOS 7 head command prints how many lines from a file to standard output? a. 5 b. 10 c. 15 d. 20
b. 10
Which of the following symbols do you use to redirect output from a screen display to a file in Windows 10 or CentOS 7? a. < b. > c. -> d. <>
b. >
Which of the following are considered filter commands in Windows 10? (Choose all that apply.) a. FOR b. FIND c. MORE d. SORT
b. FIND c. MORE d. SORT
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. HELP
Which standard output devices can you use in Windows 10? a. STDIN b. STDOUT c. STDERR d. STDCON
b. STDOUT
PowerShell cmdlets used for filtering are _______. (Choose all that apply.) a. Find-Object b. Sort-Object c. Where-Object d. Format-Table
b. Sort-Object c. Where-Object d. Format-Table
Which of the following Windows 10 PowerShell cmdlets can be used for filtering the output? (Choose all that apply.) a. Sort b. Sort-object c. Where-object d. Format-list
b. Sort-object c. Where-object d. Format-list
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
b. man grep
What type of environment variables are established at login? a. batch b. predefined c. local d. extended
b. predefined
The command history is _______. a. a historical document of a virtual machine's specifications b. useful if you need to recall a previously used command c. nonexistent in CentOS 7 d. unreliable and should be used with caution
b. useful if you need to recall a previously used command
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
c. 24
Which of the following commands can you use in the Windows 10 Command Prompt to obtain help? (Choose all that apply.) a. Get-Help DIR b. Get-Help ECHO c. DIR /? d. ECHO /?
c. DIR /? d. ECHO /?
By default, the head command in CentOS 7 _______. a. provides a detailed description of the header record b. only outputs the first, or head, record c. outputs the first 10 lines of a file d. only works with the tail command
c. outputs the first 10 lines of a file
In its basic form, the grep command in CentOS 7 _______. a. prints to the standard output device b. erases data from a file c. searches a file for a particular pattern d. appends data to a file
c. searches a file for a particular pattern
In CentOS 7, the shell interprets the commands in what type of session? a. batch b. system c. terminal d. editor
c. terminal
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
d. Environment
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
d. find