T
T
Tsarev Vadim2021-07-02 10:24:14
ubuntu
Tsarev Vadim, 2021-07-02 10:24:14

How to delete all packs with files on all sites in ubuntu Lunix server?

How to write a command to delete all folders with files along the path var/www/html/../temp, so as not to write every time where dot sites (/../) are? can you do that?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2021-07-02
@saboteur_kiev

So write:
rm -rf /var/www/html/*/temp/*
Or delete the entire folders themselves:
rm -rf /var/www/html/*/temp

P
pfg21, 2021-07-02
@pfg21

something like this
for i in var/www/html/* do
rm "$i"/temp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question