[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: quick howto-command questions?



On Tue, Mar 20, 2001 at 09:12:41AM -0000, john smith wrote:
> Hi,
> 
> Some quick questions;
> 
> 1. How can I find out the total number of files (also hidden) in the current 
> directory?
> 

ls -a | wc -l

> 2. How can I find out the total number of executable files (also hidden) in 
> the current directory?
> 

Executable by whom?

> 3. how to find the total number of files of a given an extension? 
> (ex."*.tar.gz")
> 

ls *.tar.gz | wc -l

> 4.how to list files alphabetically that end in "*.c"?
> 

ls *.c

> 
> please don't forget to CC me.
> 
> TIA,
> 
> 
> JOHN
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com

Bob
-- 
Why is the alphabet in that order?  Is it because of that song?
		-- Steven Wright



Reply to: