LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2003, 01:57 PM   #1
ShakyJake
Member
 
Registered: Apr 2003
Location: USA
Distribution: Gentoo
Posts: 55

Rep: Reputation: 15
Question Deleting files


What's the unix command to delete all files and any subdirectories?

Thanks in advance!
 
Old 05-08-2003, 01:58 PM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
man mkdir and search for the options


mkdir -RF
 
Old 05-08-2003, 02:00 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
ummm...I think mkdir stands for MaKeDIRectory.

The command you want to use is

rm -rf /path/to/directory

This is a *VERY* dangerous command. If you slip and type:

rm -rf / <enter>

(I get nervous every time I type that) say bye bye to your root partition.

-r=recursively
-f=forcefully
 
Old 05-08-2003, 02:03 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
rm -rf dirname

(kinda like my sig )

EDIT: like Crashed_Again said ^

Last edited by david_ross; 05-08-2003 at 02:04 PM.
 
Old 05-08-2003, 02:08 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Quote:
Originally posted by david_ross
rm -rf dirname
What are you my shadow? Ha just kidding. I hate when that happens as well. You type something and hit submit and then find that someone beat you to it. We are a good team!
 
Old 05-08-2003, 02:10 PM   #6
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
caught me there guys, mind still sleeping i guess,

sorry for that
 
Old 05-08-2003, 02:14 PM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Also rm -R
 
Old 05-08-2003, 02:15 PM   #8
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
hehe at least you were in the same realm as the question. I've given some pretty out there answers:

Question: How do you change your default theme?

Crashed_Again says something like: chown user file

 
Old 05-08-2003, 02:27 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Quote:
Originally posted by Crashed_Again
What are you my shadow?
Only by night!

Quote:
We are a good team!
That's whats cool about LQ - everyone works well together. I wish the non unix support companies that we "pay" at work were as good
 
Old 05-08-2003, 02:47 PM   #10
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Quote:
Originally posted by david_ross
I wish the non unix support companies that we "pay" at work were as good
I hear that. Some of them are just down right stupid although we dealt with Dell a lot and they were pretty good. The only thing that was bad about it was the hoops they made you jump through:

Have you checked that the cables are properly seated?
Yes
Have you checked that the power cables are properly seated?
Yes
Have you flashed the BIOS?
Arggggg just send me a new freakin hard drive!
 
Old 05-08-2003, 03:07 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Quote:
Originally posted by Crashed_Again
Have you checked that the cables are properly seated?
Yes
Have you checked that the power cables are properly seated?
Yes
Have you flashed the BIOS?
Arggggg just send me a new freakin hard drive!
Tell me about it. Dell were OK with me the last time - Next day delivery for a new hotswap PSU under warranty.

The worst system we have is Novell. It runs our mail server. (We are currently building a new linux one ) The "latest" problem with Novell is that we can't add user accounts. The name appears but the users database files aren't created. This has been on the go for about 2 months now. Accounts are sometimes created when the system restarts so we can "just" add new users. Our support company have had us rebuilding database files and repairing dictionary files etc etc. Now after 2 months their latest idea is to. Wait for it... "reinstall".

The other problem we have is with changing passwords. Im not sure if you have used Novell but you can access your mail using:
pop
imap
GroupWise
GroupWise WebAccess

The last 2 are propriatry. This used to work but now - when you change a users password they can't log in to pop, imap or WebAccess. This is despite the fact that they all use the same password file (or so I'm told).

The annoying thing is that "GroupWise" is a horrible piece of software that crashes PCs and we therefore don't use it. So to change the user password we need to change it in nwadmin (Novell admin utility), then login as the user and change their password "again" for them. After changing it the second time they can login by any means they want.

whew - that was a long post! Who knows maybe there is a Novell junkie hanging about that can figure it out
 
Old 05-08-2003, 03:58 PM   #12
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I worked for 6 months at a court house helping them migrate to a Windows2000 network. I saw some books on GroupWise and I asked them about it. They all cringed at the word. They had gotten rid of it right before I got there.
 
Old 05-08-2003, 04:07 PM   #13
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I don't blame them. I think our server may be going for a new record. I haven't had to reboot it for over a week

I work for the NHS and one of my colleagues has just moved to a different area and now works for their IT department. I spoke to him yesterday and they have 18 (yes eighteen) Novell servers ranging from Novell 3 to Novell 6. I was joking with him that they must employ someone just to reboot them. Then he told me that the week before he started the "root" server had crashed the and in turn all the other servers lost time and crashed too

I think the Novell philosophy must be "fallover" rather than "failover".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting files in C monil Programming 4 03-13-2005 11:33 AM
Deleting files! a_priebe47 Slackware 6 10-17-2004 10:58 PM
How to keep people from deleting certain files? vincebs Linux - Newbie 9 04-12-2004 03:40 PM
deleting recent files Santas Linux - General 2 01-19-2004 07:26 AM
Deleting files Tingle Linux - Newbie 4 01-16-2003 05:19 PM


All times are GMT -5. The time now is 05:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration