to delete empty directory!!
3 posters
to delete empty directory!!
what is the command to delete an empty directory???wen i searched in the net,got the ans as the following code
find . -type d -empty | xargs rmdir -
but dis dint work for me!!!can anyone check dis out and explain if it worked???
find . -type d -empty | xargs rmdir -
but dis dint work for me!!!can anyone check dis out and explain if it worked???
Abhiramy- Posts : 9
Points : 21
Join date : 2010-02-26
Re: to delete empty directory!!
i just tried rmdir command and it worked! i did not understand why that command did not workout for u?
rmdir <dir name>
rmdir <dir name>
Re: to delete empty directory!!
now i tried,,it worked!!!!hav any idea wat dat alternative code mean,,i mean its expln???
Abhiramy- Posts : 9
Points : 21
Join date : 2010-02-26
Re: to delete empty directory!!
Abhiramy
the alternative command which has been specified by you does the task of searching all the empty directory in the current context and then removes it using rmdir xargs.as in
the alternative command which has been specified by you does the task of searching all the empty directory in the current context and then removes it using rmdir xargs.as in
- Code:
find . -type d -empty | xargs rmdir -
rohit_1000r- Posts : 4
Points : 4
Join date : 2010-03-09
Similar topics
» to find empty files
» copy directory
» removing a directory
» directory doubt
» deleting non-empty directories??
» copy directory
» removing a directory
» directory doubt
» deleting non-empty directories??
Permissions in this forum:
You cannot reply to topics in this forum
|
|