查找用戶目錄下的指定文件

題:找出全部用戶 ira 擁有的文件,而且把它們拷貝到/root/findfiles 目錄中html

已建立用戶 :spa

  • natasha 
  • harry
  • sarah 
# 建立目錄
mkdir /root/findfiles

# find搜索全部用戶包含ira 文件的 複製到 findfiles目錄下
find / -user ira -exec cp -a {} /root/findfiles \;

 


更多詳情:http://www.javashuo.com/article/p-yudmvlve-mo.htmlcode

相關文章
相關標籤/搜索