Skip to main content
4 events
when toggle format what by license comment
Dec 20, 2022 at 12:28 comment added Stéphane Chazelas Would be worth noting that -printf is GNU-specific.
Dec 20, 2022 at 12:09 comment added Paul_Pedant @StéphaneChazelas Unclear about -xdev as hard links cannot be cross-device. The %D output would also be needed, to differentiate the file system. But yes, I am assuming the OP's problem has no edge cases.
Dec 20, 2022 at 11:31 comment added Stéphane Chazelas You'd want to run find on the mountpoint and add the -xdev predicate. Note that find may miss some if there are directories it doesn't have search of read permission for of if there's another fs mounted on some non-empty directory masking its contents as a result.
Dec 20, 2022 at 9:56 history answered Paul_Pedant CC BY-SA 4.0