How do I remove a user from a Linux file?

How do I remove a user from a Linux file?
Answer
If you want to delete files owned by Specific User in Linux then you need to use below
find command. In this example, we are deleting all the files owned by User centos using find / -user centos -type f -exec rm -rf {} ; command. -user : File is owned by user. More information can be checked on find command Man Page.
 

Tìm kiếm

Back
Top