What is the different between touch and mkdir?


Link to the project I am working with: https://www.codecademy.com/courses/learn-the-command-line/lessons/navigation/exercises/touch?action=resume_content_item

I just started command line because I need it to learn python later. It is very confusing but I am mostly confused on this:

What is the difference between touch and mkdir?
They are both creating a file in the folder, aren’t they? Or is touch creating a folder inside your directory as a child director and mkdir creating like a directory outside the folder you are in?



Difference? What do they have in common? Start by reading what they do.

Many programs have a --help option and/or a manpage

$ man touch