I am working on a Linux cluster that is accessed by many people. I would like to list all the files in all directories that have been created by me. I want to do this because there is a lot of content and many of the directories are quite messy so I would like to keep to cluster clean at least on my behalf. Going manually through all the directories is laborious so I tried to come up with a bash code to do this for me:ls --author -l -R | awk '$5==my_user_name {print $0}' | lessI execute this from the root directory. What would be a more efficient way of doing this ? Also I am wondering is this kind of code safe to use since I don't have permissions to most of the files on the cluster.
Listing all the files that I have created on a Linux cluster
files;find
This might help you, find / -user your_username -printThat will print all files, directories starting from / partition which belongs to you. 