Skip to main content
added 1 character in body
Source Link

I have 100 joomla website in my server I want to clean all of joomla cache folders. I need a command to do this:

1- find all directories with "cache" name

if I search in for example "/home/demo/" directory

it find the "cache" directory in maximum one deeper level, like :

/home/demo/ddf3e/

/home/demo/awda2/

Not deeper than this

2- clean all files & directories inside of "cache"s directories

Only the contents to be remove not itself

3- creat an "index.html" file in all "cache"s directories

Thank you in advance

I have 100 joomla website in my server I want to clean all of joomla cache folders. I need a command to do this:

1- find all directories with "cache" name

if I search in for example "/home/demo/" directory

it find the "cache" directory in maximum one deeper level like :

/home/demo/ddf3e/

/home/demo/awda2/

Not deeper than this

2- clean all files & directories inside of "cache"s directories

Only the contents to be remove not itself

3- creat an "index.html" file in all "cache"s directories

Thank you in advance

I have 100 joomla website in my server I want to clean all of joomla cache folders. I need a command to do this:

1- find all directories with "cache" name

if I search in for example "/home/demo/" directory

it find the "cache" directory in maximum one deeper level, like :

/home/demo/ddf3e/

/home/demo/awda2/

Not deeper than this

2- clean all files & directories inside of "cache"s directories

Only the contents to be remove not itself

3- creat an "index.html" file in all "cache"s directories

Thank you in advance

added 2 characters in body
Source Link
GAD3R
  • 69.9k
  • 32
  • 147
  • 216

I have 100 joomla website in my server I want to clean all of joomla cache folders. I need a command to do this:

1- find all directories with "cache" name

if I search in for example "/home/demo/" directory

it find the "cache" directory in maximum one deeper level like :

/home/demo/ddf3e/

/home/demo/awda2/

/home/demo/ddf3e/

/home/demo/awda2/

Not deeper than this

2- clean all files & directories inside of "cache"s directories

Only the contents to be remove not itself

3- creat an "index.html" file in all "cache"s directories

Thank you in advance

I have 100 joomla website in my server I want to clean all of joomla cache folders. I need a command to do this:

1- find all directories with "cache" name

if I search in for example "/home/demo/" directory

it find the "cache" directory in maximum one deeper level like :

/home/demo/ddf3e/

/home/demo/awda2/

Not deeper than this

2- clean all files & directories inside of "cache"s directories

Only the contents to be remove not itself

3- creat an "index.html" file in all "cache"s directories

Thank you in advance

I have 100 joomla website in my server I want to clean all of joomla cache folders. I need a command to do this:

1- find all directories with "cache" name

if I search in for example "/home/demo/" directory

it find the "cache" directory in maximum one deeper level like :

/home/demo/ddf3e/

/home/demo/awda2/

Not deeper than this

2- clean all files & directories inside of "cache"s directories

Only the contents to be remove not itself

3- creat an "index.html" file in all "cache"s directories

Thank you in advance

Source Link

find all directory with same name & remove all contents in centos

I have 100 joomla website in my server I want to clean all of joomla cache folders. I need a command to do this:

1- find all directories with "cache" name

if I search in for example "/home/demo/" directory

it find the "cache" directory in maximum one deeper level like :

/home/demo/ddf3e/

/home/demo/awda2/

Not deeper than this

2- clean all files & directories inside of "cache"s directories

Only the contents to be remove not itself

3- creat an "index.html" file in all "cache"s directories

Thank you in advance