Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router safe mode screen slow sound spyware trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
deleting everything

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
chucker8's Avatar
Member with 60 posts.
 
Join Date: Jun 2004
Experience: Intermediate
30-Sep-2005, 10:27 AM #1
deleting everything
hi all.

I cant for the life of me figure out how to delete all directories and files.

Example Im in /usr/local/mystuff

I want to delete all files, direcotries, and sub-directories under mystuff

Solaris9

how do I do this?
thanks
chucker8's Avatar
Member with 60 posts.
 
Join Date: Jun 2004
Experience: Intermediate
30-Sep-2005, 10:54 AM #2
im trying:

rm -r direcoryname

but it keeps asking me if I want to examine files? whether is say Y or N, it doesnt delete the freakin directory !
chucker8's Avatar
Member with 60 posts.
 
Join Date: Jun 2004
Experience: Intermediate
30-Sep-2005, 12:17 PM #3
thanks all. why do i keep getting prompted to examine files or to remove them? i thought the f switch took care of this
thanks!

rm -rf *


rm: examine files in directory dev (yes/no)? yes
rm: examine files in directory dev/sad (yes/no)? yes
rm: remove dev/sad/admin (yes/no)? yes
rm: remove dev/sad/user (yes/no)? yes
rm: remove dev/sad: (yes/no)? yes
rm: examine files in directory dev/dsk (yes/no)?
chucker8's Avatar
Member with 60 posts.
 
Join Date: Jun 2004
Experience: Intermediate
30-Sep-2005, 01:06 PM #4
i figured out the .bashrc script had an alias for rm -

alias rm = 'rm -i'


thanks
Squashman's Avatar
Distinguished Member with 14,984 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: IIAHYAYCESA,YAADA!
01-Oct-2005, 01:16 PM #5
Quote:
Originally Posted by chucker8
i figured out the .bashrc script had an alias for rm -

alias rm = 'rm -i'


thanks
Yep, glad you figured it out. I would have answered but I was gong all day yesterday. Alot of systems do it that way. Just to be on the safe side.
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 08:15 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.