Chapter 18 Quiz Flashcards
Match the script file extension to the description.
.bat—————————-Windows batch file
.ps1—————————-Windows PowerShell script file
.vbs—————————-VBScript file
.sh——————————Unix or Linux shell script file
.py——————————Python script file
.js——————————-JavaScript file
Use ______________________ to put a macOS computer to sleep, log out, restart, or shut down the system.
Apple Menu
What two commands are used to change the permissions and ownership of a file or directory in Linux?
chmod
chown
If you need to redirect the output from a command, what symbol should you use?
>
A variation of the ________ operating system, Linux was created by Linus Torvalds.
UNIX
Programs that automatically launch at startup are called login items. (true/false)
false
Which of the following is the current Linux file system used to hold the operating system?
ext4
Windows can read from storage devices that are using the APFS. (true/false)
false
What command lets you view the contents of a file?
cat
On Linux, where are the commands required for system administration stored?
/sbin
Start
Match the scripting term to the description.
$X
%TEMP%
“Press any key”
“sample text”
Loop
9
1424
Start——————–PowerShell comment
$X————————-Variable
%TEMP%—————-Windows environment variable
“Press any key”——-String (1)
“sample text”———String (2)
Loop———————Executes the same commands until a condition is met
9————————–Integer (1)
1424———————Integer (2)
A ____________ file is a disk image file for a Mac and is similar to WIM or ISO files in Windows.
dmg
__________________________ gives you a quick view of all open windows and desktops and lets you switch among them.
mission control
Versions of Linux are called distributions or ___________.
flavors
What user account is known as the system administrator or superuser account?
root
What keypress sequence is used to open the Force Quit window on a Mac?
command+option+esc
Basic versions of LINUX OS are open source, and all the underlying programming instructions (called __________ code) are freely distributed.
source
The ________________________ window is used to change and customize macOS settings and is similar to the Settings app in Windows 10.
system preferences
In order to break out of a Linux command or process on a terminal, what keys should you press?
ctrl+c
A technician is logged in to a Linux computer as johnd and needs to reset group ownership for the file report.txt in the johnd home directory. Which of the following commands will perform this function?
chown
In macOS, the ___________________ window functions something like File Explorer in Windows; use it to find and access files, applications, and utility programs.
Finder
What is the name of the macOS built-in backup utility?
Time Machine
In order to ensure that a Mac has no startup items, what two directories should you check for items?
/System/Library/StartupItems
/Library/StartupItems
_________________ is the macOS built-in password manager utility.
Keychain
A bootable Linux USB flash drive or CD that can be used to repair system issues is known by what term, respectively?
Live USB or Live CD
The macOS disk utility tool called __________________________ scans a hard drive or other storage device for file system errors and repairs them.
First Aid
A(n) environmental variable (sometimes called a _________ variable) is information the OS makes available to a script.
system
Which of the following are closed source operating systems?
Mac OS X High Sierra
Windows 10 Home
A Linux user needs to find all instances of the word admin in /var/log/auth.log. Which of the following commands will perform this function?
grep
In macOS, ____________________ is the search app that can be configured to search the local computer.
Spotlight
What LINUX command can be used to copy and convert files, directories, partitions, and even entire DVDs or hard drives?
dd
In Linux and macOS, this text editor works in command mode (to enter commands) or in insert mode (to edit text).
vi
A system administrator is selecting an operating system for use by the company’s research and development team. The team requires an OS that can be easily modified and changed to meet its particular requirements.
Which of the following operating systems will be the best choice for the users?
Linux
What is the value of X and what is the condition of the Do…Loop when execution ends in the following pseudo code?
X = 1
Do
‘ This is a comment
Print X;
Loop
X = 1, the Do…Loop is endless.
Which of the following is a major advantage to using SSH over Telnet for remotely accessing a Linux system?
SSH is a secure, encrypted alternative to Telnet.
GRUB is the current Linux boot loader, which can handle dual boots with another OS installed on the system. (true/false)
true
You opened a batch file in Notepad and are observing the following lines. (The line numbers are for reference only.)
ECHO This batch file deletes the temp files
DEL %TEMP%. /Q
REM The temp files were deleted
PAUSE
Which of the lines is a comment?
Line 3
After Windows is installed on a Mac Computer, press and hold the _________ key when starting the computer to reach the Startup Manager.
option
If you want to boot to a deployment server on the network to reinstall macOS from a disk image, you will use the Apple technology called _____________. (one word answer)
netboot
What is the value of X when execution ends in the following pseudocode?
Set X As Integer
For X = 100 to 0 Step -1
‘ This is a comment
Next X
X = 100
100
What is the term used to designate that a particular operating system will no longer be supported by its manufacturer or managing entity?
End-of-life
The __________ file system can be read and written by Linux, macOS, and Windows, and is therefore the file system of choice when you are concerned with compatibility.
FAT32
The _____________ (substitute user) command is used to perform a command as superuser when logged in as a normal user.
sudo
On Linux, the root user’s home directory is /home/root. (true/false)
false
What occurs when Linux or macOS encounters an error from which it cannot recover?
kernel panic
______________________________ is a macOS utility to remotely view and control another Mac; it is similar to Remote Desktop in Windows.
screen sharing
What LINUX command below is used to test network connections by sending a request packet to a host?
ping
Which of the following describes the macOS feature that lets you use finger motions to perform functions, for example, spreading two fingers to zoom in?
gestures
Boot Camp is a utility in macOS that allows you to install and run _________ on a Mac Computer.
Windows
A user is complaining about sluggish performance on her Linux system, and the technician suspects a running process is consuming excessive processor resources. Which of the following commands will the technician most likely use to locate the offending process?
ps
The default shell for the terminal is the ________ shell, which stands for “Bourne Again Shell”.
bash
Linux utilizes what two different wildcard characters at the command line?
*
?
macOS, formally called Mac OS X, is a ___________________ operating system that is only available for Macintosh computers by Apple Inc.
proprietary
What Linux distribution is made for servers, desktops, and mobile devices?
openSUSE
The macOS utility __________________ is used to launch and uninstall applications.
Launchpad
Boot Camp can split a partition and install Windows in the new partition for a _______ boot.
dual
A technician needs to boot macOS over the network using an image stored on a server.
What Apple technology will best assist the technician?
NetBoot
Which of the following best describes a variable when implemented in a script?
A container for storing data values that can be assigned, referenced, and manipulated
A technician is logged in to a Linux system with a user account that has been assigned root privileges. Each time the technician attempts to run a specific terminal command, a “Permission denied” message is displayed.
What is the most likely reason for this message?
The command needs to be preceded by sudo.
How can you eliminate the need to open a dedicated TCP port on your corporate firewall when using Mac computers to share screens from the local and remote computers?
Use a third-party remote access app that uses a browser.
You opened a batch file in Notepad and are observing the following lines. (The line numbers are for reference only.)
1-ECHO This batch file deletes the temp files
2-DEL %TEMP%. /Q
3-REM The temp files were deleted
4-PAUSE
Which of the lines is a comment?
Line 3
Which of the following are closed source, proprietary operating systems? (Select TWO.)
Mac OS X High Sierra
Windows 10 Home
A Mac computer is reporting problems with the HDD, and the user wants to run a check for errors.
Which of the following is a disk management tool built into macOS that is useful for finding and repairing disk problems?
First Aid
Which of the following are natively supported by the Windows, Mac, and Linux operating systems?
Support for reading and writing to FAT32 partitions
A technician wants to use a Time Machine backup to install a new copy of the macOS onto a Mac.
Which of the following tools will the technician use to perform this task?
macOS Recovery
A Mac user wants to update macOS and is searching Apple.com to locate update files.
How are macOS updates typically obtained?
Updates are found in the App Store.
In Linux, where are the commands required for system administration stored?
/sbin