find hard linked files (duplicate inodes) recursively

find . -type f -printf '%10i %p\n' | sort | uniq -w 11 -d -D | less
If you have two sets of files that may share hard-linked files, it can be useful to identify which ones are hard links to same underlying inode (file). This command shows you all of those, sorted by inode#. In my example the two directory trees to compare share a common parent, so I run the command in that parent and just use find . to start from the current directory. If yours are in different locations, you can pass both paths to find: find /directory1 /directory2 -type f -printf '%10i %p\n' | sort | uniq -w 11 -d -D | less
Sample Output
 190186228 ./10/alpha1/2612_fsm
 190186228 ./12/alpha1/base/19108/2612_fsm
 190203401 ./10/alpha1/pg_internal.init
 190203401 ./12/alpha1/base/19108/pg_internal.init
 190206322 ./10/alpha1/3079_fsm
 190206322 ./12/alpha1/base/19108/3079_fsm

0
By: dmmst19
2020-09-13 22:12:58

What Others Think

After submitting this I learned about fdupes -H which is sounds like will do pretty much the same thing.
dmmst19 · 24 weeks and 4 days ago
A fascinating dialog is value remark. I feel that it is best to compose more on this matter, it may not be an unthinkable theme however generally people are insufficient to chat on such subjects. To the following. Salud. http://112.140.187.61/">Daftar joker123
muneerahmed · 21 weeks and 1 day ago
This is an amazing piece of work and gives me informative insights into the subject matter. I would love to read more about your work to enhance my knowledge. Further, to get the best https://uttercoupons.com/front/store-profile/5-off-stadium-goods-coupon
Rida · 19 weeks and 3 days ago
Rida · 19 weeks and 3 days ago
I have created this profile to make awareness about my website offerings Coupons, Coupons codes Such as https://uttercoupons.com/front/store-profile/carters-coupon-codes
Rida · 19 weeks and 3 days ago
I have created this profile to make awareness about my website offerings Coupons, Coupons codes https://uttercoupons.com/front/store-profile/covenant-eyes-coupon-code
Rida · 19 weeks and 3 days ago
I have a Website this website is for coupons. Coupons are basically used for a discount per product so I want you guys to visit my website and use the discount products. Though this website. Get the latest, trendy, and minimal price by utter coupons.such as carter coupon, Stadium goods Promo Code, TSplus Coupon, Covenant eyes coupon, FedEx poster coupon,febfitfun prom
Rida · 19 weeks and 3 days ago
This is Wiliam I have created this profile to make awareness about my website offerings Coupons, Coupons codes Such as https://uttercoupons.com/front/store-profile/fedex-office-coupon-code
Rida · 19 weeks and 3 days ago
This is Wiliam I have created this profile to make awareness about my website offerings Coupons, Coupons codes Such as https://uttercoupons.com/front/store-profile/gepur-coupon
Rida · 19 weeks and 3 days ago
This is an amazing piece of work and gives me informative insights into the subject matter. I would love to read more about your work to enhance my knowledge. Further, to get the best https://uttercoupons.com/front/store-profile/5-off-stadium-goods-coupon
Rida · 19 weeks and 3 days ago
I have created this profile to make awareness about my website offerings Coupons, Coupons codes Such as https://uttercoupons.com/front/store-profile/carters-coupon-codes
Rida · 19 weeks and 3 days ago
I have created this profile to make awareness about my website offerings Coupons, Coupons codes https://uttercoupons.com/front/store-profile/covenant-eyes-coupon-code
Rida · 19 weeks and 3 days ago
I have created this profile to make awareness about my website offerings Coupons, Coupons codes Such as https://uttercoupons.com/front/store-profile/fabfitfun-coupon-code
Rida · 19 weeks and 3 days ago
I have created this profile to make awareness about my website offerings Coupons, Coupons codes https://uttercoupons.com/front/store-profile/fedex-office-coupon-code
Rida · 19 weeks and 3 days ago
I have created this profile to make awareness about my website offerings Coupons, Coupons codes https://uttercoupons.com/front/store-profile/gepur-coupon
Rida · 19 weeks and 3 days ago
great content! will recommend this site to my friends
looneyhans · 19 weeks ago
I am eternally on a regular basis always exclaiming that its hard to observe great help, but here is. Thanks! See More Help
wendyparis19 · 18 weeks and 5 days ago
thanks!! learned alot here and helped me alot as well. keep making these contents :D hair extensions colorado springs
looneyhans · 18 weeks and 2 days ago
thanks!! learned alot here and helped me alot as well. keep making these contents :D hair extensions colorado springs [url=https://bluestacks.red/]bluestacks[/url] [url=https://bluestacks.red/hotstar-for-pc/]hotstar for pc[/url] [url=https://omegle.red/]omegle[/url]
mikestanley464 · 16 weeks ago
guitar lessons tulsa Can you tell me a bit more, please?
yeoyeo · 16 weeks ago
thanks for this fencingeugeneor.com
looneyhans · 14 weeks and 3 days ago
lovely and very nice! bathroomremodelinglaredo.com
Killersmile · 14 weeks ago
awesome site thanks alot executive coach madison wi
looneyhans · 11 weeks and 2 days ago
eyelash extensions glad i found this site!
idasanka · 10 weeks ago
Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks maison intelligente
bojokey283 · 9 weeks and 6 days ago
love how couples counseling detailed this article is, great job!
idasanka · 9 weeks and 5 days ago
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. visit here
xoheko1229 · 9 weeks and 4 days ago
This is an amazing piece of work and gives me informative insights into the subject matter. I would love to read more about your work to enhance my knowledge. Further, to get the best zinitevi apk
hrihant · 9 weeks and 3 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. abonnenten24 https://abonnenten24.de
bojokey283 · 8 weeks and 6 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. automação doméstica
bojokey283 · 8 weeks and 5 days ago
I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. online marketing
bojokey283 · 8 weeks and 5 days ago
hearing aids honolulu This is the only site the helped me
yeoyeo · 8 weeks and 1 day ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. hartlepool removals
bojokey283 · 7 weeks ago
I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. alquiler de carros en barranquilla
bojokey283 · 6 weeks and 6 days ago
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. tree surgeon colchester
bojokey283 · 6 weeks and 4 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. Hausautomation
bojokey283 · 6 weeks and 3 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. coronavirus mexico
bojokey283 · 5 weeks and 6 days ago
thanks for sharing this with us! love it!
sammm · 5 weeks ago
It was really nice to see the commands you have described here in this article. It's a find command that is used to Right CBD Tincture Dosage find the hard linked files recursively. There are so many such online sites that made your program learning task so simple. Looking here for more details.
Alyssalauren · 4 weeks and 6 days ago
Your work is very good and I appreciate you and hopping for some more informative posts. Thank you for sharing great information to us. best restaurants cozumel
bojokey283 · 4 weeks and 5 days ago
I can set up my new idea from this post. It gives in depth information. Thanks for this valuable information for all,.. covid mexico
bojokey283 · 3 weeks and 4 days ago
I have been checking out a few of your stories and i can state pretty good stuff. I will definitely bookmark your blog chemical
xoheko1229 · 3 weeks and 2 days ago
I have been checking out a few of your stories and i can state pretty good stuff. I will definitely bookmark your blog chemical
xoheko1229 · 3 weeks and 2 days ago
Lovely very nice ! Thanks for sharing this http://myaccountaccess.space/
myaccountaccess · 3 weeks and 1 day ago
Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. If possible, such as gain knowledge, would you mind updating your blog with additional information? It is very useful for me. korrekt ügyvéd Debrecen
bojokey283 · 2 weeks and 2 days ago
I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog! otomatisasi rumah
bojokey283 · 1 week and 2 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. kedvez? pályázatírás Debrecen
bojokey283 · 3 days ago
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. how to get to isla mujeres from cancun
xoheko1229 · 3 days ago
this is really nice to read..informative post is very good to read..thanks a lot! cozumel beach bars
xoheko1229 · 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: