<?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: List linked files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521841#M878385</link>
    <description>Hi again:&lt;BR /&gt;&lt;BR /&gt;I had frankly ignored hardlinks and assumed that you were interested in tracking only symbolic ones since symbolic links allow you to cross filesystem boundries.&lt;BR /&gt;&lt;BR /&gt;Carsten &amp;amp; Clay's contributions stimulated my thinking again, and here's another thought for viewing your system:&lt;BR /&gt;&lt;BR /&gt;# cd /sbin&lt;BR /&gt;# ls -ilR | awk '$2 ~/l/ || ($2 !~/d/ &amp;amp;&amp;amp; $3 &amp;gt; 2)' | sort -k1n | more&lt;BR /&gt;&lt;BR /&gt;This will produce a list of symbolic links and all files that are hardlinked, sorted by inode number.  Obviously, as Carsten noted, you will want to analyze one filesytem at a time.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 26 Apr 2001 16:27:42 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2001-04-26T16:27:42Z</dc:date>
    <item>
      <title>List linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521837#M878381</link>
      <description>Is there a way I can obtain a list of all of the linked files on my system (HP-UX 11.0)?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 26 Apr 2001 15:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521837#M878381</guid>
      <dc:creator>Tom Gore</dc:creator>
      <dc:date>2001-04-26T15:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: List linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521838#M878382</link>
      <description>Hi Tom:&lt;BR /&gt;&lt;BR /&gt;# find &lt;DIR&gt; -type l&lt;BR /&gt;&lt;BR /&gt;...for example:&lt;BR /&gt;&lt;BR /&gt;# find /etc -type l&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/DIR&gt;</description>
      <pubDate>Thu, 26 Apr 2001 15:25:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521838#M878382</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-04-26T15:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: List linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521839#M878383</link>
      <description>If you want a list of symbolic links on your system: &lt;BR /&gt;&lt;BR /&gt;# find / -type l&lt;BR /&gt;&lt;BR /&gt;If you want to find the hardlinks to a specific file, e.g. /sbin/lvchange&lt;BR /&gt;&lt;BR /&gt;#  cd /&lt;BR /&gt;# ls -li /sbin/lvchange&lt;BR /&gt;255 lr-sr-xr-t   1 root       sys             14 Aug 20  1998 lvchange@ -&amp;gt; /sbin/lvchange&lt;BR /&gt;# find . -inum 255 -xdev&lt;BR /&gt;&lt;BR /&gt;(xdev is necessary since the inode number is only unique in this filesystem). &lt;BR /&gt;&lt;BR /&gt;Carsten</description>
      <pubDate>Thu, 26 Apr 2001 15:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521839#M878383</guid>
      <dc:creator>Carsten Krege</dc:creator>
      <dc:date>2001-04-26T15:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: List linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521840#M878384</link>
      <description>James' answer works if you are looking for symbolic links; however, if links (and I assume you are looking for regular files)&lt;BR /&gt;find . -type f -links +1&lt;BR /&gt;&lt;BR /&gt;if you are looking for for directories (since they always have at least 2)&lt;BR /&gt;find . -type d -links +2&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Apr 2001 15:34:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521840#M878384</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-04-26T15:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: List linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521841#M878385</link>
      <description>Hi again:&lt;BR /&gt;&lt;BR /&gt;I had frankly ignored hardlinks and assumed that you were interested in tracking only symbolic ones since symbolic links allow you to cross filesystem boundries.&lt;BR /&gt;&lt;BR /&gt;Carsten &amp;amp; Clay's contributions stimulated my thinking again, and here's another thought for viewing your system:&lt;BR /&gt;&lt;BR /&gt;# cd /sbin&lt;BR /&gt;# ls -ilR | awk '$2 ~/l/ || ($2 !~/d/ &amp;amp;&amp;amp; $3 &amp;gt; 2)' | sort -k1n | more&lt;BR /&gt;&lt;BR /&gt;This will produce a list of symbolic links and all files that are hardlinked, sorted by inode number.  Obviously, as Carsten noted, you will want to analyze one filesytem at a time.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 26 Apr 2001 16:27:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521841#M878385</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-04-26T16:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: List linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521842#M878386</link>
      <description>Thanks to all.  I was able to obtain my info.  I redirected the output to a file, downloaded to my PC, and now I can play with it to my hearts content.&lt;BR /&gt;&lt;BR /&gt;Sorry James, you only get one "10" pointer evern though you replied twice.&lt;BR /&gt;&lt;BR /&gt;-TFG-</description>
      <pubDate>Thu, 26 Apr 2001 17:14:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521842#M878386</guid>
      <dc:creator>Tom Gore</dc:creator>
      <dc:date>2001-04-26T17:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: List linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521843#M878387</link>
      <description>Hi Tom:&lt;BR /&gt;&lt;BR /&gt;A typo, and hence a correction:&lt;BR /&gt;&lt;BR /&gt;ls -ilR | awk '$2 ~/l/ || ($2 !~/d/ &amp;amp;&amp;amp; $3 &amp;gt; 1)' | sort -k1n | more&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 27 Apr 2001 11:42:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521843#M878387</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-04-27T11:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: List linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521844#M878388</link>
      <description>I use cut/grep instead of awk,  I hate awk!&lt;BR /&gt;Does it's name come from awkward?&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 27 Apr 2001 12:44:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521844#M878388</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-04-27T12:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: List linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521845#M878389</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;Just be glad you don't have to work with an AS400 system (or do you??).  They seem to have an aversion -for the most part- to vowels in their commands (WRKSPLF, CPYFRMQRYF... yuck!).   ;)</description>
      <pubDate>Wed, 02 May 2001 11:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-linked-files/m-p/2521845#M878389</guid>
      <dc:creator>Tom Gore</dc:creator>
      <dc:date>2001-05-02T11:58:16Z</dc:date>
    </item>
  </channel>
</rss>

