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
List all files that contain a specific directory Sat510 SUN Solaris 7 04-17-2007 10:57 AM
List of files in sub directory along with their properties ravikirankethe UNIX for Dummies Questions & Answers 3 11-13-2006 05:19 PM
cp list of files into another directory pavan_test UNIX for Dummies Questions & Answers 4 05-08-2006 09:08 PM
can we list other than c files in a directory with only 'ls' command? venkat UNIX for Dummies Questions & Answers 3 03-12-2004 09:17 AM
ksh: How to get latest file from a list of files in a directory Jayathirtha Shell Programming and Scripting 1 06-24-2003 10:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-22-2005
venkyA venkyA is offline
Registered User
  
 

Join Date: Sep 2004
Posts: 18
list of files in one Directory

hi All,
How do I get list of all the files in one directory.

Thanks in advance,
Venky.
  #2 (permalink)  
Old 06-22-2005
sysera sysera is offline
Registered User
  
 

Join Date: Feb 2004
Posts: 92
Quote:
Originally Posted by venkyA
hi All,
How do I get list of all the files in one directory.

Thanks in advance,
Venky.
ls -la /path/to/directory should work okay for you.
  #3 (permalink)  
Old 06-24-2005
jnsimpson02 jnsimpson02 is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 5
re: list of files in one Directory

cd /dir
ls -latr (will put it in chronological order)
ls -l | sort +4n (will list out size from low to high)


...i would suggest that you use your man pages.


jnsimpson02
  #4 (permalink)  
Old 06-24-2005
dangral dangral is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2002
Posts: 698
using ls -l will also give you directories and links. If you want only files you need find.

do a "man find" and look into -type and -depth
Sponsored Links
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 09:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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