Use Command-line Tools Flashcards

Lesson 11C (42 cards)

1
Q

processes the legacy command set that has been part of Windows since its earliest versions.

A

command shell
cmd.exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Right-click the command prompt shortcut/select Run as administrator/confirm UAC

A

Run as administrator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

refers to the specific structure and rules that dictate how commands are written and executed to perform tasks.

A

Command Syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

–help or /?

A

If you enter help Command, the help system lists the syntax and switches used for the command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

command syntax

can also display help on a particular command

A

?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

command syntax

The string before > in the command prompt shows the working

A

directory path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

command

To list the files and subdirectories from either the working drive and directory or from a specified path.

A

dir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

wildcard character

A

a placeholder that represents one or more unknown characters, enabling flexible pattern matching in searches or queries.

Example: c?t would find “cat”, “cot”, but not “cart”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

comand

is used to set the focus to a different working directory.

Ex. cd C:\Users\David

A

cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  • parent directory
  • root directory
A

dir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

just enter the drive letter followed by a colon and press ENTER.

ex. D: changes to the D drive. The prompt will change to D:> indicating that the default
drive is now drive D.

A

Changing the Current Drive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

commands

Both commands use a three-part syntax: command\ Source\ Destination. Where ability to transfer files
contained in a single directory.

A

move/copy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

command

is a utility that allows you to copy the contents of more than one directory at a time and retain the directory structure.

as follows: xcopy Source [Destination] [Switches

A

xcopy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

command

To create a directory

ex. md A:\Data\Docs

A

md

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Disk managment

create, delete and extend volumes, assign drive letters, make partition active.

A

diskpart

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

command

writes a new file system to a drive. This process deletes any data existing on the drive.

A

format

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

scans the file system and/or disk sectors for faults and can attempt to repair any problems detected.

18
Q

System Management Commands

shutdown

A

can be used to safely halt the system or log out
* shutdown /s
* shutdown /a - abort
* shutdown /h- hibernate
* shutdown /l - log off
* shutdown /r- restart

19
Q

repair

System File Checker utility (sfc)

A

provides a manual interface for verifying system files and restoring them from cache if they are found to be corrupt or damaged

20
Q

repair

System File Checker utility (sfc)
basics:

A
  • sfc /scannow- scans immediately
  • sfc /scanonce -scan at restart
  • sfc /scanboot- scans each time pc boots
21
Q

command

reports version information winver

22
Q

“switch” can be a physical network device managed via a CLI, it can also be a modifier or option used with commands within any CLI environment.

Ex. [ ls -l ]** ls** is the command to list directory contents, and ** -l **is a switch that modifies the command to display a long listing format switch

23
Q
  • Angle brackets < > mark required placeholders,
  • Square brackets [ ] indicate optional elements,
  • Curly brackets { } with vertical bars | show required, mutually exclusive choices,
  • and Ellipses ... allow repetition of the preceding item.
A

Syntax Notations

24
Q

<command> [arguments] [options]

where the command is the main action, arguments are positional inputs, and options are modifiers prefixed with - or -- that may include values.

A

Command syntax format

25
is a text-based user interface used to interact with a computer system or application.
Command Line Interface
26
is a powerful command-line shell and scripting language developed by Microsoft. It is designed specifically for system administration and automation tasks within the Windows operating system and applications running on it. Always use a space after a command.
Powershell powershell.exe
27
is a graphical host application designed for creating, running, debugging, and testing PowerShell scripts and modules.
Windows Powershell ISE powershell_ise
28
# command Other name for Directory
Folders
29
# command enables you to move from one directory to another.
cd
30
The complete location of a file or folder, shown with backslashes (e.g., C:\Windows\System32\drivers).
File Path
31
# directory hierarchy he main entry point for a storage drive, represented by a drive letter followed by a colon and a backslash (e.g., `C:\`).
Root Directory
32
# directory hierarchy Containers that hold files and other folders.
Folders (Directories)
33
# directory hierarchy Folders contained within other folders.
Subdirectories
34
# directory hierarchy The folder that contains a subdirectory.
Parent Directory
35
creates directories
md
36
remove directory
rd
37
complete location of a file or folder w. backslashes Ex. md c:\office\word\documents
file path
38
# command directory hierarchy
tree
39
# command Windows Command Prompt (CMD) is used to list the files and subdirectories within a specified directory. When executed without any parameters, it displays the contents of the current working directory, including file names, sizes, and modification dates.
dir
40
is used to delete files. delete a file named document.txt in the current directory: del document.txt
del command
41
open Command Prompt or PowerShell as an administrator and type [drive_letter] /O. For example, ....... C: /O will analyze and optimize the C: drive. Other useful commands include ..... [drive_letter] /A to analyze only, ...... /C /O to optimize all volumes, or ....../? to view a list of all parameters.
defrag
42