Comprehensive Command Line mastery for Windows users.
Win + R, type cmd, press Enter.Win + R, type powershell, press Enter.C:\Users\YourName>
C: - Current drive.Users\YourName - Current directory path.> - Ready for command.| Goal | Command | Example |
|---|---|---|
| List Files | dir | dir /a |
| Change Dir | cd | cd Documents |
| Create Dir | mkdir | mkdir my_project |
| Create File | echo. > | echo. > notes.txt |
| Copy | copy | copy file.txt backup\ |
| Move/Rename | move | move old.txt new.txt |
| Delete | del | del temp.txt |
Pro Tip: Use the Tab key for auto-completion of file and folder names!
type filename.txtmore filename.txtcode . (opens current folder)notepad notes.txtCtrl + C to stop a running process.