Windows Commands Flashcards
cd/chdir
changes directory
. and ..
two things that will be in every directory
dir
lists directory
.
to go into the directory that you are already in
..
to go up/back one directory
cd../chdir..
one folder up in the directory tree
chdir\
cd\
change directory to root directory
md
make a new directory
mkdir
make a new directory
rmdir
remove/delete directory
rd
delete directory
how to change the drive
type drive letter followed by a colon ex: D
copy
used to copy one or more files
copy command switch in Windows verifies that the new files are written correctly
/v
copy command suppresses the confirmation prompt displayed when windows is about to overwrite the contents of an existing file
/y
move
used to move files
xcopy
copy files, directories, subdirectories
robocopy
robust file copy, works better when you are copying to or from network drives, used to copy files, directories, paths
robocopy
newest type of file copying utility, used for doing scripts for backups, offers the widest range of options
diskpart
disk management tool, manage computer drives, partitions, volumes and virtual hard disks
format
formats drive and gives drive a file system enabling windows to store information on the drive
chkdsk
scan file system metadata errors of your hard drive, verifies file system integrity and fixes logical file system errors
chkdsk /f
fixes file system errors it finds, takes a long time
chkdsk /r
locates bad sectors and recovers bad sectors or attempts to
chkdsk (insert drive here)
runs chkdsk on entire drive
shutdown
used to shutdown a computer
shutdown /s
shutdown and closes all programs and services before computer is turned off, you should save files before running this command
shutdown /t
used in domain environment, going to give timer before shutdown starts, in terms of seconds