<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Linux equivalent of -local option in find statement in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127303#M63437</link>
    <description>It doesn't by default.  You have to put '-follow' to make it show the linked files instead of the symbolic link.</description>
    <pubDate>Fri, 11 Jan 2008 22:41:00 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2008-01-11T22:41:00Z</dc:date>
    <item>
      <title>Linux equivalent of -local option in find statement</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127296#M63430</link>
      <description>Hello all,&lt;BR /&gt;The "find . -local ..." statement restricted the search to the local machine under HP-UX Unix.&lt;BR /&gt;&lt;BR /&gt;I have a script I want to migrate to a Fedora Core 5 box that uses this option and can't get it to work.&lt;BR /&gt;The Linux box has 3 nfs and one samba share filestems on it.&lt;BR /&gt;&lt;BR /&gt;I tried using "find . ! -fstype nfs -a ! fstyep smb -name xxxxx" but the samba share is still searched.  How can I search only the local machine without searching each local file system in turn?&lt;BR /&gt;&lt;BR /&gt;[root@stealthdell root]# df&lt;BR /&gt;Filesystem           1K-blocks      Used Available Use% Mounted on&lt;BR /&gt;/dev/hda1               521748     90040    405204  19% /&lt;BR /&gt;/dev/hda5              1027768    750492    225068  77% /usr&lt;BR /&gt;/dev/hda7              2079284   1299768    779516  63% /home&lt;BR /&gt;/dev/hda8              1019864    150792    817264  16% /var&lt;BR /&gt;none                     31120         0     31120   0% /dev/shm&lt;BR /&gt;romulus:/apps/batch    2097152   1640800    428128  80% /mnt/batch&lt;BR /&gt;romulus:/home          4198400   3278240    867392  80% /mnt/g40home&lt;BR /&gt;romulus:/nbcase       14581760   6591808   7742176  46% /mnt/nbcase&lt;BR /&gt;//persephone/vol1    240361472  83644416 156717056  35% /home/prodsupp/apollo&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 10 Jan 2008 14:34:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127296#M63430</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-01-10T14:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Linux equivalent of -local option in find statement</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127297#M63431</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;NFS and Samba are somewhat integrated.&lt;BR /&gt;&lt;BR /&gt;You are using the right statement, but may need to update your syestem with bug fixes.&lt;BR /&gt;&lt;BR /&gt;Try find -fstype ext3&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 10 Jan 2008 14:52:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127297#M63431</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-01-10T14:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Linux equivalent of -local option in find statement</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127298#M63432</link>
      <description>Try "smbfs" instead of "smb" as your fstype.</description>
      <pubDate>Thu, 10 Jan 2008 15:42:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127298#M63432</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2008-01-10T15:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Linux equivalent of -local option in find statement</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127299#M63433</link>
      <description>2 good suggestions.&lt;BR /&gt;unfortunately neither works.&lt;BR /&gt;&lt;BR /&gt;I tried "-fstype ext3" first and it still grabs floppy, cdrom and nfs as per the following.&lt;BR /&gt;&lt;BR /&gt;I then tried the "not nfs and not smbfs" with identical results.  I also tried using parenthesese to group the fstype options but that faile syntax.&lt;BR /&gt;&lt;BR /&gt;Any other suggestions?&lt;BR /&gt;&lt;BR /&gt;[root@stealthdell bin]# find / -fstype ext3 -name '*8.txt'&lt;BR /&gt;/usr/share/doc/vim-common-6.0/doc/usr_08.txt&lt;BR /&gt;/usr/share/doc/vim-common-6.0/doc/usr_28.txt&lt;BR /&gt;/usr/lib/kbd/unidata/UnicodeData-2.1.8.txt&lt;BR /&gt;/usr/lib/kbd/unidata/PropList-2.1.8.txt&lt;BR /&gt;/usr/lib/kbd/unidata/ReadMe-2.1.8.txt&lt;BR /&gt;find: /mnt/floppy: Input/output error&lt;BR /&gt;find: /mnt/cdrom: Input/output error&lt;BR /&gt;find: /mnt/g40home/nbbuild/.ssh: Permission denied&lt;BR /&gt;find: /mnt/g40home/nbbuild/bin: Permission denied&lt;BR /&gt;find: /mnt/g40home/nbbuild/Mail: Permission denied&lt;BR /&gt;... and so on</description>
      <pubDate>Thu, 10 Jan 2008 20:40:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127299#M63433</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-01-10T20:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Linux equivalent of -local option in find statement</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127300#M63434</link>
      <description>Thinking about it, find will probably still crawl the mount points, it's just that none of the files will match. Something like this will probably work, but it seems a little ugly....&lt;BR /&gt;&lt;BR /&gt;find $(mount -t ext3 | cut -f3 -d' ') -xdev ...</description>
      <pubDate>Thu, 10 Jan 2008 23:11:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127300#M63434</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2008-01-10T23:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Linux equivalent of -local option in find statement</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127301#M63435</link>
      <description>Or you could marry something with '-mount'.&lt;BR /&gt;&lt;BR /&gt;Also, newer Linux boxen don't use 'smbfs' any more, they use 'cifs'.  That being said, showing us the output of a 'mount' command would help in that regard.</description>
      <pubDate>Fri, 11 Jan 2008 02:30:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127301#M63435</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2008-01-11T02:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Linux equivalent of -local option in find statement</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127302#M63436</link>
      <description>Here is the output from mount:&lt;BR /&gt;[boucherr@stealthdell boucherr]$ mount -l&lt;BR /&gt;/dev/hda1 on / type ext3 (rw)&lt;BR /&gt;none on /proc type proc (rw)&lt;BR /&gt;none on /dev type devfs (rw)&lt;BR /&gt;/dev/hda5 on /usr type ext3 (rw)&lt;BR /&gt;/dev/hda7 on /home type ext3 (rw)&lt;BR /&gt;/dev/hda8 on /var type ext3 (rw)&lt;BR /&gt;none on /dev/pts type devpts (rw,mode=0620)&lt;BR /&gt;none on /dev/shm type tmpfs (rw)&lt;BR /&gt;/mnt/cdrom on /mnt/cdrom type supermount (ro,dev=/dev/hdd,fs=iso9660,--,iocharse&lt;BR /&gt;t=iso8859-1)&lt;BR /&gt;/mnt/floppy on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=vfat,--,ioch&lt;BR /&gt;arset=iso8859-1,umask=0,codepage=850)&lt;BR /&gt;none on /proc/bus/usb type usbdevfs (rw,devmode=0664,devgid=43)&lt;BR /&gt;romulus:/apps/batch on /mnt/batch type nfs (ro,soft,addr=xxx.xxx.xxx.183)&lt;BR /&gt;romulus:/home on /mnt/g40home type nfs (ro,soft,addr=xxx.xxx.xxx.183)&lt;BR /&gt;romulus:/nbcase on /mnt/nbcase type nfs (rw,soft,addr=xxx.xxx.xxx.183)&lt;BR /&gt;//persephone/vol1 on /home/prodsupp/apollo type smbfs (0)&lt;BR /&gt;[boucherr@stealthdell boucherr]$&lt;BR /&gt;&lt;BR /&gt;I tried "find `grep ext3 /etc/fstab | awk '{print $2}'` -mount" and it looks like it's working.&lt;BR /&gt;&lt;BR /&gt;Just another question:&lt;BR /&gt;How do I prevent find from following links?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jan 2008 15:34:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127302#M63436</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-01-11T15:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Linux equivalent of -local option in find statement</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127303#M63437</link>
      <description>It doesn't by default.  You have to put '-follow' to make it show the linked files instead of the symbolic link.</description>
      <pubDate>Fri, 11 Jan 2008 22:41:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-equivalent-of-local-option-in-find-statement/m-p/4127303#M63437</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2008-01-11T22:41:00Z</dc:date>
    </item>
  </channel>
</rss>

