COMMANDAS AND PARAMETERS Flashcards
The del command deletes one or more files. When using this command, you need to be aware of the following parameters:
/P – Prompts for confirmation before each deletion.
/F – Forces deletion of read-only files.
/S – Deletes specified files from all subdirectories.
/Q – Uses quiet mode. This prevents prompting of the user.
/A – Selects files to delete based on file attributes.
The tasklist command displays a list of all running processes. When using this command, you need to be aware of the following parameters:
/S system – Specifies the remote system to use.
/U domain_name\user_name – Specifies the user context for the command.
/P password – Specifies password for user account.
/SVC – Specifies services hosted in each process.
/V – Displays verbose tasks information.
/pid process_ID – Terminates the process with the given process ID.
/f – Forces termination.
/t – Terminates all child processes of the specific process that is being terminated.
The shutdown command schedules a system shutdown. When using this command, you need to be aware of the following parameters:
/S – Turns the computer off.
/R – Restarts the computer.
/M \computer_name – Specifies the remote computer to shutdown/restart.
/C comment – Displays the given comment prior to shutting down.
The sfc command verifies the version of system files running on the computer. Corrupted files will be replaced with correct versions. When using this command, you need to be aware of the following parameters:
SCANNOW – Scans protected files immediately.
/SCANONCE – Scans all protected files once.
/SCANBOOT – Scans all protected files every time the computer reboots.
/VERIFYONLY – Scans the protected files, but does not make repairs or changes.
/SCANFILE – Scans only the specified file.
The bootrec command interacts with the Master Boot Record (MBR), boot sector, or boot configuration data (BCD) store. It is considered a replacement for the Recovery Console. When using this command, you need to be aware of the following parameters:
/FIXBOOT – Writes a new boot sector.
/FIXMBR – Writes a new MBR.
/REBUILDBCD – Rebuilds BCD store.
/SCANOS – Scans all disks for installations the Boot Manager menu is not listing.
Windows is reporting that a system file is corrupt on a Windows computer. You have already run chkdsk /f and rebooted the machine, but the error message shows that the file is still corrupt.
Which command-line tools would you use next?
System File Checker (SFC) is the tool that fixes corrupt system files. To identify which system files need repair, open an elevated command prompt and run sfc /verifyonly. To repair those files, run sfc /scannow.