Commands (extended)

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

1/94

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:52 AM on 9/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

95 Terms

1
New cards

netstat -natup

Linux — Displays active network connections and listening sockets; -n shows numeric IPs/ports, -a shows all connections/listeners, -t shows TCP, -u shows UDP, and -p shows the associated process/PID.

2
New cards

ss -tulnp

Linux — Displays listening network sockets; -t TCP, -u UDP, -l listening sockets, -n numeric addresses/ports, and -p associated processes/PIDs.

3
New cards

ps -ealf

Linux — Displays detailed information about all running processes; -e selects every process, -a includes processes from all users, -l uses long-format output, and -f uses full-format output.

4
New cards

grep -v

Linux — Searches for lines that do not match the specified pattern; -v inverts the match.

5
New cards

sed -i

Linux — Edits text files directly; -i modifies the original file in place instead of only printing the modified output.

6
New cards

touch -t

Linux — Creates a file or modifies its timestamps; -t allows a specific timestamp to be supplied in [[CC]YY]MMDDhhmm[.ss] format.

7
New cards

file

Linux — Determines a file's type by examining its contents and identifying characteristics rather than relying only on its filename extension.

8
New cards

strings

Linux — Extracts and displays printable character sequences from binary or other files; commonly used to locate readable text inside executables.

9
New cards

stat

Linux — Displays detailed file or filesystem metadata, including size, permissions, ownership, timestamps, inode information, and other attributes.

10
New cards

md5sum

Linux — Calculates and displays an MD5 hash of a file, useful for verifying file integrity or comparing files.

11
New cards

lsof -p

Linux — Lists files and resources opened by a process; -p restricts the output to the specified process ID.

12
New cards

getpid

Meterpreter — Displays the process ID (PID) of the current Meterpreter session/process.

13
New cards

getuid

Meterpreter — Displays the username/security context under which the Meterpreter session is running.

14
New cards

sysinfo

Meterpreter — Displays information about the compromised system, such as hostname, operating system, architecture, and computer name.

15
New cards

ipconfig

Meterpreter — Displays network interface configuration, including IP addresses, subnet information, and interfaces.

16
New cards

route

Meterpreter — Displays and manages the routing table; commonly used to view routes available to the compromised host.

17
New cards

idletime

Meterpreter — Displays how long the logged-in user has been idle.

18
New cards

localtime

Meterpreter — Displays the local date and time of the compromised system.

19
New cards

ssh -p

Linux — Connects to an SSH server; -p specifies the remote SSH port instead of the default port 22.

20
New cards

top

Linux — Provides a continuously updating view of running processes, CPU usage, memory usage, load, and system activity.

21
New cards

kill

Linux — Sends a signal to a process identified by its PID; commonly used to terminate or otherwise control a process.

22
New cards

nice

Linux — Starts a process with a specified CPU scheduling priority; a higher nice value generally gives the process lower CPU priority.

23
New cards

apt

Linux — Debian/Ubuntu package-management command used to install, remove, update, and manage software packages and repositories.

24
New cards

dpkg

Linux — Low-level Debian package-management tool used to install, remove, inspect, and manage .deb packages.

25
New cards

rpm

Linux — Package-management system/tool used by RPM-based distributions to install, remove, verify, and query RPM packages.

26
New cards

cron

Linux — Time-based job scheduler that automatically runs commands or scripts according to configured schedules.

27
New cards

anacron

Linux — Scheduler designed to run periodic jobs even when the system was powered off when the job was originally scheduled.

28
New cards

atd

Linux — Background daemon that executes commands scheduled with the at or batch commands at a specified future time.

29
New cards

dir /tw

Windows — Lists directory contents sorted/displayed using file write-time information; /t:w specifies the last-write timestamp as the time field.

30
New cards

listdlls

Windows — Displays DLLs loaded by Windows processes and can be used to identify which DLLs are associated with a process.

31
New cards

handle64

Windows — Sysinternals utility that displays open handles held by processes; useful for identifying files, registry keys, mutexes, and other objects currently opened by a process.

32
New cards

certutil -hashfile

Windows — Calculates a cryptographic hash of a file; -hashfile specifies that a file hash should be calculated, followed by the filename and optionally a hash algorithm such as MD5, SHA1, or SHA256.

33
New cards

schtasks

Windows — Creates, deletes, queries, changes, or runs scheduled tasks used for automated execution.

34
New cards

ip route add

Linux — Adds a route to the Linux routing table; add specifies creation of a new route followed by the destination/network and routing parameters.

35
New cards

ssh -L

Linux — Creates SSH local port forwarding; -L binds a local port and forwards its traffic through the SSH connection to a specified target host and port.

36
New cards

wget

Linux — Command-line utility for downloading files from HTTP, HTTPS, and FTP servers.

37
New cards

tftp

Windows/Linux — Trivial File Transfer Protocol client used to transfer files using TFTP, typically over UDP port 69.

38
New cards

ftp

Windows/Linux — File Transfer Protocol client used to connect to FTP servers and upload or download files.

39
New cards

pscp

Windows — PuTTY Secure Copy utility used to securely copy files between systems over SSH/SCP.

40
New cards

base64

Linux — Encodes or decodes data using Base64 representation; commonly used to convert binary data into printable text.

41
New cards

certutil

Windows — Windows certificate and cryptography utility that can also perform tasks such as encoding/decoding files, calculating hashes, and managing certificate information.

42
New cards

ausearch

Linux — Searches Linux audit logs for events matching specified criteria such as users, processes, event types, timestamps, or commands.

43
New cards

auditpol /backup

Windows — Backs up Windows advanced audit policy configuration; /backup specifies that the current audit policy should be exported to a file.

44
New cards

auditpol /restore

Windows — Restores Windows advanced audit policy configuration from a previously saved audit-policy file; /restore specifies the policy file to import.

45
New cards

timestomp

Meterpreter — Displays or modifies file timestamps, allowing access, modification, and creation timestamps to be changed.

46
New cards

nc -nvlp

Linux — Starts Netcat as a listening server; -n disables DNS resolution, -v enables verbose output, -l listens for connections, and -p specifies the local listening port.

47
New cards

net use

Windows — Connects to, disconnects from, or displays information about shared network resources and mapped network drives.

48
New cards

reg enumkey -k

Meterpreter — Enumerates subkeys beneath a specified Windows Registry key; -k specifies the registry key to enumerate.

49
New cards

reg queryval -k -v

Meterpreter — Queries a value stored in a Windows Registry key; -k specifies the registry key and -v specifies the registry value name.

50
New cards

dir -t

Meterpreter — Lists files and directories and sorts them by time; -t specifies time-based sorting.

51
New cards

search -f

Meterpreter — Searches the target filesystem for files matching a specified pattern; -f specifies the filename/pattern to search for.

52
New cards

date

Linux — Displays or sets the system date and time.

53
New cards

uname

Linux — Displays system information such as the operating-system name, kernel, hostname, architecture, and kernel release depending on the options used.

54
New cards

last

Linux — Displays a historical list of successful user login sessions using information recorded in the system's login database.

55
New cards

uptime

Linux — Displays how long the system has been running, the current time, number of logged-in users, and system load averages.

56
New cards

psrinfo -v

Linux/Solaris — Displays processor information; -v provides verbose information about available processors. On traditional Solaris systems, psrinfo is primarily associated with processor enumeration.

57
New cards

hostid

Linux — Displays the system's host ID, a value used to identify the particular system.

58
New cards

modinfo -c

Linux — Displays information about an installed kernel module; -c requests information related to module compression where supported by the installed modinfo/kmod version.

59
New cards

lsmod

Linux — Displays currently loaded kernel modules and their dependencies.

60
New cards

vmstat

Linux — Displays virtual-memory, process, CPU, paging, and system-performance statistics.

61
New cards

ifconfig

Linux — Displays or configures network interfaces, including IP addresses, netmasks, MAC addresses, and interface status; largely superseded by ip on modern Linux systems.

62
New cards

arp

Linux — Displays or modifies the ARP cache, which maps IPv4 addresses to MAC addresses on the local network.

63
New cards

netstat

Linux — Displays network connections, listening ports, routing information, and network statistics; its exact output depends on the options supplied.

64
New cards

ip route show

Linux — Displays the current kernel routing table; show specifies that routes should be displayed rather than modified.

65
New cards

shopt -s

Linux — Configures Bash shell options; -s enables the specified shell option.

66
New cards

ausearch -m

Linux — Searches Linux audit logs by audit message type; -m specifies one or more audit event/message types to search for.

67
New cards

aureport --auth

Linux — Generates a summary report from Linux audit logs; --auth limits the report to authentication-related events.

68
New cards

cp

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

69
New cards

cd

Linux — Changes the current working directory.

70
New cards

diff

Linux — Compares two files or directories and reports their differences.

71
New cards

scp

Linux — Securely copies files between systems over SSH.

72
New cards

find / -newermt

Linux — Searches the filesystem starting at / for files newer than a specified date/time; -newermt compares file modification times against a human-readable timestamp.

73
New cards

grep -ri

Linux — Recursively searches files for a text pattern; -r searches directories recursively and -i makes the search case-insensitive.

74
New cards

dir -t

Meterpreter — Lists files/directories and sorts them by modification time; -t enables time-based sorting.

75
New cards

download

Meterpreter — Downloads a file or directory from the compromised system to the machine running Meterpreter.

76
New cards

uname -r

Linux — Displays the Linux kernel release/version; -r selects the kernel release field.

77
New cards

date -u

Linux — Displays the date/time in Coordinated Universal Time (UTC); -u uses UTC instead of local time.

78
New cards

date +%s

Linux — Displays the current Unix epoch timestamp in seconds; +%s formats the date as seconds since January 1, 1970 UTC.

79
New cards

locale

Linux — Displays the current locale settings, including language, character encoding, numeric formatting, and regional settings.

80
New cards

lsb_release -a

Linux — Displays Linux distribution identification information; -a displays all available LSB-release information.

81
New cards

unset HISTFILE

Linux — Removes the Bash HISTFILE environment variable from the current shell, preventing Bash from using the specified history-file variable for that session.

82
New cards

echo $HISTFILE

Linux — Displays the value of the Bash HISTFILE environment variable, which normally identifies the file used to store command history.

83
New cards

free

Linux — Displays system RAM and swap memory usage, including total, used, free, shared, cached, and available memory.

84
New cards

runlevel

Linux — Displays the previous and current SysV init runlevels; commonly used to determine the system's current operational runlevel.

85
New cards

who -r

Linux — Displays the current and previous system runlevels; -r displays runlevel information.

86
New cards

dpkg -l

Linux — Lists installed Debian packages and their status; -l requests a package listing.

87
New cards

apt list --installed

Linux — Lists packages installed on a Debian/Ubuntu system; --installed restricts the listing to installed packages.

88
New cards

iptables -nL

Linux — Lists firewall rules; -n prevents DNS/service-name resolution and displays numeric addresses/ports, while -L lists the rules.

89
New cards

iptables -t

Linux — Selects the iptables table on which an operation is performed; -t specifies a table such as filter, nat, mangle, or raw.

90
New cards

lastb

Linux — Displays failed login attempts recorded by the system, typically using /var/log/btmp.

91
New cards

sudo -l

Linux — Lists the commands the current user is permitted to execute through sudo; -l means list the user's sudo privileges.

92
New cards

sestatus

Linux — Displays the current SELinux status and operating mode, including whether SELinux is enabled and whether it is enforcing, permissive, or disabled.

93
New cards

service auditd status

Linux — Displays the current status of the Linux Audit daemon (auditd); status requests the service's current state.

94
New cards

which auditd

Linux — Searches the user's PATH for the auditd executable and displays its location if found.

95
New cards

apparmor_status

Linux — Displays the current AppArmor security status, including whether AppArmor is enabled and which profiles are loaded, enforced, or in complain mode.