Commands (concise)

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 1:38 AM on 9/22/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 numeric IP/port, -a all connections, -t TCP, -u UDP, -p PID.

2
New cards

ss -tulnp

Linux - Displays listening sockets; -t TCP, -u UDP, -l listening, -n numeric IP/port, -p PID/process.

3
New cards

ps -ealf

Linux - Displays all processes in detailed format; -e all processes, -a all users, -l long format, -f full format.

4
New cards

grep -v

Linux - Displays lines that do not match a pattern; -v inverts the match.

5
New cards

sed -i

Linux - Edits a file in place; -i modifies the original file directly.

6
New cards

touch -t

Linux - Creates/updates a file timestamp; -t specifies a custom timestamp.

7
New cards

file

Linux - Identifies a file's type based on its contents.

8
New cards

strings

Linux - Extracts readable text strings from binary/non-text files.

9
New cards

stat

Linux - Displays detailed file metadata, including permissions, ownership, size, inode, and timestamps.

10
New cards

md5sum

Linux - Calculates an MD5 hash for a file.

11
New cards

lsof -p

Linux - Lists files/resources opened by a process; -p specifies the PID.

12
New cards

getpid

Meterpreter - Displays the PID of the current Meterpreter process.

13
New cards

getuid

Meterpreter - Displays the user/security context of the current Meterpreter session.

14
New cards

sysinfo

Meterpreter - Displays target system information such as OS, architecture, and hostname.

15
New cards

ipconfig

Meterpreter - Displays network interfaces and IP configuration.

16
New cards

route

Meterpreter - Displays/manages the target's routing table.

17
New cards

idletime

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

18
New cards

localtime

Meterpreter - Displays the target system's local date and time.

19
New cards

ssh -p

Linux - Connects to an SSH server; -p specifies the remote port.

20
New cards

top

Linux - Displays continuously updated process and system resource usage.

21
New cards

kill

Linux - Sends a signal to a process using its PID.

22
New cards

nice

Linux - Runs a process with a specified CPU scheduling priority.

23
New cards

apt

Linux - Manages Debian/Ubuntu software packages and repositories.

24
New cards

dpkg

Linux - Installs, removes, queries, and manages Debian .deb packages.

25
New cards

rpm

Linux - Installs, removes, verifies, and queries RPM packages.

26
New cards

cron

Linux - Schedules commands/scripts to run at specified times.

27
New cards

anacron

Linux - Runs scheduled periodic jobs even if the system was previously powered off.

28
New cards

atd

Linux - Daemon that executes commands scheduled with at.

29
New cards

dir /tw

Windows - Lists files using their last-write time; /t:w specifies write time.

30
New cards

listdlls

Windows - Lists DLLs loaded by Windows processes.

31
New cards

handle64

Windows - Lists open handles held by Windows processes.

32
New cards

certutil -hashfile

Windows - Calculates a file hash; -hashfile specifies hash calculation.

33
New cards

schtasks

Windows - Creates, queries, modifies, runs, and deletes scheduled tasks.

34
New cards

ip route add

Linux - Adds a route to the routing table; add creates a new route.

35
New cards

ssh -L

Linux - Creates local SSH port forwarding; -L forwards a local port to a remote destination.

36
New cards

wget

Linux - Downloads files from HTTP, HTTPS, or FTP servers.

37
New cards

tftp

Windows/Linux - Transfers files using the Trivial File Transfer Protocol (TFTP).

38
New cards

ftp

Windows/Linux - Transfers files using the File Transfer Protocol (FTP).

39
New cards

pscp

Windows - Securely copies files over SSH using PuTTY's SCP client.

40
New cards

base64

Linux - Encodes or decodes data using Base64.

41
New cards

certutil

Windows - Performs certificate, encoding/decoding, and hashing operations.

42
New cards

ausearch

Linux - Searches Linux audit logs for specified events.

43
New cards

auditpol /backup

Windows - Backs up Windows audit-policy settings; /backup exports the policy.

44
New cards

auditpol /restore

Windows - Restores Windows audit-policy settings; /restore imports a saved policy.

45
New cards

timestomp

Meterpreter - Displays or modifies file timestamps.

46
New cards

nc -nvlp

Linux - Starts a Netcat listener; -n no DNS, -v verbose, -l listen, -p specify port.

47
New cards

net use

Windows - Connects to, disconnects from, or displays network shares/drives.

48
New cards

reg enumkey -k

Meterpreter - Enumerates Windows Registry subkeys; -k specifies the registry key.

49
New cards

reg queryval -k -v

Meterpreter - Queries a Registry value; -k specifies the key, -v specifies the value.

50
New cards

dir -t

Meterpreter - Lists files/directories sorted by time; -t sorts by timestamp.

51
New cards

search -f

Meterpreter - Searches for files matching a pattern; -f specifies the filename/pattern.

52
New cards

date

Linux - Displays or sets the system date and time.

53
New cards

uname

Linux - Displays system/kernel information.

54
New cards

last

Linux - Displays successful user login history.

55
New cards

uptime

Linux - Displays system uptime, logged-in users, and load averages.

56
New cards

psrinfo -v

Linux/Solaris - Displays detailed processor information; -v verbose output.

57
New cards

hostid

Linux - Displays the system's host ID.

58
New cards

modinfo -c

Linux - Displays information about a kernel module; -c displays module compression information where supported.

59
New cards

lsmod

Linux - Lists currently loaded kernel modules.

60
New cards

vmstat

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

61
New cards

ifconfig

Linux - Displays/configures network interfaces and IP information.

62
New cards

arp

Linux - Displays or modifies the ARP cache.

63
New cards

netstat

Linux - Displays network connections, listening ports, routing information, and network statistics.

64
New cards

ip route show

Linux - Displays the current routing table; show displays existing routes.

65
New cards

shopt -s

Linux - Enables Bash shell options; -s sets/enables the specified option.

66
New cards

ausearch -m

Linux - Searches audit logs by message type; -m specifies the audit message type.

67
New cards

aureport --auth

Linux - Generates an authentication audit report; --auth limits output to authentication events.

68
New cards

cp

Linux - Copies files or directories.

69
New cards

cd

Linux - Changes the current working directory.

70
New cards

diff

Linux - Compares files/directories and displays differences.

71
New cards

scp

Linux - Securely copies files between systems over SSH.

72
New cards

find / -newermt

Linux - Searches from / for files newer than a specified date/time; -newermt compares modification time to a timestamp.

73
New cards

grep -ri

Linux - Recursively searches files for a pattern; -r recursive, -i case-insensitive.

74
New cards

dir -t

Meterpreter - Lists files/directories sorted by time; -t sorts by timestamp.

75
New cards

download

Meterpreter - Downloads files/directories from the target to the attacking system.

76
New cards

uname -r

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

77
New cards

date -u

Linux - Displays the date/time in UTC; -u uses UTC.

78
New cards

date +%s

Linux - Displays the current Unix epoch timestamp; +%s outputs seconds since January 1, 1970 UTC.

79
New cards

locale

Linux - Displays current language, regional, and character-encoding settings.

80
New cards

lsb_release -a

Linux - Displays Linux distribution information; -a displays all available information.

81
New cards

unset HISTFILE

Linux - Removes the Bash history-file variable for the current shell; unset removes the variable.

82
New cards

echo $HISTFILE

Linux - Displays the Bash history-file location stored in $HISTFILE.

83
New cards

free

Linux - Displays RAM and swap memory usage.

84
New cards

runlevel

Linux - Displays the previous and current SysV runlevels.

85
New cards

who -r

Linux - Displays the current and previous runlevels; -r shows runlevel information.

86
New cards

dpkg -l

Linux - Lists installed Debian packages; -l lists packages.

87
New cards

apt list --installed

Linux - Lists installed packages; --installed limits output to installed packages.

88
New cards

iptables -nL

Linux - Lists firewall rules; -n numeric addresses/ports, -L lists rules.

89
New cards

iptables -t

Linux - Specifies the iptables table to operate on; -t selects a table such as filter or nat.

90
New cards

lastb

Linux - Displays failed login attempts, typically from /var/log/btmp.

91
New cards

sudo -l

Linux - Lists commands the current user can run with sudo; -l lists privileges.

92
New cards

sestatus

Linux - Displays SELinux status and operating mode.

93
New cards

service auditd status

Linux - Displays the status of the auditd service; status requests current service state.

94
New cards

which auditd

Linux - Displays the path to the auditd executable if it is in $PATH.

95
New cards

apparmor_status

Linux - Displays AppArmor status and loaded/enforced profiles.