跳至内容
Python 俱乐部
用户工具
登录
站点工具
搜索
工具
显示页面
修订记录
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您的足迹:
linux:find-user-files
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== Linux: Find User Files ====== How do I find out all files owned by a user called tom or jerry under UNIX / Linux / BSD / OS X operating systems? Use the find command as follows to find all files owned by a user called tom, in /home (open terminal and type the command): <code> find /home -user tom find /home -user jerry </code> To find all files in the /sales directory owned by the vip group, enter: <code> find /sales -group vip </code> You can restrict your search to *.c (all c files only) for user tom as follows: <code> find /home -user tom -type f -name "*.c" </code> You can restrict your search to directories only as follows: <code> find /home -user tom -type d </code> Where, <code> -type d - Find only directories. -type f - Find only files. -name "*.c" - Find all file ending with .c extension. </code> ===== 参考 ===== * http://www.cyberciti.biz/faq/linux-finding-user-group-files/
linux/find-user-files.txt
· 最后更改: 2014/07/09 01:26 (外部编辑)
页面工具
显示页面
修订记录
反向链接
回到顶部