Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-16-2002, 07:01 AM   #1
LQ Newbie
Registered: Aug 2001
Posts: 8

Rep: Reputation: 0
finding empty directories...


does anyone know how I can show or print a list of all subdirectories that are empty in a specific directory?

Thanks in advance,

Old 10-16-2002, 08:08 AM   #2
LQ Newbie
Registered: Aug 2001
Posts: 8

Original Poster
Rep: Reputation: 0
found it, sorry for the the trouble...
find /root -type d -empty -print > emtydirs.txt

Old 10-16-2002, 09:23 AM   #3
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Doesn't matter ... people are there to learn. As a note for the future, try to solve problems yourself - this is the way you LEARN. If you are at a point where you're not going further and are out of fresh ideas post a specific question in the forum


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
finding empty directories with bash Iriel Solaris / OpenSolaris 2 09-15-2005 01:52 PM
how to search for and delete empty directories? BrianK Programming 4 06-03-2005 08:24 AM
ProFTPD - deleting non-empty directories? orange400 Linux - Software 1 05-28-2004 04:36 AM
Removing non-empty directories brunnopessoa Linux - Newbie 8 11-13-2003 08:56 PM
how do I remove all empty directories? noisybastard Linux - General 2 08-11-2003 12:47 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration