Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个文件夹中搜索最近更改的两个文件,但似乎我调用find不正确。作为回报,我只得到第二个文件的结果。
find
find /tmp -name 'twofirmscoop.so' -o -name 'twofirms.so' -exec ls -lt {} + 2>/dev/null
该-exec参数仅适用于第二场比赛。要将它们分组,请执行以下操作:
-exec
find /tmp \( -name 'twofirmscoop.so' -o -name 'twofirms.so' \) -exec ls -lt {} +
试试这个:
find /tmp \( -name 'twofirmscoop.so' -o -name 'twofirms.so' \) -exec ls -lt {} + 2>/dev/null