From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Understand filesystem paths

Understand filesystem paths - Linux Tutorial

From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Start my 1-month free trial

Understand filesystem paths

- [Instructor] Understanding absolute and relative paths and being able to visualize the Linux directory structure will make it easier to get around in the Linux file system. Even when we list a directory recursively, the LS command doesn't give us output that's easy to visualize. However, there's a command for this called tree. It isn't usually installed by default so we'll need to install it first. In a terminal type in sudo yum install tree and hit Enter, type in your password and hit Enter again. Say yes to install. And when it's done, type in clear to clear your screen. Now type in tree space slash E, T, C. This will give us a visual representation of the /etc directory. By default tree recursive into directories and gives us a nice hierarchy to look at, tree isn't the replacement for LS as it doesn't give us colors or file details. But it can be a handy tool to have in our tool box. As you wander around the file…

Contents