Re: Find every instance of hostname

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

 



On Sat, 2006-08-26 at 14:01, Anne Wilson wrote:
> >
> > This will find all ext3 files on your system and search them
> > for your hostname and print out the file names that contain it.
> >
> > As root:
> >
> > # find / -type f -fstype ext3 -exec fgrep -l "hostname" {} \;
> >
> > It will take some time.
> >
> Time, I don't mind.  I suspect, though, that the 12,000 or so emails would 
> also be included.

Anything that affects your system startup or configuration
should be found under /etc.  Make a pass there first.

-- 
  Les Mikesell
   lesmikesell@xxxxxxxxx



> > You can play various games with find's commandline args to exclude
> > certain directories, do conditional searches, limit the search to a
> > particular filesystem, &c.
> >
> > Worth spending the time studying its man page. One of the most useful
> > commands in unix-dom.
> >
> I've only ever used it in a simple form.  Maybe I should spend more time on 
> the man page, thanks.
> 
> > Don't use your fully qualified hostname unless your system name is
> > some really common or short name.  Sometimes it appears in system
> > files unqualified.
> >
> The hostname is both common and short. so it probably has to be the FQDN.  I 
> take your point, though, about the possibility of missing a short-name entry 
> somewhere.
> 
> The really big problem, of course, is the difficulty in trying to prove 
> something does NOT exist.  All I can do is try to find likely files on this 
> working setup in the hope that I can match them to ones on the offending one.
> 
> Anne
> 
> ______________________________________________________________________
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux