Complete.Org: Mailing Lists: Archives: linux-help: September 2000:
[linux-help] Re: ls
Home

[linux-help] Re: ls

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: linux-help@xxxxxxxxx
Subject: [linux-help] Re: ls
From: John <jmresler@xxxxxxxxxxx>
Date: Sat, 02 Sep 2000 21:44:34 -0500
Reply-to: linux-help@xxxxxxxxx

ls -R * will recursively list and descend through all directories from
the current working directory. It won't tell you whether the file is
there or not. It's better to use this instead :

find . -name filename 2> /dev/null

where the file name is the file you're looking for and the dot is the
cwd. If you wish, -ctime and others will allow you to find files with
creation times and other forms of search exist. The 2> /dev/null tells
all the error messages to go to /dev/null which is a special file which
basically just directs trash off into thin air.

Nathan wrote:

> I've got a simple question:
>
> Is there a way, using the "ls" command, to search a directory and all
> sub-directories for a file?
>
> Nathan
>
> -- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
> visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi

--
/**********************************************/
 Carpe Diem

 And while you're at it...

  Illegitimos Non-Carborundum

/**********************************************/



-- Binary/unsupported file stripped by Listar --
-- Type: text/x-vcard
-- File: jmresler.vcf
-- Desc: Card for John


-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]