LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Map the directory structure beginning with root (http://www.linuxquestions.org/questions/linux-newbie-8/map-the-directory-structure-beginning-with-root-904298/)

Domskis 09-21-2011 06:35 PM

Map the directory structure beginning with root
 
Map the directory structure beginning with root(directories only , do not include files).

onebuck 09-21-2011 06:39 PM

Hi,

Welcome to LQ!

Quote:

Originally Posted by Domskis (Post 4478630)
Map the directory structure beginning with root(directories only , do not include files).

Sure looks and smells like homework to me;
Quote:

Do not expect LQ members to do your homework - you will learn much more by doing it yourself.

fredora 09-21-2011 06:43 PM

Tree
 
assuming your using a debain based system...

you can use this command:

Code:

tree [directory] -lR
-R will recursivly search. Also if you don't have the tree package installed, type this first:

Code:

sudo apt-get install tree

jschiwal 09-21-2011 06:44 PM

Please don't expect us to do your homework for you.

jschiwal 09-21-2011 06:46 PM

fredora: please don't give answers to homework questions. You will be hurting the OP in the long run. The question is an obvious homework question quoted verbatim.

fredora 09-21-2011 06:47 PM

sure thing, thanks.

Domskis 09-21-2011 06:51 PM

Thanks for reply
 
How does it matter if it's homework or not ? It's a linux question - if can't ask you - who should I ???
LOL

Just saying... Thanks you very much for reply :)

chrism01 09-21-2011 08:37 PM

The point is we'll help with homework, but not do it for you ie show us what you've tried, show us that you've done some research eg google, then we'll point you in the right direction.

http://catb.org/~esr/faqs/smart-questions.html

onebuck 09-21-2011 09:44 PM

Hi,

Quote:

Originally Posted by Domskis (Post 4478648)
How does it matter if it's homework or not ? It's a linux question - if can't ask you - who should I ???
LOL

Just saying... Thanks you very much for reply :)

Well, I would suggest that you approach whomever assigned the work. That way you will get the help from the instructor. He/she would be the first choice since he/she would know where to reinforce or be able to apply or represent answers in a way you will understand.

Latter part of the rule is very important for you to understand: "you will learn much more by doing it yourself." Plus you will gain more by at least attempting to work to a solution. If and when you do get stuck then present your work and we will see if help can be given.

Just a few links to aid you to gaining some understanding;



1 Linux Documentation Project
2 Rute Tutorial & Exposition
3 Linux Command Guide
4 Bash Beginners Guide
5 Bash Reference Manual
6 Advanced Bash-Scripting Guide
7 Linux Newbie Admin Guide
8 LinuxSelfHelp
9 Utimate Linux Newbie Guide
10 Linux Home Networking
11 Virtualization- Top 10

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

jschiwal 09-22-2011 05:42 AM

Quote:

Originally Posted by Domskis (Post 4478648)
How does it matter if it's homework or not ? It's a linux question - if can't ask you - who should I ???
LOL

Just saying... Thanks you very much for reply :)

Also, read LQ Rule #12.
http://www.linuxquestions.org/linux/rules.html

TobiSGD 09-22-2011 10:15 AM

I would recommend to have a look at this page, it explains the standards for Linux systems.
Keep in mind that the different distributions do not have to follow those standards (although most do).

salasi 09-22-2011 03:33 PM

Quote:

Originally Posted by Domskis (Post 4478630)
Map the directory structure beginning with root(directories only , do not include files).

Given that you have been unfortunately deprived of the opportunity to do as much learning as you might out of that command, I am going top offer you a little alternative bit of learning.

'man -k' (or apropos) can give you an output showing which commands have a specified word in their summary. So, in this case, you might feel that 'man -k directory' or 'man -k directories' might give you something (for me, one of those works and the other doesn't; YMMV).

You might then find that you are getting too much output; you might then also think '...if only there was a way of finding which command summaries also contained the word 'list'...I'm sure that the right command would also use the word list...

Code:

man -k directories | grep -i list
With these two little tricks, you need never be without the appropriate command again.

notes to the interested student;

I will not answer the questions
Quote:

what does grep -i do
or
Quote:

how do I filter the 'man -k' output for more than one term
without some evidence of you having done at least some work, yourself. the answer to the first ought to be easy to obtain from the obvious place, and the second might take a little thought, but that's not a bad thing.


All times are GMT -5. The time now is 07:35 PM.