This is for a Linux/Unix class (using Ubuntu) that I\'m having difficulty with.
ID: 3737770 • Letter: T
Question
This is for a Linux/Unix class (using Ubuntu) that I'm having difficulty with.
Record your session in file lab2A.1
Implement the partial directory tree structure below. Remember our convention for directory and file names.
Download the necessary files from blackboard and place in their proper directories, using proper extensions. For example, “lect1.1” should be “lect1.1.ppt”
When you’re done, stop recording
Explanation / Answer
Firstly, I would like to mention that the based on the requirement you have stated , I assume that inside root you have IFT383 directory and you want to list all the files and the directories inside them and till we get all the directory, we need to print all the files.
For this purpose, you can use the command 'tree'
Go to root directory
>tree
All your files and directory will be printed in a tree format
Note: If you want to get a tree with only directories listed use the command
>tree -d
To search for all files/directory with a specific pattern, use argument -
> tree -P 'l*'
Above command will list all the files/directory beginning with 'l'
You can change the pattern as you need it
If you want to give path of some other directory and print it as a tree structure, simply give the path of that directory.
For example, if you want to print only tree structure of directory 'Labs':
>tree /IFT383/Labs
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.