Command Line Test Review: Windows 11 & Linux 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/67

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering Windows 11 and Linux command-line tools, utilities, file navigation, networking, process management, and user administration.

68 Terms

1
New cards

dir

Lists all files and folders inside your current folder in Windows.

2
New cards

cd [folder_name]

Moves you forward into that specific folder.

3
New cards

cd ..

Moves you backward one folder level up.

4
New cards

cd \

Takes you all the way back to the root directory (usually the C: drive) in Windows.

5
New cards

mkdir (Windows)

Creates a brand new folder.

6
New cards

ren

Renames a file or folder in Windows.

7
New cards

copy

Copies a file from one place to another in Windows.

8
New cards

del

Permanently deletes a file in Windows.

9
New cards

rmdir (Windows)

Deletes an empty folder in Windows.

10
New cards

ipconfig

Displays your computer’s current network configurations, including local IP address, subnet mask, and default gateway.

11
New cards

ping (Windows)

Sends test packets (ICMP Echo Requests) to a target host to verify network reachability and measure round-trip time.

12
New cards

tracert

Traces and displays the hop-by-hop route that data packets take to reach a destination host, showing delays along the path.

13
New cards

cls

Clears the entire screen so you have a fresh, blank prompt to work with.

14
New cards

systeminfo

Loads a comprehensive list of your PC's hardware, operating system version, and boot time.

15
New cards

help [command]

Gives you an explanation and a list of options for any specific command in Windows.

16
New cards

exit

Closes the Command Prompt window.

17
New cards

locate *.doc

Searches the indexed database for all files ending with .doc.

18
New cards

sudo adduser

Interactive script to create a new user account in Linux.

19
New cards

sudo usermod -aG sudo

Appends (-a) a user to the sudo group (-G) to grant administrative privileges.

20
New cards

sudo passwd -e

Immediately expires a user's password, forcing them to change it on next login.

21
New cards

sudo ufw enable/status

Enables the Uncomplicated Firewall (UFW) or checks its active status and rules.

22
New cards

sudo systemctl stop

Stops a running system process or service in Linux.

23
New cards

sudo apt update

Updates the local package index with the latest available packages from repositories.

24
New cards

sudo apt full-upgrade -y

Upgrades all installed packages, automatically handling changing dependencies without prompting (-y).

25
New cards

ss

Utility to investigate socket statistics (replaces older network tools like netstat).

26
New cards

ss / netstat option -t

Displays or filters output to show only TCP sockets/connections using the Transmission Control Protocol.

27
New cards

ss / netstat option -u

Displays or filters output to show only UDP sockets/connections using the User Datagram Protocol.

28
New cards

ss / netstat option -l

Displays only listening sockets (ports waiting for incoming connections) rather than established connections.

29
New cards

ss / netstat option -n

Prevents resolving service names/hostnames and instead displays raw numerical addresses and port numbers directly to run faster.

30
New cards

ps

Displays a snapshot of current running processes.

31
New cards

cat

Displays the entire contents of the specified error log file to standard output.

32
New cards

sudo deluser

Deletes a user account from the system.

33
New cards

sudo gpasswd -a

Adds a specific user to a specified target group.

34
New cards

sudo chage -M

Sets the maximum number of days (-M) between password changes for an account.

35
New cards

getent shadow

Fetches and displays entries from the shadow password database file (/etc/shadow).

36
New cards

/etc/shadow

A secure Linux system file that stores encrypted user password hashes and password-aging metadata.

37
New cards

sudo addgroup

Creates a new user group on the system.

38
New cards

sudo passwd -l

Locks a user's account by disabling their password.

39
New cards

touch

Updates file timestamps or creates a new empty file if it doesn't exist.

40
New cards

gedit

Opens a text file in the default GNOME graphical text editor.

41
New cards

systemctl status

Displays the current running status, logs, and activity of a system service.

42
New cards

sudo systemctl enable ufw

Configures the UFW service to automatically start at system boot.

43
New cards

sudo systemctl disable

Prevents a specific service from starting automatically at system boot.

44
New cards

sudo sh

Executes a shell script file with root administrative privileges using the system shell.

45
New cards

rm

Removes (deletes) specified files or directories in Linux.

46
New cards

sudo apt purge

Completely removes a package along with all of its system configuration files.

47
New cards

ls

Lists directory contents and file information.

48
New cards

ls -a

Displays hidden files and directories (those starting with a dot .), including the current directory (.) and the parent directory (..).

49
New cards

ls -l

Outputs detailed metadata for each file across seven distinct columns (long listing).

50
New cards

pwd

Displays the absolute path of the current working directory.

51
New cards

cd (Linux)

Changes the current working directory.

52
New cards

locate

Searches for files by name using a pre-built system database.

53
New cards

find

Searches for files and directories in real-time based on names, sizes, or permissions.

54
New cards

mkdir (Linux)

Creates one or more new directories.

55
New cards

rmdir (Linux)

Removes empty directories from the filesystem.

56
New cards

cp

Copies files or directories from one location to another in Linux.

57
New cards

mv

Moves or renames files and directories in Linux.

58
New cards

zip

Compresses files or directories into a standard .zip archive.

59
New cards

unzip

Extracts files from a compressed .zip archive.

60
New cards

su

Switches to another user account (defaults to root if no user is specified).

61
New cards

whoami

Prints the username associated with the currently logged-in user session.

62
New cards

useradd

Low-level utility to create a new user account in Linux.

63
New cards

userdel

Removes a user account from the system.

64
New cards

sudo passwd

Forces password change for user.

65
New cards

sudo systemctl start

Starts a process in Linux.

66
New cards

kill

Sends a signal to terminate a running process by its Process ID (PID).

67
New cards

ping (Linux)

Sends ICMP ECHO_REQUEST packets to network hosts to test connection and response time.

68
New cards

netstat

Displays network connections, routing tables, and interface statistics.