Basic Windows Commands
Basic Windows Commands
Command Description
cd Display the pathname for the current directory.
cd \directorypath Change to directory.
(.. = parent \ = root of current drive, z: = the z root
directory)
cls Clear a command window for a fresh start.
copy source destination Copy files and directories.
del [filename] Delete one or more files.
dir List directory contents.
echo %cd% Display the pathname for the current directory.
find expression [filename] Search files or output for a particular expression.
md or mkdir [directory] Create a new directory.
more [filename] View the contents of a file one page at a time.
move source destination Move file(s) or directories.
rd or rmdir [directory] Delete directory (folder).
ren or rename [filename] Rename a file or set of files.
type [filename] Display file’s contents in console
(txt file open in Notepad or default program)
Find an expression in a file and write the lines containing the expression to another file: