Avatar of sabecs
sabecs
 asked on

Linux command to remove specific files and folders from multiple users.

Hi,
I need a command to remove all files by name "abcfilename.php" from all /home/*/public_html/ folders.

Also need to remove all folders with the following name

/home/*/public_html/jplot
/home/*/public_html/trash


Thanks
LinuxUnix OS

Avatar of undefined
Last Comment
arnold

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Maciej S

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
arnold

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Erasmo Freire dos Santos

Hello friend this command is below:

in -rvf / path / *

make sure the correct file name to not delete anything you need
SOLUTION
Seth Simmons

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
arnold

Thanks for the correction Seth.
Your help has saved me hundreds of hours of internet surfing.
fblack61