can anyone help to give me command to Find files by owner name. for example there are many files by different users in a /home/userdata location But I want to see only those files owned by a user for example John. see question screenshot. I tried (sudo find /home/userdata -user yousuf) but it seems not working . error says no such files or directory.
The command is find
I tried (sudo find /home/userdata -user yousuf) but it seems not working . error says no such files or directory.
i also tried this but still no luck
find /path -user username -type f -exec cp {} /destination-path/{} ;
are you sure you have logged into appserver 3? Please provide a text copy of your terminal in a code block (</>
)
yes I am logged into correct server as per question requirement. screenshot attached of codeblock and question
[steve@stapp02 ~]$ pwd
/home/steve
[steve@stapp02 ~]$ sudo find /home/usersdata -user james -type f -exec cp {} /official/{} ;