Windows Commands Flashcards

1
Q

help or /?

A

It shows available commands and you can get help on a specific command using /? switch.

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

dir

A

Lists the files and folders in the current directory.

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

cd

A

changes current directory.

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

xcopy

A

Copies files and directories, including subdirectories (e.g., xcopy C:\source D:\destination /E).

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

robocopy

A

Copies files and directories with advanced options for resilience and performance (e.g., /MIR).

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

mkdir

A

make directory.

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

rmdir /rd

A

removes a directory

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

diskpart

A

Opens the disk partition management utility. It can be used with “select disk 0/1/2/…” or “select volume 0/1/…”. You can enter “detail disk” to see configuration information for the disk.

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

format

A

creates a file system on a partition and deletes any data existing on the drive.

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

chkdsk
X:
X: /f for fix
X: /r for recover

A

Checks a disk for errors and fixes them if possible.

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

shutdown

A

closes all programs and services before powering off the computer. You can add delay by seconds using the /t nn switch.

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

hibernate (shutdown /h)

A

save current session to disk before powering off.

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

Logg off (shutdown /l)

A

Close all open programs and services started under the user account but leave the computer running.

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

Restart (shutdown /r)

A

Close all open programs and services before rebooting without powering down.

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

sfc

A

Provides a manual interface for verifying system files and restoring them from cache if they are found to be corrupt or damaged. common switches: /scannow - /scanonce - /scanboot

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

Winver

A

reports the version of windows

17
Q

move

A

Moves files to a new location or renames them.

18
Q

del

A

Deletes a file (e.g., del file.txt deletes file.txt).

19
Q

rmdir

A

Deletes a directory (only if it’s empty).

20
Q

mkdir

A

Creates a new directory (e.g., mkdir NewFolder).

21
Q

echo

A

Displays messages or outputs text to a file (e.g., echo Hello > file.txt).

22
Q

ping

A

Tests the network connection to a host by sending ICMP packets (e.g., ping google.com).

23
Q

tracert

A

Traces the route packets take to a destination.

24
Q

pathping

A

Traces the route packets take to a destination.

25
Q

nslookup

A

Resolves a domain name to an IP address or vice versa (e.g., nslookup google.com).

26
Q

netstat

A

Displays active network connections and listening ports.

27
Q

ipconfig

A

Displays and manages network configuration settings.

28
Q

find

A

Searches for a specific string in a file (e.g., find “text” file.txt).