Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1085 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Business and Website Management     Web Hosting and Domain Names :

Deleting a directory using Putty

Thread title: Deleting a directory using Putty
Reply    
    Thread tools Search this thread Display Modes  
08-31-2010, 07:26 AM
#1
Dan is offline Dan
Dan's Avatar
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
 
Posts: 3,164
iTrader: 15 / 86%
 

Dan is an unknown quantity at this point

  Old  Deleting a directory using Putty

Okay. Locked myself out of permissions to a directory.

I think the path is: /daniel/public_html/deleteme/

Could someone be kind enough to write up what I type into Putty to delete the folder named 'deleteme', i'm rather scared I'll delete the entire server by mistake. :S

Thanks

Reply With Quote
08-31-2010, 10:39 AM
#2
AndyKerr is offline AndyKerr
AndyKerr's Avatar
Status: Junior Member
Join date: Nov 2005
Location: Leeds, England
Expertise:
Software:
 
Posts: 44
iTrader: 0 / 0%
 

AndyKerr is on a distinguished road

Send a message via MSN to AndyKerr

  Old

I'm sure if you'd contact your host, they'd be kind enough to do it for you

But in all honesty.. I have the same problem. I have PHP creating directories for me which are 0666 iirc, and it wont let me delete them :\

Reply With Quote
08-31-2010, 02:45 PM
#3
hakem is offline hakem
hakem's Avatar
Status: Member
Join date: Feb 2010
Location:
Expertise:
Software:
 
Posts: 130
iTrader: 0 / 0%
 

hakem is on a distinguished road

Send a message via MSN to hakem

  Old

Maybe you should try :

Code:
cd daniel/public_html/
then

Code:
chown -R username:usergroup *
You can find the username and the user group when you login using ftp, make sure it's not root

after that

Code:
chmod -R 755 deleteme
then try to delete it

Reply With Quote
08-31-2010, 04:35 PM
#4
zomex is offline zomex
zomex's Avatar
Status: Member
Join date: Jul 2010
Location: United Kingdom
Expertise:
Software:
 
Posts: 176
iTrader: 0 / 0%
 

zomex is an unknown quantity at this point

  Old

Hello,

Isn't the command rmdir? If you're getting permission errors then follow hakem's guide. This is how I would do it:

Code:
cd /daniel/public_html/
Code:
rmdir deleteme
Regards,
Jack

Reply With Quote
08-31-2010, 05:34 PM
#5
Jordan is offline Jordan
Jordan's Avatar
Status: #pugs {display: block;}
Join date: Jan 2007
Location: Chicago
Expertise: CSS, HTML, PHP
Software: Sublime Text 2
 
Posts: 1,187
iTrader: 7 / 100%
 

Jordan is on a distinguished road

  Old

It's not PuTTy but rather SSH in general, Dan.

Code:
 cd public_html
 rm -r -f deleteme

Reply With Quote
08-31-2010, 09:53 PM
#6
Dan is offline Dan
Dan's Avatar
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
 
Posts: 3,164
iTrader: 15 / 86%
 

Dan is an unknown quantity at this point

  Old

Cheers all.

I slightly remember doing it Jack's way last time. :S

Guess I'll try all three.

Reply With Quote
08-31-2010, 11:55 PM
#7
Fez is offline Fez
Fez's Avatar
Status: Member
Join date: Jun 2010
Location: Saudi Arabia
Expertise: HTML, CSS, Wordpress, jQuery
Software: e-texteditor
 
Posts: 206
iTrader: 2 / 100%
 

Fez is on a distinguished road

Send a message via MSN to Fez

  Old

Originally Posted by Dan View Post
Cheers all.

I slightly remember doing it Jack's way last time. :S

Guess I'll try all three.
That directory shall be OBLITERATED

Reply With Quote
Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed