Commands Flashcards
(6 cards)
Which of the following Linux commands would help to identify which directory the user is currently operating in?
A. pwd
B. dig
C. find
D. cat
A. pwd
✅ A. pwd
Stands for print working directory.
Displays the full path of the current directory the user is in.
❌ B. dig
Used for DNS lookups, not directory info.
❌ C. find
Searches for files and directories but doesn’t show the current directory.
❌ D. cat
Displays the contents of a file, not directory location.
A technician is creating a location on a Windows workstation for a customer to store meeting minutes. Which of the following commands should
the technician use?
A. c:\minutes
B. dir
C. rmdir
D. md
D. md
✅ D. md
Stands for make directory.
Used to create a new folder (e.g., md minutes creates a “minutes” folder).
❌ A. c:\minutes
This is a path, not a command.
❌ B. dir
Lists directory contents; doesn’t create folders.
❌ C. rmdir
Removes (deletes) a directory, not creates one.
A technician is troubleshooting a Windows 10 PC that is unable to start the GUI. A new SSD and a new copy of Windows were recently installed on the PC. Which of the following is the most appropriate command to use to fix the issue?
A. msconfig
B. chkdsk
C. sfc
D. diskpart
E. mstsc
C. sfc (System File Checker)
✅ C. sfc (System File Checker)
Scans and repairs corrupted or missing Windows system files that might prevent the GUI (graphical user interface) from starting.
Useful after a new installation if system files are damaged.
❌ A. msconfig
Used to configure startup options, but doesn’t repair system files.
❌ B. chkdsk
Checks disk integrity, but less likely to fix GUI startup issues if hardware and OS were recently replaced.
❌ D. diskpart
Disk partitioning tool, not related to fixing system files or GUI startup.
❌ E. mstsc
Remote Desktop client, unrelated to local GUI startup issues.
A technician is setting up a printer on a Linux workstation. Which of the following commands should the technician use to set the default printer?
A. lpr
B. lspool
C. lpstat
D. lpoptions
D. lpoptions
✅ D. lpoptions
The lpoptions command is used on Linux systems to configure printer settings, including setting the default printer.
Example: lpoptions -d printer_name sets the default printer.
❌ Incorrect Options:
A. lpr
Used to send print jobs to the printer, not for setting configuration.
B. lspool
Not a standard Linux command related to printing; invalid in this context.
C. lpstat
Displays printer status information but does not configure the printer.
A technician cannot uninstall a system driver because the driver is currently in use. Which of the following tools should the technician use to help
uninstall the driver?
A. msinfo32.exe
B. dxdiag.exe
C. msconfig.exe
D. regedit.exe
C. msconfig.exe
✅msconfig.exe (System Configuration) allows a technician to:
Boot the system in Safe Mode, where only essential drivers and services are loaded.
Disable specific startup services or drivers, which can free the driver from active use so it can be uninstalled.
This makes it the best tool when a driver is in use and preventing uninstallation during normal operation.
❌ Breakdown of Incorrect Options:
A. msinfo32.exe
❌ Shows system information but does not allow disabling or uninstalling drivers.
B. dxdiag.exe
❌ Used to diagnose DirectX issues; not relevant for uninstalling drivers.
D. regedit.exe
❌ Can manually remove registry entries, but this is risky and not the correct method for safely removing drivers.
Applications on a computer are not updating, which is preventing the user from opening certain files. Which of the following MAC snap-ins should
the technician launch next to continue troubleshooting the issue?
A. gpedit.msc
B. perfmon.msc
C. devmgmt.msc
D. eventvwr.msc
A. gpedit.msc
✅gpedit.msc (Group Policy Editor) allows the technician to check and configure policies that might be blocking application updates or file access.
Sometimes group policies restrict updates or certain application behaviors, which can cause issues opening files.
Why the others are less suitable:
B. perfmon.msc (Performance Monitor)
❌ Used for monitoring system performance, not managing updates or app permissions.
C. devmgmt.msc (Device Manager)
❌ Used for managing hardware drivers, not application updates or policies.
D. eventvwr.msc (Event Viewer)
❌ Useful to view logs, but it is more for diagnosis after identifying issues, not the first step to check policies.