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
list contents of directory carl_vieyra UNIX for Dummies Questions & Answers 3 01-30-2007 03:24 PM
how to generate a random list from a given list mskcc Shell Programming and Scripting 3 05-30-2006 04:30 AM
Creating file contents using contents of another file ReV Shell Programming and Scripting 21 02-24-2006 10:25 AM
Message trying to list contents of directory sallender UNIX for Dummies Questions & Answers 1 10-19-2005 09:22 AM
Comparing a distinct value in 1 list with another list manualvin Shell Programming and Scripting 6 06-22-2004 07:42 AM

 
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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 02-05-2008
bbilheimer bbilheimer is offline
Registered User
  
 

Join Date: Feb 2008
Location: Pasadena, CA
Posts: 3
Post Best way to list a directory's contents?

Hey guys!

I'm so glad I found this site, I've had so many questions and have been left alone for roughly a year scanning man pages but It's just not quite cutting it for some things.

So, I often like to list directories when browsing around my local machine, a friend's machine, or my web server. Especially the latter where size, permissions, and extensions really matter. The problem is most of the commands I use just don't quite show all the information I need!

If I use
Code:
ls -lsh

I get what I want, human readable file sizes, and I can sort the files in any number of ways, but it's messy and too much information I never use. With lots of files it can be huge and hard to read.

If I use
Code:
du -sh *

I get a nice crisp clear output with file sizes but this isn't supported on my web server while in FTP mode in my shell.

Both of these have the same problem: after reading the man pages up and down I can't figure out how to simply list the total number of files in a given directory!

I hope these questions aren't ridiculous, I'd just like to see if there is a better way of doing this that other people know, I've held of on asking anyone until now to avoid all of the "RTFM" responses I'd get in IRC Channels.

Thanks in advance!
 

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 06:56 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