1.2 - Windows Command Line Tools Flashcards
Privileges
Not all users can run all commands
– Some tasks are for the administrator only
Command line troubleshooting
Use “help” if you’re not sure
> help dir
[command] /?
dir
– List files and directories
cd / chdir
– Change working directory
– Use backslash \ to specify volume or folder name
..
– Two dots/periods
– The folder above the current folder
md / mkdir
– Make a directory
rd / rmdir
Remove directory
hostname
- View the name of the device
– This is very useful when there are 10 different terminal - screen tabs in use
format
- Formats a disk for use with Windows
- BE CAREFUL - YOU CAN LOSE DATA
copy (/v, /y)
Copy files from one location to another
/v - Verifies that new files are written correctly /y - Suppresses prompting to confirm you want to overwrite an existing destination file
xcopy
- Copies files and directory trees
xcopy /s Documents m:\backups
Robust Copy
* robocopy
– A better Xcopy
– Included with Windows 10 and 11
Group Policy
Manage computers in an Active Directory Domain – Group Policy is usually updated at login
gpupdate
Force a Group Policy update
– gpupdate /target:{computer|user} /force – gpupdate /target:user /force
gpresult
Verify policy settings for a computer or user
– gpresult /r
– gpresult /user sgc/professor /v