The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Remove contents of directory, but not directory pdc Shell Programming and Scripting 9 04-09-2009 02:02 PM
Best way to list a directory's contents? bbilheimer UNIX for Dummies Questions & Answers 6 02-05-2008 10:05 AM
SED To insert Directory Contents to file NomDeGuerre Shell Programming and Scripting 3 03-13-2007 12:41 AM
Message trying to list contents of directory sallender UNIX for Dummies Questions & Answers 1 10-19-2005 08:22 AM
Unable to view contents of a directory maddave UNIX for Dummies Questions & Answers 13 10-25-2001 01:50 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-30-2007
carl_vieyra carl_vieyra is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 5
Angry list contents of directory

I want to list the contents of a directory, but I do not want to use the ls, is there another way??
  #2 (permalink)  
Old 01-30-2007
Dbecker Dbecker is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 5
find

that will give you the contents of the subdirectories as well, is that OK?
  #3 (permalink)  
Old 01-30-2007
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
Code:
$ echo *
Carl
  #4 (permalink)  
Old 01-30-2007
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,929
Quote:
Originally Posted by Dbecker
find

that will give you the contents of the subdirectories as well, is that OK?
To limit it to the current directory, you can run it with these options:
Code:
find -maxdepth 1
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 03:30 PM.


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