CMD Prompts Flashcards
List active TCP/IP ports
NETSTAT
Test remote connection
PING
Show IP configuration, subnet mask, default gateway
IPCONFIG
Trace path of IP packets
TRACERT
See domain name and IP information
NSLOOKUP
Display directory contents
DIR
Delete a directory
RD
Create a directory
MD
Change directory
CD
Check for errors on hard drive
SCANDISK.EXE
Finds and fixes problems with file tables
CHKDSK
Find and fixes certain Windows files
DISM or SFC
Create new file table and blank root directory, wiping out the old table
FORMAT
List contents of a directory that are hidden
DIR /AH
Run a Linux cmd line with advanced privileges
SUDO or SU
Change file permissions in Linux
chmod
Search through text files to find specific information
GREP
Displays current directory
PWD
Directory in the root folder with all device files in Linux
/dev
First SCSI hard disk in Linux
dev/sda
Second SCSI hard disk in Linux
dev/sdb
Copy files in Linux
cp
Delete files in Linux
rm
Delete files
DEL
Copy files then delete the originals in Linux
mv
General, boot, services, startup, and tools
MSCONFIG
Open blank Microsoft Management Console
MMC
Open RDP
MSTSC
System information utility that includes all hardware and software
MSINFO32
Edit the BOOT.INI file
BOOTCFG
Edit the registry
REGEDIT
View/edit NTFS permissions
CACLS
Inspect all device drivers and verify which drivers are signed and unsigned
SIGVERIF
Delete directories and subdirectories in Linux
rmdir -r
Remove subdirectories switch
RD /S
Take ownership of a Linux file
chown
Change a user’s password
PASSWD
See files that are hidden
DIR /A
See folders and subfolders
DIR /S
See all capabilities the DIR command can offer
DIR /?
See a directory listing a page at a time
DIR /P
Prepare systems for mass deployment
SYSPREP
Partition hard drives
DISKPART
Show active processes in Linux
ps
Show active policies
GPRESULT
Kill active processes
TASKKILL
Show active processes and PIDs
TASKLIST
Powerful copying command
ROBOCOPY
Partitioning tool
FDISK
Bit-by-bit copy command
DD
Remove the ability of standard users to shut down or restart computers
GPEDIT.MSC
List files and directories
LS
List files and directories with detail
LS-L
Folder management utility in Linux
mkdir
Shows the status of all listening and non-listening sockets
NETSTAT -A
Shows the status of all listening and non-listening sockets in numerics
NETSTAT -A -N
Shows all the computers on your network
NET VIEW
Shows file shares on a specific computer
NET VIEW w/ computer name
See what file shares are on your network
NET SHARE
Share a file with others on your network
NET SHARE SHAREIT=pathname
Use someone else’s share
NET USE assignletter \computername\pathname
Create user on computer
NET USER name password /add
Delete user on account
NET USER name /delete