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 - 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.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Understanding filesystem paths4m 18s
-
(Locked)
Creating files and dirs4m 38s
-
(Locked)
Copying files and dirs4m 39s
-
(Locked)
Moving and renaming files and dirs4m 11s
-
(Locked)
Deleting files and dirs3m 44s
-
(Locked)
Creating links to files and dirs6m 24s
-
(Locked)
Making file manipulation safe2m 12s
-
(Locked)
Challenge: Linux files3m 21s
-
(Locked)
Solution: Linux files3m 45s
-
-
-
-