Link to home
Start Free TrialLog in
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
ASKER CERTIFIED SOLUTION
Avatar of Maciej S
Maciej S
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello friend this command is below:

in -rvf / path / *

make sure the correct file name to not delete anything you need
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the correction Seth.