5

How to generate folder ownership lists for each user?

view full story
linux-howto

http://unix.stackexchange.com – I'd like to generate several separate lists for each user in Ubuntu. The lists contains the files and folders belong to each user. Using the command following list me all the users in the system: cat /etc/passwd | awk -F: '{print $1;}' Suppose "user1" is the first result, I'd like to get the list as: find / -user "user1" > user1.txt Thus, my problem is how can I get all the lists using commands as little as possible. Thanks in advance. (HowTos)