Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
November 23, 2024, 05:34:48 AM
News
: LinuxSolved.com Linux Help Community Forum..
Home
Search
Login
Register
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
»
Others
»
Miscellaneous
»
How to delete a directory with all its content from command line(CLI)or console?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to delete a directory with all its content from command line(CLI)or console? (Read 8110 times)
Noob
Linux Noob !
Posts: 10
How to delete a directory with all its content from command line(CLI)or console?
«
on:
December 03, 2007, 09: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
Posts: 2381
Re: How to delete a directory with all its content from command line(CLI)or console?
«
Reply #1 on:
December 04, 2007, 06:52:32 AM »
You should see man page for "rm"
Try following command:
Code:
[Select]
rm -rf <filename>
Logged
satyamonline007
New Member
Posts: 1
Re: How to delete a directory with all its content from command line(CLI)or cons
«
Reply #2 on:
December 04, 2007, 07:29:05 AM »
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, 07:32:08 AM by satyamonline007
»
Logged
Noob
Linux Noob !
Posts: 10
Re: How to delete a directory with all its content from command line(CLI)or cons
«
Reply #3 on:
December 04, 2007, 12:05:49 PM »
Thankyou Satyam and Ricky
It worked like charm
Logged
ashokroy20002000
New Member
Posts: 2
Re: How to delete a directory with all its content from command line(CLI)or console?
«
Reply #4 on:
January 07, 2008, 06:03:15 PM »
Hi,
It is so easy to delete ----
# rm -rf <file or directory name>
Logged
Print
Pages: [
1
]
« previous
next »
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
»
Others
»
Miscellaneous
»
How to delete a directory with all its content from command line(CLI)or console?