Question: In Module 2 lecture I wanted to view the Linux directory tree structure, but I couldnt remember the command. The command I wanted is tree
In Module 2 lecture I wanted to view the Linux directory tree structure, but I couldnt remember the command. The command I wanted is tree. However, tree is not installed by default in CentOS. Your task is to install tree command and display the CentOS tree structure. You will need the skills covered in Module 1 and Module 2 to complete this assignment.
- Execute the command # yum install tree -y to install tree. (hint: see page 16 in the book).
- Execute the command $ tree -d -L 2 /
- Execute the command $ tree -d -L 1 /
[Screenshot here]
- Explain what each part of the command tree -d -L 1 / does.
- tree ________________________________________________________
- -d ________________________________________________________
- -L 1 ________________________________________________________
/ ________________________________________________________
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
