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)
-   -   VERY BASIC unix command help.... (https://gfy.com/showthread.php?t=475510)

darnit 06-02-2005 12:32 AM

VERY BASIC unix command help....
 
Hey,

Im trying to nuke a bunch of directories that have subdirs, pics, files etc. Im using the command rm -r <directoryname>. However i get a prompt for each file within these dirs im trying to delete.

Is there a way to nuke these directories / subdirs / files without having to confirm each file?

Thanks!

PS - i know.... newb question so flame at will

perfectodollars-gabrio 06-02-2005 12:33 AM

that's probably cuz you dont have root privileges for those, login as root and then do rm -r and he won't ask you anything. if you can't login as root, this is not possible unfortunately and you gotta do one by one...

LionDollars 06-02-2005 12:33 AM

rm -r -a <dirname> from a rusty old memory

L$

broke 06-02-2005 12:34 AM

rm -Rf <dir>

FuqALot 06-02-2005 12:36 AM

maybe rm -rf

broke said it hehe

darnit 06-02-2005 12:38 AM

Quote:

Originally Posted by perfectodollars-gabrio
that's probably cuz you dont have root privileges for those, login as root and then do rm -r and he won't ask you anything. if you can't login as root, this is not possible unfortunately and you gotta do one by one...

Thats true - its a managed box at nat net....so no root... ugg. Is there a work around?

JulianSosa 06-02-2005 12:42 AM

Get nat net to change permissions on the directorys you want to kill then rm -rf

darnit 06-02-2005 12:56 AM

Quote:

Originally Posted by JulianSosa
Get nat net to change permissions on the directorys you want to kill then rm -rf

will do... thanks eveyone for the help. Saves a bunch of time :thumbsup

darksoul 06-02-2005 01:29 AM

You don't need natnet for this.
Since you don't get permission denied when deleting one file at a time its not a permission thing, you can just rm -fr dir


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

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