iT邦幫忙

0

關於 centos 的 find 指令問題 -user 這個的問題

請問一下
find -user 這個指令 查了一下說是找出關於 使用的相關文件
可是我看了一下我找出來的文件 跟我要找的使用者好像無關連
他是如何判斷的呢

find / -user student -type f -exec cp {} /srv/student ;

-r--------. 1 root root 22 Oct 8 00:26 0
-r--------. 1 root root 22 Oct 8 00:26 1
-r--------. 1 root root 22 Oct 8 00:26 2
-r--------. 1 root root 23 Oct 8 00:26 255
-r--------. 1 root root 304 Oct 8 00:26 auxv
--w-------. 1 root root 0 Oct 8 00:26 clear_refs
-r--r--r--. 1 root root 6 Oct 8 00:26 cmdline

看起來跟 我要找的 毫無關傒 阿

weiclin iT邦高手 4 級 ‧ 2018-10-08 13:46:51 檢舉
把你輸入的指令跟結果列出來
zebrakky iT邦新手 4 級 ‧ 2018-10-09 10:02:28 檢舉
find / -user student -type f -exec cp {} /srv/student ;

-r--------. 1 root root 22 Oct 8 00:26 0
-r--------. 1 root root 22 Oct 8 00:26 1
-r--------. 1 root root 22 Oct 8 00:26 2
-r--------. 1 root root 23 Oct 8 00:26 255
-r--------. 1 root root 304 Oct 8 00:26 auxv
--w-------. 1 root root 0 Oct 8 00:26 clear_refs
-r--r--r--. 1 root root 6 Oct 8 00:26 cmdline
weiclin iT邦高手 4 級 ‧ 2018-10-09 13:35:06 檢舉
把 -exec 跟後面拿掉呢? 只留 -user student -type f
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答