Trương Duy Bằng
New member
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.
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.