Re: why 'find / -name *' doesnt work ?
- From: Juha Laiho <Juha.Laiho@xxxxxx>
- Date: Wed, 7 Dec 2005 18:59:17 +0000 (UTC)
Alberto <hackerduero@xxxxxxxxx> said:
>I try to search for all files in system, and try:
>
>find / -name *
>
>but it doesnt work
Written exactly that way, the shell will first expand the * to list
all the files in your current directory, so what "find" sees is
find / -name file1 file2 file3
which is illegal syntax for "find".
>How do I search for all files ?
Just "find /" - or "find / -type f" if you want to restrict the
results to regular files (no directories, no symlinks, no device nodes, ...).
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
.
- References:
- why 'find / -name *' doesnt work ?
- From: Alberto
- why 'find / -name *' doesnt work ?
- Prev by Date: Re: why 'find / -name *' doesnt work ?
- Next by Date: Re: why 'find / -name *' doesnt work ?
- Previous by thread: Re: why 'find / -name *' doesnt work ?
- Next by thread: Re: why 'find / -name *' doesnt work ?
- Index(es):
Relevant Pages
|