From the course: Linux: Files and Permissions

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Creating files and dirs

Creating files and dirs - Linux Tutorial

From the course: Linux: Files and Permissions

Creating files and dirs

- It's difficult to use an operating system for very long before you need to create files and directories. We're going to start out creating directories and then move on to files. To create a directory or folder, we'll use the "mkdir" command. Type in "mkdir ~/newdir" and hit enter. And then verify by typing in "ls - l ~" and hit enter again. Tilde is the shortcut to your home directory. You can see the new "Dir" directory in the output. To keep this exercise contained, let's change into our new directory before making any more files or directories. Type in "cd ~/newdir/" and hit enter. If you see a trailing "slash" from a command line, it means I'm doing a shortcut and hitting my tab key, and the shell fills out the line for me. You can always double check your path by typing in "PWD" and hit enter. You can always double check your paths by typing in PWD which gives you the absolute path from the top level directory.…

Contents