IT-info > Diverse

Diverse

Tech notes

Comparison of some useful Windows commands, Linux commands and keyboard shortcuts

Windows command / keyboard shortcutLinux command / keyboard shortcutUsage (Windows)Usage (Linux)Purpose / additional info
cd pathcd pathcd 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
chdirpwdDisplays your location in the file system
mkdirmkdirCreates a directory

To create multiple directories:
mkdir directory1 directory2
rmdirrmdirDeletes a directory

Help info
(Windows): rmdir /?
(Linux): rmdir --help

Delete directory and all subdirectories
(Windows): rmdir /S
(Linux): rm -r
dirlsLists files
copycpcopy testfile.txt testfile2.txtcp testfile testfile2Copy file
delrmdel testfile.txtrm testfileDelete file

Delete all files in current directory
(Windows): del *
(Linux): rm *
clsCtrl + LClears the command environment
Alt + F7history -cDelete all entries from the command environment history