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.…
- Distinguish the difference between the –help option and the output of the man command.
- Define what the uptime command is used for.
- Compare the more command with the less command.
- State which compression algorithm is built into the tar command.
- Write where all operating system files in Linux are stored.
- List the three mods in vi.