LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

Rep: Reputation: 0
finding empty directories...


aloha,

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

Thanks in advance,

PF
 
Old 10-16-2002, 07:08 AM   #2
PokerFace
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


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

Rep: Reputation: 45
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
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
finding empty directories with bash Iriel Solaris / OpenSolaris 2 09-15-2005 12:52 PM
how to search for and delete empty directories? BrianK Programming 4 06-03-2005 07:24 AM
ProFTPD - deleting non-empty directories? orange400 Linux - Software 1 05-28-2004 03:36 AM
Removing non-empty directories brunnopessoa Linux - Newbie 8 11-13-2003 07:56 PM
how do I remove all empty directories? noisybastard Linux - General 2 08-10-2003 11:47 PM


All times are GMT -5. The time now is 03:58 AM.

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