LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-28-2002, 04:07 PM   #1
Cichlid
Member
 
Registered: Jan 2002
Location: Montreal
Distribution: Ubuntu 8.10
Posts: 178

Rep: Reputation: 30
rmdir or other command


As a user, if I wanted to delete a directory that has sub-directories and still has files contained, do I use rmdir or some other command to delete the dir. that still contains dirs. and files. Or do I need to login as SuperUser and issue a command?

Thanks,

Erik
 
Old 08-28-2002, 04:28 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
depends if you have access rights to that directory.

rm -rf dirname

see the man page for more info
 
Old 08-28-2002, 04:30 PM   #3
mrGee
Member
 
Registered: Dec 2001
Location: Netherlands
Distribution: redhat suse mandrake freebsd
Posts: 344

Rep: Reputation: 30
Hi
this is asked a few times before so polish the search button
with your cursor.
use the rm command with the -r or -R option
But you can use the midnight commander (mc) from a
console as well, better use that.
regards

timestamp; being a slow typer acid_kewpie outran me

Last edited by mrGee; 08-28-2002 at 04:31 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why a directory can not be able rmdir? backpacker Linux - Software 3 11-21-2005 06:07 AM
Rmdir .. not emtpy ??? waelaltaqi Linux - Software 6 11-04-2005 11:28 AM
rmdir namit Linux - Software 2 10-23-2005 02:26 PM
rmdir command does not remove directory with space tsaravan Linux - Newbie 3 08-16-2005 08:45 AM
rmdir Fatal_3rr0r Linux - General 3 06-23-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:06 PM.

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