[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Others  |  Miscellaneous  |  Topic: How to delete a directory with all its content from command line(CLI)or console?
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: How to delete a directory with all its content from command line(CLI)or console?  (Read 918 times)
0 Members and 1 Guest are viewing this topic.
Noob
Linux Noob !
*
Offline Offline

Posts: 10


View Profile
« on: December 03, 2007, 04:53:37 PM »

Unfortunately I am very new to linux but have I have assigned some crictical operation on our linux server.
I have to delete a directory and all its content from server from command line interface.
How I do ?

rm <filename> say directory not empty.
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2215


View Profile
« Reply #1 on: December 04, 2007, 01:52:32 AM »

You should see man page for "rm"
Try following command:
Code:
rm -rf <filename>
Logged
satyamonline007
New Member

Offline Offline

Posts: 1


View Profile
« Reply #2 on: December 04, 2007, 02:29:05 AM »

 Smiley Ok u want delete the folder at a time with inside all contentents of files & folders

Below given the command Type in Terminal ....
 #         rm -rf <filename or foldername>
« Last Edit: December 04, 2007, 02:32:08 AM by satyamonline007 » Logged
Noob
Linux Noob !
*
Offline Offline

Posts: 10


View Profile
« Reply #3 on: December 04, 2007, 07:05:49 AM »

Thankyou Satyam and Ricky
It worked like charm Smiley
Logged
ashokroy20002000
New Member

Offline Offline

Posts: 2


View Profile
« Reply #4 on: January 07, 2008, 01:03:15 PM »

Hi,
   It is so easy to delete ----

# rm -rf <file or directory name>

                                         
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Help for command line editing.. Miscellaneous indigo 3 1702 Last post February 11, 2004, 10:38:30 AM
by dragoncity99
Safesquid - Content Filtering Proxy Server Os Talk davidwalton 4 1302 Last post November 30, 2004, 12:03:10 PM
by Ricky
Newbie needs help! Hard-drive control via command line Other Devices gorkypark 4 1275 Last post May 23, 2005, 07:07:17 AM
by gorkypark
how to upload directory using ftp from command prompt Linux Servers Support deven_01 1 628 Last post November 18, 2005, 09:49:30 PM
by jamesyeeoc
PROBLEMS FACED IN COMMAND LINE OPERATIONS Miscellaneous rajesh.bahl 6 545 Last post May 15, 2007, 02:00:49 AM
by gauravbajaj
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 08:02:20 PM

Login with username, password and session length
Navigation
Recent Discussions
[November 29, 2008, 02:23:49 PM]

[November 29, 2008, 02:14:14 PM]

[November 29, 2008, 04:00:36 AM]

[November 28, 2008, 07:05:28 AM]

[November 28, 2008, 07:04:39 AM]

[November 28, 2008, 06:58:16 AM]

[November 28, 2008, 06:47:09 AM]

[November 26, 2008, 11:53:32 AM]

[November 26, 2008, 04:00:22 AM]

[November 25, 2008, 06:44:47 PM]
Members
Total Members: 6252
Latest: rash31
Stats
Total Posts: 8285
Total Topics: 2257
Online Today: 34
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 11
Total: 11
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc