Learn the Command Line: Making Folders and Files with the Command Line | Part 5

Published: 05 October 2018
on channel: One Month
1,535
17

Up till now in our learn the command line series, we’ve been moving in and out of folders on the computer. In this videos we’re going to make new files and folders.

Pop quiz: If you’re on your command line right now, how do you know WHERE in your computer you are? It’s time to learn the “pwd” command.

“pwd” shows you your path of where you are. If at any point you get lost you could always type the “pwd” command and that’s going to tell you where you are.

To create a new file, use the “touch” command along with whatever the name of the file is. So for example, try “touch hello.html” and it’s going to create that file! Similarly you can create a .rb file for Ruby file, or .py for a Pthyon file. All these extensions are available just by using the touch command and the name of the file.

“mkdir” is a command that will make a new directory (aka. a new folder).

With the command line you can create new folders, create new files, and move around through your computer just like you do with your mouse, only now with much much more power and speed! If you’re not convinced yet, then keep learning because it gets better and better.

Learn the command line today with our online Command Line course https://onemonth.com/courses/command-...