Diverse
Tech notes
Comparison of some useful Windows commands, Linux commands and keyboard shortcuts
| Windows command / keyboard shortcut | Linux command / keyboard shortcut | Usage (Windows) | Usage (Linux) | Purpose / additional info |
|---|---|---|---|---|
| cd path | cd path | cd directory cd directory\directory | cd directory cd directory/directory | Change directory with a specified path |
| cd.. | cd .. | Changes directories with a relative path. Used to back out of current folder. | ||
| cd \ | cd / | Changes location in the file system to the root folder | ||
| chdir | pwd | Displays your location in the file system | ||
| mkdir | mkdir | Creates a directory To create multiple directories: mkdir directory1 directory2 | ||
| rmdir | rmdir | Deletes a directory Help info (Windows): rmdir /? (Linux): rmdir --help Delete directory and all subdirectories (Windows): rmdir /S (Linux): rm -r | ||
| dir | ls | Lists files | ||
| copy | cp | copy testfile.txt testfile2.txt | cp testfile testfile2 | Copy file |
| del | rm | del testfile.txt | rm testfile | Delete file Delete all files in current directory (Windows): del * (Linux): rm * |
| cls | Ctrl + L | Clears the command environment | ||
| Alt + F7 | history -c | Delete all entries from the command environment history |