Looking for files NOT owned by someone

后端 未结 5 1215
灰色年华
灰色年华 2021-01-29 20:07

I\'m looking to recursively look through directories to find files NOT owned by a particular user and I am not sure how to write this.

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-29 20:43

    Using z-shell (zsh) you can use

    ls -laR *(^U)
    

    or

    ls -la **/*(^U)
    

    to search for all files recursively not owned by you.

提交回复
热议问题