Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list directories based on the file system they belong to? 1

Status
Not open for further replies.

WiccaChic

Technical User
Jan 21, 2004
179
US
Is it possible to list directories based on the file system they belong to? I would like to execute a command for every directory in filesystem X.
 
man find and look at the -xdev option

i.e.
Code:
find / -xdev -type d -exec mycmd {} \;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top