<?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: HPUX :  Find Command , Locating soft and hard links in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777615#M76426</link>
    <description>LG Porter,&lt;BR /&gt;&lt;BR /&gt;Yes you can do it with this command run by root.&lt;BR /&gt;&lt;BR /&gt;# find / -type f | more&lt;BR /&gt;&lt;BR /&gt;or redirect to a file.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
    <pubDate>Thu, 01 Aug 2002 13:14:01 GMT</pubDate>
    <dc:creator>Hai Nguyen_1</dc:creator>
    <dc:date>2002-08-01T13:14:01Z</dc:date>
    <item>
      <title>HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777607#M76418</link>
      <description>HPUX 10.20 I need to migrate a exsisting application to another system, can the "find" command be used to locate and identify all of the soft links with are now in place on the old system?</description>
      <pubDate>Thu, 01 Aug 2002 13:04:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777607#M76418</guid>
      <dc:creator>LG Porter</dc:creator>
      <dc:date>2002-08-01T13:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777608#M76419</link>
      <description>find / -type l -print&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 01 Aug 2002 13:08:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777608#M76419</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2002-08-01T13:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777609#M76420</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;# find / -type l -exec ll {} \; &amp;gt; linkfile&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 01 Aug 2002 13:09:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777609#M76420</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-08-01T13:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777610#M76421</link>
      <description>find -type l /&lt;BR /&gt;&lt;BR /&gt;will find all of the symbolic links.&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Thu, 01 Aug 2002 13:09:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777610#M76421</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-08-01T13:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777611#M76422</link>
      <description>find /home -type l -print&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 01 Aug 2002 13:10:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777611#M76422</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-08-01T13:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777612#M76423</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;what about using -type l option:&lt;BR /&gt;# find / -type l ..&lt;BR /&gt;&lt;BR /&gt;this will list all symbolic links. Read the man pages and check if you need to use the -follow option too.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Aug 2002 13:11:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777612#M76423</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-01T13:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777613#M76424</link>
      <description>You can use "-type l" option in find. Check "man find" for details. For example ..&lt;BR /&gt;# cd /opt&lt;BR /&gt;# find . -type l -exec ls -sl {} \;&lt;BR /&gt;==&amp;gt; List all symbolic links recursively in /opt.</description>
      <pubDate>Thu, 01 Aug 2002 13:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777613#M76424</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-08-01T13:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777614#M76425</link>
      <description>Soft links are easy - use the find commands as previously listed. Hard links are tougher. You will need to use the ls -l &lt;LINKS&gt; option. If this value is &amp;gt; 1 then they are linked.&lt;BR /&gt;&lt;BR /&gt;eg. &lt;BR /&gt;cd /usr/sbin&lt;BR /&gt;ll vg*&lt;BR /&gt;You will see the link count at 31 - all these programs are hardlinked to each other. They have the same sum values also.I think it best to do a sum on all files and those with the same sum value are hardlinks to each other.&lt;BR /&gt;&lt;BR /&gt;&lt;/LINKS&gt;</description>
      <pubDate>Thu, 01 Aug 2002 13:12:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777614#M76425</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-08-01T13:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777615#M76426</link>
      <description>LG Porter,&lt;BR /&gt;&lt;BR /&gt;Yes you can do it with this command run by root.&lt;BR /&gt;&lt;BR /&gt;# find / -type f | more&lt;BR /&gt;&lt;BR /&gt;or redirect to a file.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Thu, 01 Aug 2002 13:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777615#M76426</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-08-01T13:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777616#M76427</link>
      <description>LG Porter,&lt;BR /&gt;&lt;BR /&gt;instead of:&lt;BR /&gt;&lt;BR /&gt;# find / -type f | more&lt;BR /&gt;&lt;BR /&gt;I actually meant this:&lt;BR /&gt;# find / -type l | more&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Thu, 01 Aug 2002 13:15:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777616#M76427</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-08-01T13:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777617#M76428</link>
      <description>For hard links, you need to understand that every file name that references an inode number is a hard link.&lt;BR /&gt;For example if you enter the following command:&lt;BR /&gt;ls -li /sbin/vg*&lt;BR /&gt;&lt;BR /&gt;You will see that all of the vg... comands are really one executable file because the inode is the same. They just perform differently when the code determines what hard link name was used.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Aug 2002 13:30:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777617#M76428</guid>
      <dc:creator>Rich Wright</dc:creator>
      <dc:date>2002-08-01T13:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX :  Find Command , Locating soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777618#M76429</link>
      <description>To search for hard links, try this one liner-&lt;BR /&gt;&lt;BR /&gt;ncheck /dev/vg00/lvol5 | sort -n | awk '$1==prev{print last;print $0}{prev=$1;last=$0}' | uniq&lt;BR /&gt;&lt;BR /&gt;Where /dev/vg00/lvol5 can be replaced with whatever filesystem you wish to scan.&lt;BR /&gt;&lt;BR /&gt;This will produce of a list of all filenames that share the same i-node with at least one other file.&lt;BR /&gt;&lt;BR /&gt;for instance, here are some of the files displayed for /dev/vg00/lvol6 (/usr on my system).&lt;BR /&gt;&lt;BR /&gt;29094   /share/lib/terminfo/5/50&lt;BR /&gt;29094   /share/lib/terminfo/w/wy50&lt;BR /&gt;29094   /share/lib/terminfo/w/wyse50&lt;BR /&gt;29116   /share/man/man1m.Z/mount_cdfs.1m&lt;BR /&gt;29116   /share/man/man1m.Z/umount_cdfs.1m&lt;BR /&gt;&lt;BR /&gt;The first number is the common i-node number. The filename that follow is relative to the filesystem you are scanning.&lt;BR /&gt;&lt;BR /&gt;Depending on the number of files in the filesystem, it could take a while to run.&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 01 Aug 2002 13:42:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-find-command-locating-soft-and-hard-links/m-p/2777618#M76429</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-08-01T13:42:01Z</dc:date>
    </item>
  </channel>
</rss>

