Terminal Cheatsheets

Table of Contents

Mac/Linux

Printing the current directory

pwd

Listing everything inside a directory

ls

Changing directory

cd <directory>

TAB Completion

With the Tab button you can auto complete partially written direcotries

Special directories

The current directory itself

.

One directory above

..

Creating a directory

mk nameOfDirectory

With spaces:

mk "Name of Directory"

Creating a file

touch nameOfFile

With spaces:

touch "Name of File"

Windows

Printing the current directory

Powershell:

pwd

Command prompt:

dir

Listing everything inside a directory

Powershell:

ls
dir

Command prompt:

dir

Changing directory

cd <directory>

TAB Completion

With the Tab button you can auto complete partially written direcotries

Special directories

The current directory itself

.

One directory above

..

Creating a directory

md nameOfDirectory

With spaces:

md "Name of Directory"

Creating a file

echo > nameOfFile

With spaces:

echo > "Name of File"

Changing device

To change from "C:.." to "D:..", just write the letter:

D:

Author: Marco Pawłowski (marco.pawlowski@techlabs.org)

Last Update: 2021-06-01 Tue 16:42