LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 09-21-2011, 06:35 PM   #1
Domskis
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Rep: Reputation: Disabled
Map the directory structure beginning with root


Map the directory structure beginning with root(directories only , do not include files).
 
Old 09-21-2011, 06:39 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,887
Blog Entries: 1

Rep: Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307
Hi,

Welcome to LQ!

Quote:
Originally Posted by Domskis View Post
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.
 
Old 09-21-2011, 06:43 PM   #3
fredora
LQ Newbie
 
Registered: Nov 2010
Posts: 19

Rep: Reputation: 1
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

Last edited by fredora; 09-21-2011 at 06:46 PM.
 
Old 09-21-2011, 06:44 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Please don't expect us to do your homework for you.
 
Old 09-21-2011, 06:46 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
Old 09-21-2011, 06:47 PM   #6
fredora
LQ Newbie
 
Registered: Nov 2010
Posts: 19

Rep: Reputation: 1
sure thing, thanks.
 
Old 09-21-2011, 06:51 PM   #7
Domskis
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Cool 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
 
Old 09-21-2011, 08:37 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
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
 
Old 09-21-2011, 09:44 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,887
Blog Entries: 1

Rep: Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307
Hi,

Quote:
Originally Posted by Domskis View Post
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!
 
Old 09-22-2011, 05:42 AM   #10
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Quote:
Originally Posted by Domskis View Post
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
 
Old 09-22-2011, 10:15 AM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
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).
 
Old 09-22-2011, 03:33 PM   #12
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,860

Rep: Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768
Quote:
Originally Posted by Domskis View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ graph / map data structure Galib Programming 3 10-17-2010 08:50 PM
Convert directory structure from long file names in Linux to DOS 8.3 structure? manorina Linux - Software 5 09-12-2009 09:18 AM
Home Jail Folder Structure like Gobolinux Directory Structure luispt Linux - General 3 07-26-2008 06:46 PM
Using Webmin's directory structure as a Gobolinux-like root filesystem. Shingoshi Linux - General 7 02-22-2008 05:26 PM
SYSERR(root): hash map "generics": missing map file /etc/mail/genericstable.db? singying304 Linux - Networking 4 02-28-2005 06:49 AM


All times are GMT -5. The time now is 04:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration