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 acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry repair router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
deleting everything

Reply  
Thread Tools
chucker8's Avatar
Member with 60 posts.
 
Join Date: Jun 2004
Experience: Intermediate
30-Sep-2005, 11: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, 11: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, 01: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, 02:06 PM #4
i figured out the .bashrc script had an alias for rm -

alias rm = 'rm -i'


thanks
Squashman's Avatar
Trusted Advisor with 18,705 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
01-Oct-2005, 02: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.
Reply

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.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:58 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.