'Shell command to list all files in a directory

Does anyone know a shell command that could list all of the files in a directory, only showing those that I own, it should be in bash as well.



Solution 1:[1]

You can find files owned by the current user ($USER) in combination with the find command with the -user parameter.

find . -type f -user $USER | xargs ls -l

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 过过招