[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [NOVICE] Unix search



bjuhn wrote:
Claus Futtrup wrote:

Hej alle,

Jeg vil meget gerne søge filer på min harddisk - kan en eller anden ikke
diske op med en cool shell-script. Jeg kører Minislack, med BASH. I
Minislack er der nærmest alt hvad man skal bruge til programmering. - det
være sig sed, grep, perl, C# men det fedeste ville være et simpelt shell
script.
[SNIP SCRIPT]

... Jeg har virkelig brug for sådan en søgefacilitet, for at kunne lære hvor
installationsprogrammerne gør af de forskellige filer, for at kunne
lokaliserer diverse config filer osv. ... altså for at lære om Linux' lidt
anderledes måde at køre tingene på og for at kunne gen-finde de ting jeg går
og retter i.

locate og slocate er fine. Men hvis den tilhørende database er bagud eller slet ikke oprettet har man brug for noget andet. Og ofte er output noget overvældende.


prøv find.

eksempelvis:

find /etc -name master.cf
(finder filer ved navn master.cf under kataloget /etc)

find kan virkelig meget. Se på "man find".
Den kan fx finde filer der er ejes af din mor, som er rettet indenfor den sidste uge og som har retighedderne 0751 :)


/kristian

 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 21:21 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *