Lazo Lab Sign up

Linux & the Command Line / Terminal basics

Lesson 4 of 30

Making and removing

mkdir makes folders, touch makes empty files, cp copies, mv moves or renames, and rm deletes. rm has no recycle bin, so be careful.

Key points

  • mkdir -p a/b/c makes parents too
  • mv old new renames
  • rm -r deletes folders, carefully
mkdir projects
touch projects/notes.txt
cp notes.txt backup.txt
mv backup.txt old.txt
Watch a video on thisOpens YouTube search results for “Making and removing” in a new tab

Quiz · +10 XP

Which command renames a file?

Log in to save progress and earn XP.