nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Shell Delete Directory

This is a discussion on Shell Delete Directory within the Slackware forums, part of the Linux Distribution category; How do I delete a directory under Linux shell prompt?...


Go Back   nixCraft Linux Forum > Linux Distribution > Slackware

Linux answers from nixCraft.


Slackware Discussion about Slackware Linux (the oldest distribution) related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 19-04-2008, 04:28 PM
chimu's Avatar
Contributors
User
 
Join Date: Mar 2005
OS: Ubuntu
Posts: 79
Thanks: 23
Thanked 4 Times in 3 Posts
Rep Power: 6
chimu is on a distinguished road
Default Shell Delete Directory

How do I delete a directory under Linux shell prompt?
Reply With Quote
  #2 (permalink)  
Old 19-04-2008, 04:30 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

Directories must be empty before rmdir command:
Code:
rmdir directory
rmdir x/y
rmdir your-dir-name
Linux delete directory with rmdir command
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #3 (permalink)  
Old 31-05-2008, 03:36 PM
Junior Member
User
 
Join Date: May 2008
OS: RedHat/Solaris
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
aasif.shaikh is on a distinguished road
Default

If you want to delete the folder without emptying it.
U can use `rm -rf folder_name` but beware as it will delete all the data inside that folder.
Reply With Quote
Reply

Tags
linux , linux delet directory , rm -rf , rmdir , unix delete directory


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Shell Script to Automatically Delete a File via Cron Job kakarla Shell scripting 2 29-01-2008 08:54 AM
Linux delete mail for root or any other user from a shell prompt raj Getting started tutorials 0 05-05-2007 01:36 AM
Shell script to delete a file with a dialog utility shankar100 Shell scripting 4 02-03-2007 10:22 AM
delete directory linux chiku Linux software 4 22-07-2006 06:56 PM
error shell script no such file or directory /bin/sh Linux software 1 08-01-2006 08:34 PM


All times are GMT +5.5. The time now is 03:45 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38