touch keyboard.txt

The touch command creates a new file inside the working directory. It takes in a filename as an argument, and then creates an empty file in the current working directory.

Here we used touch to create a new file named keyboard.txt inside the 2014/dec/ directory.


The commands we've covered so far are commonly used to navigate the filesystem. There are more commands you can use to master the command line, and we'll cover them in the next lessons.

Let's summarize what we've done so far.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.