The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Development Releases: Linux Mint 4.0 Beta "Fluxbox", 4.0 Alpha "Debian" iBot UNIX and Linux RSS News 0 01-04-2008 11:00 AM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 09:52 PM
Same ol "no acceptable cc found in $PATH" but I'm not clueless... just still a noob SloYerRoll UNIX for Dummies Questions & Answers 4 10-22-2007 07:20 AM
Network Path Not Found Error "Sunfire V100" louisd11 SUN Solaris 4 12-13-2006 09:20 AM
Why is it Bad Idea to insert "." (Dot) to PATH ? amitbern UNIX for Dummies Questions & Answers 2 11-07-2005 08:12 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-12-2004
Registered User
 

Join Date: Oct 2004
Location: Las Cruces, NM
Posts: 4
Adding "Private" to path name

Just "getting my feet wet" so to to speak in the Unix world. I have a couple of basic questions:

1). I am logged in as "root" and have verified that I am at the top of the directory "/". I do a cd to the "etc" sub-directory and verify that I am there only to discover that "private" is appended to the front of the path (private/etc). What does the "private" mean?

2) I can get a list of the sub-directories and files from my current directory by using the command "ls -R". Can I get a list of only the sub-directories, excluding the files?

The Mac OSX Server software uses BSD Unix with the C-Shell.

Thanks in advance for any assistance.
__________________
Ray
Mac OSX 10.2.8 Server
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-13-2004
Registered User
 

Join Date: Oct 2004
Location: Las Cruces, NM
Posts: 4
OK, I answered one of my questions after reading "Unix Power Tools" (O'Reilly). Using "ls -d */." will list all directories from the current directory down without the associated files........
__________________
Ray
Mac OSX 10.2.8 Server
Reply With Quote
  #3 (permalink)  
Old 10-13-2004
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
ls -lR | grep ^[.]


will give u recursively all subdirectores with relative path.
Reply With Quote
  #4 (permalink)  
Old 10-14-2004
Registered User
 

Join Date: Oct 2004
Location: Las Cruces, NM
Posts: 4
bhargav, many thanks, this is what I was looking for........ Ray
__________________
Ray
Mac OSX 10.2.8 Server
Reply With Quote
  #5 (permalink)  
Old 10-15-2004
Registered User
 

Join Date: Oct 2004
Posts: 215
directories

Hai,
if you use ls -LR | grep ^[.] it will not list hidden directories if you want to see hidden directories use.
du -h | awk '{print $2}'
arunkumar
Reply With Quote
  #6 (permalink)  
Old 10-15-2004
Registered User
 

Join Date: Oct 2004
Location: Las Cruces, NM
Posts: 4
arunkumar, thank you very much, I did not realize that hidden files were not displayed. Your suggestion is much appreciated....... Ray
__________________
Ray
Mac OSX 10.2.8 Server
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0