CompTIA A+ Core 2 commands

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/82

encourage image

There's no tags or description

Looks like no tags are added yet.

83 Terms

1
New cards

cd

Changes the current directory.

2
New cards

dir

Lists files and folders in the current directory

3
New cards

md / mkdir

Creates a new directory.

4
New cards

rmdir / rd

Removes an empty directory.

5
New cards

copy

Copies individual files or all files inside a single folder. It cannot copy subdirectories/folders.

6
New cards

xcopy

Copies files and entire directory trees (folders and subfolders).

7
New cards

robocopy

Designed for massive transfers, backups, and unstable network connections. It resumes interrupted transfers, preserves NTFS permissions/attributes, and supports multithreading.

8
New cards

format

Prepares a drive or partition with a file system.

9
New cards

diskpart

Command-line utility for managing disks and partitions.

10
New cards

ipconfig

Displays IP configuration.

11
New cards

ping

Tests basic network connectivity to a host or IP

12
New cards

tracert

Traces the route packets take to a destination.

13
New cards

pathping

Combines ping and tracert to show routing and packet loss/latency per hop.

14
New cards

nslookup

Queries DNS to troubleshoot name resolution.

15
New cards

netstat

Displays active connections, listening ports, and network statistics.

16
New cards

net use

Connects or disconnects mapped network drives/shared resources.

17
New cards

sfc /scannow

Scans and repairs corrupted protected Windows system files.

18
New cards

chkdsk

Checks file system integrity and disk errors

19
New cards

dism

Prepares and modifies Windows system images.

20
New cards

gpupdate

Updates Group Policy settings

21
New cards

gpresult

Displays applied Group Policy results.

22
New cards

shutdown

Shuts down, restarts, or aborts a shutdown

23
New cards

tasklist / taskkill

Lists running processes and ends them by PID or image name

24
New cards

net user

Manages local user accounts.

25
New cards

ls

Lists files and folders in the current directory

26
New cards

pwd

Prints the working directory

27
New cards

cp

Copies files or directories

28
New cards

cd ..

Moves you up one level to the parent directory in both Windows Command Prompt and Linux/macOS terminals.

29
New cards

mv

Moves files/folders or renames them.

30
New cards

rm

Removes (deletes) files

31
New cards

rmdir

Removes an empty directory.

32
New cards

cat

Concatenates and displays the contents of a text file in the terminal.

33
New cards

find

Searches for files and directories based on criteria like name, size, or date.

34
New cards

grep

Searches inside files or command output for matching text strings or patterns.

35
New cards

dd

Data duplicator—performs low-level copying and cloning of raw disk partitions, drives, or ISO images.

36
New cards

chmod

Changes mode

37
New cards

chown

Changes ownership of a file or directory to a specific user and/or group.

38
New cards

sudo

Superuser do—runs a single command with administrative (root) privileges.

39
New cards

su

Substitute/switch user—switches the active terminal session to another user account (defaults to root if no username is given).

40
New cards

passwd

Changes a user's password.

41
New cards

ps

Process status—displays a static snapshot of currently running processes and their Process IDs (PIDs).

42
New cards

top

Displays a live, real-time list of active processes and CPU/memory usage.

43
New cards

kill

Terminates a running process by its PID (e.g., kill 1234 or kill -9 1234 to force-kill).

44
New cards

df

Disk free—displays available and used disk space on mounted file systems (df -h shows sizes in human-readable GB/MB).

45
New cards

shutdown

Shuts down or restarts the system

46
New cards

apt-get (or apt)

Package management tool used to install, update, and remove software on Debian/Ubuntu-based systems.

47
New cards

yum (or dnf)

Package management tool used on Red Hat/Fedora-based systems.

48
New cards

nano

A beginner-friendly, straightforward command-line text editor.

49
New cards

vi

A powerful, modal command-line text editor found on almost all Unix/Linux systems.

50
New cards

man

Opens the manual page

51
New cards

chkdsk /f

Fixes file system errors on the disk.

52
New cards

chkdsk /r

Locates bad sectors and recovers readable information (automatically includes /f).

53
New cards

shutdown /s

Shuts down the computer.

54
New cards

shutdown /r

Restarts the computer.

55
New cards

shutdown /a

Aborts a scheduled shutdown.

56
New cards

shutdown /t

Sets a time-out period in seconds before shutting down.

57
New cards

shutdown /f

Forces running applications to close without warning.

58
New cards

copy /v

Verifies that new files are written correctly.

59
New cards

copy /y

Suppresses confirmation prompts ("Yes" to overwrite existing files).

60
New cards

xcopy /s

Copies subdirectories (excluding empty ones).

61
New cards

xcopy /e

Copies all subdirectories, including empty ones.

62
New cards

xcopy /y

Suppresses confirmation prompts ("Yes" to overwrite existing files).

63
New cards

robocopy /s

Copies subdirectories (excluding empty ones).

64
New cards

robocopy /e

Copies all subdirectories, including empty ones.

65
New cards

robocopy /z

Copies files in restartable mode (resumes if interrupted).

66
New cards

dir /p

Pauses after each screen of information.

67
New cards

dir /w

Displays results in wide list format.

68
New cards

dir /a

Shows files with specific attributes

69
New cards

dir /s

Lists files in the current directory and all subdirectories.

70
New cards

cd /d

Changes both the drive and the directory at the same time

71
New cards

rmdir /s

Removes a directory tree (subdirectories and all files inside it).

72
New cards

rmdir /q

Quiet mode—skips asking "Are you sure?" when deleting a folder tree.

73
New cards

taskkill /f

Forcefully terminates a process.

74
New cards

netstat /a

Displays all active connections and listening ports.

75
New cards

netstat /n

Displays addresses and port numbers in numerical form.

76
New cards

netstat /o

Displays the owning Process ID (PID) for each connection.

77
New cards

ls -l

Long listing format (shows permissions, owner, size, and date).

78
New cards

ls -a

Shows all files, including hidden files starting with a dot (.).

79
New cards

rm -r

Recursively deletes a folder and everything inside it.

80
New cards

rm -f

Forcefully deletes files without prompting.

81
New cards

cp -r

Recursively copies a directory and its contents.

82
New cards

df -h

Displays disk free space in human-readable sizes (GB/MB).

83
New cards

ps -e

Shows running processes for everyone / all users.