Command Line Flashcards
(109 cards)
tasklist
Displays a list of currently running processes
taskkill
Terminate tasks by process ID (PID) or image name
expand
used to extract a single file or a group of files from a compressed file
expand /d
This option lists the files contained in the source but does not extract them.
expand /f: (file name)
The name of the file that you want to extract from the source file.
*If the source only contains one file, this option isn’t necessary.
gpupdate
Force a group policy update
gpresult
Verify policy settings for a computer or user
copy /v
copies and verifies that new files are written correctly
copy /y
suppresses the confirmation prompt displayed when Windows is about to overwrite the contents of an existing file
xcopy
copy one or more files and/or folders from one location to another location. NTFS permission not preserved
robocopy
copy one or more files and/or folders from one location to another location & Preserves NTFS permissions
md or mkdir
Make directory in windows
cd
Change directory
rd or rmdir
Remove directory
dir or dir *.*
Directory listing, list files and directories
chkdsk /r
locate bad sectors and recover any readable information from them.
chkdsk /f
Fixes logical errors on the disk
format
Format a disk, prepare for use by the OS
diskpart
Disk Partitioner
shutdown
Shutdown computer
ping
test the reachability of a host across an IP network
shutdown /t 60
The command for setting the time-out period of 60 seconds before powering off a Windows host
Right-clicking on the Command Prompt application icon allows for execution of
shell commands reserved for a system administrator.
netdom
command-line command for managing Active Directory domains