Home
Explore
Exams
Login
Get started
Home
CompTIA A+ Core 2 Commands
CompTIA A+ Core 2 Commands
0.0
(0)
Rate it
Studied by 0 people
Call Kai
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Knowt Play
Card Sorting
1/57
There's no tags or description
Looks like no tags are added yet.
58 Terms
View all (58)
Star these 58
1
New cards
ls
Lists directory contents on Linux/macOS. Add -l for details and -a to include hidden files.
2
New cards
pwd
Prints the current working directory path in the terminal.
3
New cards
mv
Moves or renames files and directories.
4
New cards
cp
Copies files and directories. Add -r to copy folders.
5
New cards
rm
Deletes files with no recycle bin. Add -r for directories; -f forces deletion, so be careful.
6
New cards
chmod
Changes read, write, and execute permissions for owner, group, and others. Numeric example: 755.
7
New cards
chown
Changes the owner and group of a file or directory.
8
New cards
grep
Searches text for lines matching a pattern. Often used to filter command output or logs.
9
New cards
find
Searches the file system for files by name, type, size, or date.
10
New cards
fsck
Checks and repairs Linux file system errors. Run it on unmounted volumes.
11
New cards
mount
Attaches a storage device or file system to a directory in the Linux/macOS file tree.
12
New cards
su
Switches to another user account, commonly root, using that account's password.
13
New cards
sudo
Runs one command with root privileges after entering your own password. Preferred over logging in as root.
14
New cards
apt
Package manager for Debian/Ubuntu-based distros. Installs, updates, and removes software.
15
New cards
dnf
Package manager for Fedora/RHEL-based distros. Installs, updates, and removes software.
16
New cards
ip
Linux tool to view and configure addresses, routes, and interfaces. Replaces the older ifconfig.
17
New cards
ping
Linux/macOS: tests reachability and latency to a host with ICMP echo. Runs until stopped unless a count is set.
18
New cards
curl
Transfers data to or from a URL from the command line. Used to test web services and download files.
19
New cards
dig
Linux/macOS tool that queries DNS servers in detail. Counterpart to the Windows name lookup tool.
20
New cards
traceroute
Linux/macOS: shows each router hop on the path to a destination to locate delays or failures.
21
New cards
man
Displays the built-in manual page for a command, including syntax and options.
22
New cards
cat
Prints file contents to the screen. Can also combine files.
23
New cards
top
Live view of running processes with CPU and memory usage. Linux/macOS equivalent of Task Manager.
24
New cards
ps
Lists running processes. Often combined with a filter to find a process ID.
25
New cards
du
Reports how much disk space files and directories use.
26
New cards
df
Reports used and free space on mounted file systems.
27
New cards
nano
Beginner-friendly terminal text editor. Ctrl+O saves and Ctrl+X exits.
28
New cards
/etc/passwd
Linux file listing local user accounts with ID, home directory, and shell. Readable by all users and no longer holds password hashes.
29
New cards
/etc/shadow
Linux file storing hashed account passwords and expiry info. Readable only by root.
30
New cards
/etc/hosts
Local file mapping names to IP addresses, checked before DNS. Edited to override or block names.
31
New cards
/etc/fstab
Linux config listing file systems and where to mount them at boot. Errors here can stop booting.
32
New cards
/etc/resolv.conf
Linux file specifying DNS servers and search domains used for name resolution.
33
New cards
.dmg
macOS disk image file. Open it to mount, then drag the app into Applications.
34
New cards
.pkg
macOS installer package that runs a guided installation.
35
New cards
.app
macOS application bundle: a folder that acts as a single program. Drag to Applications to install.
36
New cards
cd
Changes the current directory in the Windows command prompt. Use two dots to go up one level.
37
New cards
dir
Lists files and folders in the current Windows directory. Switch /a shows hidden items.
38
New cards
ipconfig
Shows Windows IP settings. /all adds MAC, DHCP, and DNS info. /release and /renew refresh a lease, and /flushdns clears the DNS cache.
39
New cards
ping
Windows: tests connectivity with ICMP echo. Sends four replies by default; -t runs continuously. Test the loopback, gateway, then remote host.
40
New cards
netstat
Displays active connections, listening ports, and statistics. Switches -a and -n show all in numeric form; -b shows the owning program.
41
New cards
nslookup
Queries DNS to check name-to-IP resolution. Use it to tell DNS problems from connectivity problems.
42
New cards
net use
Maps or disconnects network drives and shares from the command line using a UNC path.
43
New cards
tracert
Windows tool showing each router hop to a destination with response times.
44
New cards
pathping
Combines hop tracing with per-hop packet loss statistics measured over time.
45
New cards
chkdsk
Scans a drive for file system errors and bad sectors. /f fixes errors and /r recovers readable data.
46
New cards
format
Erases a volume and sets up a new file system such as NTFS, FAT32, or exFAT. Offers quick or full mode.
47
New cards
diskpart
Command-line disk tool to list disks, create or delete partitions, clean a disk, and convert between GPT and MBR.
48
New cards
md
Creates a new directory in the Windows command prompt.
49
New cards
rmdir
Removes a directory. /s also deletes its contents and /q suppresses prompts.
50
New cards
robocopy
Robust Windows copy tool for large transfers, mirroring, and retries. Successor to xcopy.
51
New cards
hostname
Displays the computer's network name.
52
New cards
net user
Manages local user accounts: view, add, delete, enable, disable, and reset passwords.
53
New cards
winver
Opens a window showing the Windows edition, version, and build number.
54
New cards
whoami
Displays the currently logged-in user as domain\user. Useful to confirm account and privileges.
55
New cards
[command name] /?
Shows built-in help for a Windows command, including syntax and switches.
56
New cards
gpupdate
Forces an immediate refresh of Group Policy on the computer. /force reapplies all policies.
57
New cards
gpresult
Shows which Group Policy settings applied to a user or computer. /r gives a summary.
58
New cards
sfc
Scans protected Windows system files and repairs corrupted ones from cached copies. Run the /scannow switch from an elevated prompt.