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 03:00 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-20-2007 01:52 AM
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 11:20 AM
Network Path Not Found Error "Sunfire V100" louisd11 SUN Solaris 4 12-13-2006 01:20 PM
Why is it Bad Idea to insert "." (Dot) to PATH ? amitbern UNIX for Dummies Questions & Answers 2 11-07-2005 12:12 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 2.00 average. Display Modes
  #1 (permalink)  
Old 10-12-2004
roadrunnerray roadrunnerray is offline
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.
  #2 (permalink)  
Old 10-13-2004
roadrunnerray roadrunnerray is offline
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........
  #3 (permalink)  
Old 10-13-2004
bhargav's Avatar
bhargav bhargav is offline Forum Advisor  
Registered User
  
 

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


will give u recursively all subdirectores with relative path.
  #4 (permalink)  
Old 10-14-2004
roadrunnerray roadrunnerray is offline
Registered User
  
 

Join Date: Oct 2004
Location: Las Cruces, NM
Posts: 4
bhargav, many thanks, this is what I was looking for........ Ray
  #5 (permalink)  
Old 10-15-2004
arunkumar_mca arunkumar_mca is offline
Registered User
  
 

Join Date: Oct 2004
Posts: 256
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
  #6 (permalink)  
Old 10-15-2004
roadrunnerray roadrunnerray is offline
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0