Below you will find a collection of tutorials on the basics of using the terminal.
Before You Start
These tutorials assume no prior knowledge of the subject.
You can download exercises to go along with these tutorials on our Terminal exercises GitHub repository. You don’t have to know how to use GitHub to use them. Just click the green Code button in the corner and click the Download ZIP option. Then unzip the folder and open it in your text editor.
Learn why you should use the terminal.
Learn how to set up your terminal for macOS and Windows.
Learn about the different parts of the prompt.
cat my-file less my-file
To reuse previous commands, press the up arrow key.
To complete the name of a directory or file in your terminal, type one or more characters, then press Tab.
Learn how to move through text in your terminal using keyboard shortcuts.
mv my-file my-folder mv first-folder second-folder
mv current-name new-name
cp file-name folder1 cp -R folder1 folder2
Warning: You can’t undo this action!