From the course: Learning Linux Command Line
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Understanding file paths - Linux Tutorial
From the course: Learning Linux Command Line
Understanding file paths
- [Instructor] In order to refer to locations on the file system, we use a path, a string of text that represents a file or directory within the file system. In a path, the lash character acts as a separator between directory names, leading to the directory or file for which we're writing a path. There are two kinds of path called absolute and relative. An absolute path starts from the root of the file system, the highest level of the structure where the files are stored, which remember is represented by the slash character. This allows us to define a full specific location from the highest level of the file system, all the way down to a specific directory or file. So for example, the absolute path to my home directory would be /home/Scott and the absolute path to my documents directory on my system would be /home/Scott/Documents. We can tell that these are absolute paths because they begin with a slash representing the…
Contents
-
-
-
-
-
The Linux file system6m 18s
-
(Locked)
Understanding file paths4m 50s
-
(Locked)
Navigating the file system6m 58s
-
(Locked)
Exploring the output of the ls command2m 33s
-
(Locked)
Create and remove directories3m 36s
-
(Locked)
Copy, move, and delete files and directories7m 53s
-
(Locked)
Find files from the command line2m 10s
-
(Locked)
Understand user roles and sudo6m 3s
-
(Locked)
Understand file permissions5m 57s
-
(Locked)
Modify file permissions7m 4s
-
(Locked)
Create hard and symbolic links3m 26s
-
(Locked)
Challenge: Fix broken syntax26s
-
(Locked)
Solution: Fix broken syntax1m 24s
-
(Locked)
Challenge: Practice working with files34s
-
(Locked)
Solution: Practice working with files32s
-
-
-
-