LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  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: 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
 
  


Reply



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 10 02-18-2016 03:59 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:27 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration