Chapter 8
The CentOS 7 head command print how many lines from a file to standard output?
10
The more filter displays one screen of information at a time, how many lines of information is displayed?
24
In Windows 10, what command will allow you to use the completion feature during an editing session?
CMD /F: ON
In Windows 10, what command will redirect the output of a DIR command to a local printer? ~~Has Asterisks around . in answer~~
DIR /S *.* > prn
What type of variable is utilized in both environments to refer to various features of the computer system and certain basic system data?
Environment Variables
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?
F2
By changing default settings in the Console Windows Properties dialog box, you will only affect the current command prompt.
False
The CentOS tail command reads an entire file before printing it.
False
When using the edit menu within Command Prompt or PowerShell what task will display a dialog box to locate text in the Command Prompt?
Find
To see a list of available commands at the Windows 10 Command Prompt, what command do you use?
Help
What tab in the command prompt properties box allows you to select the screen buffer and window sizes of the command prompt?
Layout
When a user is viewing a command's man page in Linux, what area will show you the variety of switches you can use?
Options
Before a command is echoed in the console where must it first pass through?
STDIN
When a user is viewing a command's man page in CentOS what area will give you the syntax of the command?
Synopsis
What command in Windows will display the contents of a text file on the standard output?
TYPE
The shell interprets commands in what type of session?
Terminal
In Windows 10 use the TYPE command to display the contents of a text file on the standard output device.
True
The man pages are Help files you use to reference commands in CentOS7.
True
You can use both input and output redirection with the same CentOS command.
True
To redirect the print command output to a network printer using the UNC format. what syntax would you use?
\\servername\printername
What type of command does PowerShell allow users to create when they are having trouble remembering a cmdlet's name?
alias
In Linux what command displays the contents of the ASCII file to the standard output device?
cat
What single function command line tool concept does PowerShell introduce?
cmdlet
In Linux, what command is used to extract fields from a file line (record)?
cut
In Windows 10, what command is used to display text to the console?
echo
In Linux, what command will search a file and print al the lines matching the search?
grep
In Linux, the command prints how many lines from a file to standard output?
head
When using Linux, what is correct syntax to redirect the output of the ls command to a file named myReport? ~~Has Asterisks around . in answer~~
ls -l *.* > myReport
In CentOS 7, what command will allow you to access the man pages for the grep command?
man grep
In Linux what command will allow you to access the manual pages for grep command?
man grep
What type of environment variables are established at login?
predefined
In Windows 10, what command can be used without any arguments to display all environment variables?
set