Creating Directories

Directories help you organize your files and projects. The mkdir command lets you create a directory. Let’s use it to create a directory called website on the Desktop. At the prompt, assuming you’re still in your Desktop directory, type:

 $ ​​mkdir​​ ​​website

If your computer’s graphical desktop is visible, you’ll see the directory appear. Otherwise, use the ls command to view it:

 $ ​​ls

Once you’ve created the directory, you can use the cd command to navigate into that directory:

 $ ​​cd​​ ​​website

You can then create new directories inside of this directory for images, style sheets, and scripts. You’ll explore more efficient ways to create complex directory structures for projects later. For now, take a look at how you can get back to your home directory.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.120.206