Help or /? |
gets available commands, or displays help info for commands |
|
echo |
prints following info to STDOUT |
|
type |
prints file contents to STDOUT |
|
> |
redirect; sends output to file |
|
>> |
append |
|
< |
type's filename and sends text to command |
|
2> |
sends error message to file |
|
| |
pipes output from left to right |
|
hostname |
displays hostname of system |
|
ver |
displays windows version |
|
vol |
displays disk volume label and serial number |
|
systeminfo |
config information for local or remote machine; includes service pack levels |
|
set |
used to manage variables |
set mySweetVariable=whatItEquals
|
cd |
"change directory"; displays the name of current or changes directory |
|
dir |
"directory"; used to display contents of files and sub directories of current working directory |
|
mkdir/md |
make directory |
md c:\myDirectory\childDirectory
|
rmdir/rd |
remove directory |
rd c:\myDirectory\childDirectory
|
more |
prints to STDOUT, but one screen at a time |
more reallyLongText.txt
|
copy |
copies one or more files to another location |
copy file.txt c:\newLocation\file.txt
|
xcopy |
copies files and filders |
xcopy c:\misplacedDirectory c:\correct\rightSpotDirectory
|
move |
moves files from one folder till another |
move .\document.txt c:\document.txt
|
ren/rename |
rename a file or files |
|
del |
deletes one or more files |
|
find |
search for a text string in a file & display all the lines where it is found |
find \I "hard to find text
|
findstr |
search for a text string in a file & display all the lines where it is found; supports regular expressions |
findstr /r "^[1-9][0-9]" sales.txt
|
attrib |
displays or changes files attributes if a file has the System or Hidden attribute set, you must clear that attribute before you can change any other attributes |
attrib +H +S makeMeHiddenAndSystem.txt
|
icacls |
change file and folder permissions - display or modify Access Control Lists (ACLs) for files and folders RTFM (Read The F@#$ing Manual) |
Read the Damned Help File |
fc |
compare the contents of two files or sets of files; display any lines which do NOT match |
fc fileOne.txt fileTwo.txt
|
comp |
compare two files (or sets of files) ; display items that do not match |
|
shutdown |
shutdown or restart a computer |
|
tasklist |
displays all running applications and services with their Process ID (PID) This can be run on either a local or a remote computer |
tasklist /FI "IMAGENAME eq Calculator.exe"
|
sc |
Service Control - Create, Start, Stop, Query or Delete any Windows SERVICE. The command options for SC are case sensitive |
sc query type= driver RTFM |
net |
manage network resources |
net group "administrators' /domain RTFM |
ipconfig |
displays network adaptor information |
|
ping |
test a network connection - if successful, ping returns the ip address |
|
tracert |
"tracer route" tracks path to destination and counts hops (can also resolve ip addresses if used on domain names) |
|
netstat |
display current TCP/IP network connections and protocol statistics |
|
time |
displays time |
|
date |
displays date |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets