Skip to main content

Delete Empty Folders and Crap OS X

How do I find empty folders in a file hierachy with find?

find . -name ".DS_Store" -depth -type f -print

find . -name ".DS_Store" -depth -type f -print -exec rm {} \;

find . -depth -type d -empty -print

find . -depth -type d -empty -print -exec rmdir {} \;

Comments

Popular posts from this blog

NetSurveyor :: 802.11 (WiFi) Network Discovery / Scanner Tool

NetSurveyor :: 802.11 (WiFi) Network Discovery / Scanner Tool http://www.performancewifi.net/performance-wifi/main/NetSurveyor.htm NetSurveyor is an 802.11 (WiFi) network discovery tool and, as such, its goal in life is to gather information about nearby wireless access points in real time and display it in a useful way. Similar in purpose to NetStumbler , it includes many more features. The data is displayed using a variety of different diagnostic views and charts. Data can be recorded for extended periods and played-back at a later date/time. Also, reports can be generated in Adobe PDF format. Applications for NetSurveyor include the following: During the installation of a wireless network, as an aid in verifying the network is properly configured and antennas are positioned at locations to achieve efficient transmission / reception -- that is, for use in verifying WiFi coverage and maximizing beacon signal strength Trouble-shooting an existing network or wireless environm...

Resizing a .dmg image - os x

1. Mount the image 2. Delete the files you don't need. 3. Dismount image. 4. From the terminal : hdiutil resize -size xx{m or g} /PATH/TO/DISKIMAGE.dmg xx= the size you want the image to be. Use either M for MG or G for GB i.e. hdiutil resize -size 25g ~/Desktop/mystuff.dmg

Testing Network Faults Connection

Testing Network Faults Connection Keywords: network | ping | trace | telnet | connection | setup | hardware Summary: Help with testing connection or network problems. 1. Introduction 2. Testing Your Network 3. Using the command line 4. Ping - "Can my data reach the destination?" 5. Traceroute - "How does my data reach its destination?" 6. DNS Lookup - "Is my data going to the right address? " 7. Netstat - "What's my computer connecting to? " 8. Telnet - "Can I connect to it?" 9. Netshell - "One-stop network check" 1. Introduction There are many possible causes of connection problems. This guide will show how you can investigate problems using some simple tools that come with most versions of Windows. To use all of the tools though, you will need Windows XP. 2. Testing your network The tools in ...