GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   SSH command to delete everything in a folder? (https://gfy.com/showthread.php?t=888462)

Emil 02-17-2009 01:16 PM

SSH command to delete everything in a folder?
 
What's the SSH-command to delete all files and folder within a folder without having to press "y" for every file and folder?

kmanrox 02-17-2009 01:19 PM

rm -f ./

kmanrox 02-17-2009 01:21 PM

very tempting to post the wrong command in hopes that you deleted your whole HDD... but alas i couldnt bring myself to do it.

Emil 02-17-2009 01:21 PM

Do it please, I want to whip everything out. I'm canceling one of my servers.

Thanks!

DarkJedi 02-17-2009 01:23 PM

Quote:

Originally Posted by Emil (Post 15509175)
Do it please, I want to whip everything out. I'm canceling one of my servers.

The FBI forensics unit can restore everything.

Just saying.

:helpme

kmanrox 02-17-2009 01:23 PM

to kill your whole hdd, as root, type rm -rf /* or rm-rf / i think works too

of course there's a few ways to format / kill your whole HDD.. this is one

brandonstills 02-17-2009 02:56 PM

Quote:

Originally Posted by Emil (Post 15509118)
What's the SSH-command to delete all files and folder within a folder without having to press "y" for every file and folder?

rm -rf foldername

-r means recursive (all subfolders)
-f means don't ask me to confirm

peeperpimp 02-17-2009 03:00 PM

Quote:

Originally Posted by brandonstills (Post 15510083)
rm -rf foldername

-r means recursive (all subfolders)
-f means don't ask me to confirm

Exactly, or from outside the path as soon as you login root

rm -rf directorypath/nameofdirectorytoberemoved


All times are GMT -7. The time now is 05:00 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123