Lesson 3 of 6
Files & Folders
Create, move, copy, and delete files and folders from the terminal. Be careful with rm — deleted files do not go to the trash. Always double-check before deleting.
TERMINAL
# Create a folder
mkdir my-project
# Create an empty file
touch index.html
# Copy a file
cp index.html backup.html
# Move or rename a file
mv index.html home.html
# Delete a file
rm backup.html
# Delete a folder and everything inside
rm -rf my-project