The Linux directory structure is vast and hard to visualize. By installing the tree command and using pwd we can better identify where we are. Also path shortcuts make us more efficient.
- [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 /etc.…This will give us a visual representation…of the /etc directory.…By default tree recurses into directories…and give us a nice hierarchy to look at.…Tree isn't a replacement for ls…as it doesn't give us colors or file details,…but it can be a handy tool to have in our toolbox.…As you wander around the file system,…we may want to know what type of files we're looking at.…
To get a files type, we can use the file command.…
- Learning Linux command syntax
- Getting help on the CLI and GUI
- Finding help online
- Using basic commands
- Navigating file systems
- Editing text
Skill Level Intermediate
Linux: Bash Shell and Scriptswith Kevin Dankwardt2h 46m Intermediate
Setting up a Red Hat Enterprise Linux Serverwith Sandra Toner2h 46m Intermediate
1. Getting Help
2. Using Basic Commands
3. Navigating File Systems
4. Editing Text
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.