1

In my case the ownership would belong to Macports, which I removed. However, I found there are still some files here and there that apparently belong to Macports and I would like to remove them as well.

1 Answer 1

3

You can use find tool for that:

find /path/to/search -user <username>

or if you want to list only files from current dir without subdirectories

find /path/to/search -maxdepth 1 -user <username>

Prepend -ls to have the output more like ls

find /path/to/search -user <username> -ls
3
  • Wow thanks a lot that did the trick! (StackExchange wants me to wait 5 minutes for accepting your answer though...)
    – user238311
    Commented Jul 15, 2013 at 18:00
  • One more question though. Does this also show hidden files?
    – user238311
    Commented Jul 15, 2013 at 18:07
  • It will also show files starting with ., yes.
    – Karsten S.
    Commented Jul 15, 2013 at 18:11

You must log in to answer this question.