find 如何同時搜尋 某帳號/群組 - Linux

Table of Contents

我知道 可以使用
find / -user test
find / -group mail

假如我想要同時尋找
帳號=test 且 群組= mail 的檔案
我應該要怎麼下呢?

如果可以的話,我又應該如何把找出來的結果
用類似下面這樣的方式輸出呢?
test mail /home/test/test.sh

謝謝~

--

All Comments

Audriana avatarAudriana2014-09-28
find / -user test -and -group mail
Sandy avatarSandy2014-10-01
第二個問題看不太懂 ^^|
Enid avatarEnid2014-10-03
謝謝~ find / -user test -and -group mail -ls
Yedda avatarYedda2014-10-06
-and 預設可略... find / -user test -group mail即可
Victoria avatarVictoria2014-10-07
find / -user test -group mail -exec \
echo "test mail {}" \;
Andrew avatarAndrew2014-10-10
輸出檔案的屬性等,如果我只要帳號群組完整檔案路徑
Doris avatarDoris2014-10-11
謝謝 兩位!!