What is this?

You might be an aspiring developer. Perhaps you just want to brush up on some basic terminal commands. No matter what, you've found the right place. Visit the menu for other languages.

Modify files and folders

These commands will help you create, modify, and delete files and folders.

cat [FILE]
This command has many uses, but most commonly for beginners, cat is used to output the contents of a [FILE] to the terminal
Show me
cat hello.txt Hello World!
mkdir [FOLDER_NAME]
Create a new folder with the desired [FOLDER_NAME]. This occurs in your current working directory
Show me
ls Desktop Music mkdir example_folder ls Desktop Music example_folder
cp [FILE] [DUPLICATE_FILE]
Make a copy of a file
Show me
ls hello.txt cp hello.txt hello2.txt ls hello.txt hello2.txt
mv [FILE] [MOVED_FILE]
Move files and folders. Can also rename files and folders
Show me
ls hello.txt mv hello.txt hello2.txt ls hello2.txt
rm [FILE]
Delete [FILE]
Show me
ls hello.txt world.txt rm hello.txt ls world.txt
rm -r [FOLDER]
Delete a [FOLDER] recursively, which means the folder and everything in it
Show me
ls Desktop Music example_folder hello.txt rm -r example_folder ls Desktop Music hello.txt

The basics

These essential commands will help you navigate, explore, and perform simple actions on your terminal.

ls
List the normal files and folders in the current directory in condensed format
Show me
ls Desktop Documents Music
pwd
Output the full path of the current working directory for this terminal
Show me
pwd /Users/me
cd
Change your current working directory. When used by itself, it will default to changing to your home directory
Show me
cd /Users/me
cd [FOLDER]
Change your current working directory to the desired [FOLDER]
Show me
pwd /Users/me cd Desktop pwd /Users/me/Desktop
cd ..
Change your current working directory to the parent directory
Show me
pwd /Users/me/Desktop cd .. pwd /Users/me

More coming soon!