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)
-   -   command for wiping everything in a dir will logged in via telnet? (https://gfy.com/showthread.php?t=448104)

quiet 03-24-2005 09:56 PM

command for wiping everything in a dir will logged in via telnet?
 
i'm very rusty at this sort of thing... thanks for any help :)

JFPdude 03-24-2005 09:58 PM

rm -rf *

Be careful make sure you are in the right directory first. To see what dorectory you are in type pwd

to verify it's the files you want deleted type ls -al

Triple 6 03-24-2005 09:59 PM

rmdir -r


?

Triple 6 03-24-2005 10:00 PM

ah ok, -rf


yea be sure where you are at, cuz that will wipe it down with no confirm shit that -r asks ya first

DA2 03-24-2005 11:45 PM

rm -ibill

Sosa 03-24-2005 11:45 PM

Quote:

Originally Posted by DA2
rm -ibill



lol!! haha

JOKER 03-24-2005 11:52 PM

First of all...

Use SSH not telnet.

the use rm -r /somedir/dir-to-be-deleted-in/* (will ask for confirm)

if you are 100% sure you know what you do use:

rm -rf /somedir/dir-to-be-deleted-in/*

you can as well first change into the directory and then type:

rm -r * (with confirm)

rm -rf * (without confirm)


hope that helped.

quiet 03-25-2005 01:16 AM

Quote:

Originally Posted by JOKEREMPIRE
First of all...

Use SSH not telnet.

the use rm -r /somedir/dir-to-be-deleted-in/* (will ask for confirm)

if you are 100% sure you know what you do use:

rm -rf /somedir/dir-to-be-deleted-in/*

you can as well first change into the directory and then type:

rm -r * (with confirm)

rm -rf * (without confirm)


hope that helped.

am using ssh.

yeah would rather do rm -r * while in the directory...

thanks :)

WiredGuy 03-25-2005 01:17 AM

rm -r * while in the directory you want to flush.
WG

PhillipB 03-25-2005 01:17 AM

Quote:

Originally Posted by DA2
rm -ibill


that's great!

Ron Bennett 03-25-2005 04:25 AM

rm *

Unless there are lots of sub-dirs in there and/or you are 100% sure that everything in there should be deleted, then rm -rf *

BE SURE you are in the directory BEFORE executing any of the various delete commands. Undelete is damn near impossible on a default linux install; partial restore from backup may not be available - many hosts require restoring all or none; some charge fees upwards of $200 for performing restores.

Ron

Brujah 03-25-2005 04:27 AM

rm -rf /

DarkJedi 03-25-2005 04:36 AM

Format c:\

JFPdude 03-25-2005 04:39 AM

Quote:

Originally Posted by Brujah
rm -rf /


Definetly not this answer :1orglaugh :1orglaugh

This will wipe everything in / (meaning your whole system)


All times are GMT -7. The time now is 08:01 PM.

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