10
rated 0 times
[
10]
[
0]
/ answers: 1 / hits: 12813
/ 2 Years ago, tue, september 20, 2022, 11:12:43
I have my base folder (let's call it base).
I have a bunch of folders inside, scattered at various depths within these folders are cache folders.
I want to delete all files from within the cache folders, but not the folders themselves.
I have tried
cd base
#then one of...
sudo rm -rf cache/*
sudo rm -rf *cache/*
sudo rm -rf cache*/*
sudo rm -rf *cache*/*
But really am just guessing, what would be the right command?
More From » command-line