0

I occasionally do "ls -laR /" on my system and offsite backup the results. If disaster strikes, I'll at least know which files I've lost.

I recently started sshfs mounting remote systems, yielding two problems:

  • "ls -laR" on sshfs mounted systems is painfully slow

  • I don't need the "ls -laR" results of remote filesystems, at least not locally.

What's the ls equivalent of find's "-xdev" option or du's "-x" option?

In case there's a better way to do it, my goal is to efficiently get a list of all files on my hard drive with size, owner, mod time, etc. In other words, all the info "ls -l" would normally provide.

I've considered: "find / -xdev | xargs ls -la", but I sense that would be less efficient.

4

2 に答える 2

0

それ自体にはそのようなオプションはありませlsんが、行うことができます

find / -xdev -ls

または、それが十分に詳細でない場合は、-printfオプションによって提供される可能性を調べてください。

于 2013-07-24T04:59:15.607 に答える