You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkdir /var/www/
mkdir /var/www/html
cd /var/www/html
rm -rf *
the rm -rf * part literally deleted all my files.
That's happened while the program was running mkdir /var/www/ and mkdir /var/www/html commands. And then I noticed that I am out of memeory and failed to create the folders and that caused cd /var/www/html to fail.
Then when we get to rm -rf * command, as you see it's literally deleting all files on / (root) directory in that case.
For fixing that, just please add certain directory to rm command, this is really not safe.
rm -rf /var/www/html/*
The text was updated successfully, but these errors were encountered:
TeomanDeniz
changed the title
Your .../wordpress/tools/script.sh shell file deleted all my filres inside my docker machine
Your .../wordpress/tools/script.sh shell file deleted all my filesinside my docker machine
Jul 24, 2024
TeomanDeniz
changed the title
Your .../wordpress/tools/script.sh shell file deleted all my filesinside my docker machine
Your .../wordpress/tools/script.sh shell file deleted all my files inside my docker machine
Jul 24, 2024
At script.sh, when you're doing
the
rm -rf *
part literally deleted all my files.That's happened while the program was running
mkdir /var/www/
andmkdir /var/www/html
commands. And then I noticed that I am out of memeory and failed to create the folders and that causedcd /var/www/html
to fail.Then when we get to
rm -rf *
command, as you see it's literally deleting all files on/
(root) directory in that case.For fixing that, just please add certain directory to
rm
command, this is really not safe.rm -rf /var/www/html/*
The text was updated successfully, but these errors were encountered: