Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

IFT383 syllabus.pdf Discussions Homework Lectures svlquiz Labs dboad dboard2 Lect2 Labl Lab2Lab3 Hwkl Hwk2 Lectl Lect3 labl.doc ect1 ect2.1 lab3 zdd lect3.1 lab2A.doc lect1.2 ect2.2 lect3.2 lect2.3

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote