What do you call a while loop in BASH that doesn't have a condition to stop it?
Question:
What do you call a while loop in BASH that doesn't have a condition to stop it?
true loop
false loop
This type loop does not exist in BASH.
Infinite Loop
Question 2 What command is used to view the contents of a file in BASH?
cat
ls
tail
head
Question 3
What does the following command do in BASH? wc /home/`whoami`/Desktop/myScript.txt
Question 3 options:
This command backs up the file myScirpt.txt | |
This command formats the text using word wrap. | |
This command displays the number of lines, words and characters in the file myScript.txt | |
None of the answers listed are correct. |
Question 4
What does the following command do in BASH? file /home/`whoami`/Desktop/log.txt
Question 4 options:
The command file converts a file to a directory. | |
This creates a file called log.txt | |
This generates an error message. Command not found. | |
The file command in Linux displays the type of file. |
Question 5
What does the following command do in BASH? head /home/`whoami`/Desktop/log.txt
Question 5 options:
The head command displays the top 10 lines of the file log.txt. | |
The head command displays the last 10 lines of the file log.txt. | |
The head command displays the file's line number with the content of the file log.txt to the screen. | |
The head command expands the file log.txt and adds white spaces to the tabs. This makes it easier to export to a CSV file. |
TOPIC 2
From a Windows client, how do you connect to a printer on a server called DC-01 and a printer called HP-NUR05?
Question 1 options:
Install a local printer on the workstation then use the UNC path of \\DC-01\HPNUR05
Use the UNC path of \\DC-01\HP-NUR05
Use the UNC path of //DC-01/HP-NUR05
Map a drive using the UNC path of DC01\HP-NUR05
Question 2
Which one of the PowerShell verbs does not modify the Windows OS?
Question 2 options:
REMO VE
ADD
GET
All of the commands modify the Windows OS
Question 3
From a Windows client, what would you type to map a drive lettter K to a server called SRV-01 and a network share called TopSecret?
Question 3 options:
net use K: \\SRV-01\TopSecret
net use K: \\SRV-01TopSecret
map K: \\SRV-01\TopSecret
net use K: //SRV-01/TopSecret
What happens if the spooler service is stopped on the server?
Question 4 options:
Only Microsoft printers can print.
Printers do not show up and no one can print.
Printers on the server will only print PDF files as the drivers are not available.
Users can't save files to the server.
5 options: Ted prints out a test page from his printer and sees what looks like Klingon on the test page.He attempted to print out a Word document and the printer continued to print out gibberish and wouldn't stop until Ted turned off the printer. He hasn't been able to print anything on this printer that he can use for his work. What is most likely the issue?
See the
Thermodynamics An Interactive Approach
ISBN: 978-0130351173
1st edition
Authors: Subrata Bhattacharjee