The following will search the current dir (and subdirs) for any files that contain identical content and are of identical size, regardless if they are named differently. Open a terminal shell, and 'cd' to the dir you want to search, then type:
[Editor's note: I inserted a carriage return for readability -- type the command on one line when entering it!]
This will produce a list of duplicate files (if any) in dup.txt. True there are some nicely written apps that will do the same thing, but ain't it great that you can do this right from within your OS?
This will ignore files that are smaller than 10k. (remove/alter the '+size 20' to change this). But a warning: really small files may produced identical CRCs. i.e. show up as duplicates even if they really aren't.
If you want to search a filesystem you don't own (i.e. /) you'll need to sudo or su or 'find' will complain.
The built-in cksum cmd only uses CRC32. MD5 would be better. Anyone know why it's not enabled under OSX?
If you're gonna write a script to delete the duplicates from the produced dup.txt list, just remember that it contains ALL instances of the duplicate files.
In this MacWorld forum thread, JohnKFisher asked about getting OS X version info when connecting via SSH to another OS X box. After some back and forth, PaulM contributed the easy way to get this info:
[11:13am robg ~]% sw_vers ProductName: Mac OS X ProductVersion: 10.0.4 BuildVersion: 4Q12
Just type 'sw_vers' and you'll get the info on what version of OS X you've connected to. PaulM also points out that the traditional UNIX command is 'uname -a', and that this returns Darwin information on OS X:
[11:13am robg ~]% uname -a Darwin localhost 1.3.7 Darwin Kernel Version 1.3.7: Sat Jun 9 11:12:48 PDT 2001; root:xnu/xnu-124.13.obj~1/RELEASE_PPC Power Macintosh powerpc
Many people have asked about creating bootable backup of OS X. Over in the MacFixIt forums, there was an interesting conversation about this a while ago. In this thread, "Sparky the Wonderpig" gave a fairly simple solution to the problem ... more interesting are comments from other posters concerning how it may be addressed by a future update from Apple.
If you're interested in backing up your OS X volume now, check out Sparky's method ... and let's hope we see an official tool from Apple soon!
If, like me, you have loads of mp3's, or .sit(s) .bin(s) all downloaded into one folder, or several diferent folders, you can throw them all together in one clean move without having to find them all and drag them painstakingly one at a time.
Just open up your destination folder, open Sherlock and search for their common property (ie their name or .sit suffix). Select them all and drag them into the desitination folder. You can then, if you need to, delete all your partially downloaded mp3's by opening the folder in list view, select size to arrange and delete ...etc.
[Editor's note: Not specific to OS X, of course, but a good organization speed-up tip in general]
Over on Macintouch's Mac OS X Reader Reports (well worth reading, as there's a ton of good info collected there!), Paul Christensen posted some information he received from Apple's tech support group regarding the initial setup assistant (which configures your primary user account, among other things).
According to Apple, to re-run the assistant, you need to:
Boot into single-user mode (command-S during startup)
Once the command-line prompt appears, type the following:
mount -uw / cd /private/var/db/netinfo mv local.nidb local.old rm ../.AppleSetupDone exit
When you hit RETURN after typing exit, OS X will restart and the setup assistant will launch automatically. So if you've somehow messed up your primary OS X user, this is a good fix that may get you up and running again, even if re-running the OS X installer does not.
The Speech Recognition system in OS X seems to work MUCH more accurately when external speakers are powered down - if you are finding it somewhat frustrating to constantly repeat yourself, try turning off any external speakers you have - it made a world of difference for me.
Hopefully this is one of the bugs Mr. Jobs said were being fixed with the .1 update.
Telstra, the ex-government telecommunications monopoly down under, has 100% of the ADSL market in Australia and is the leading cable supplier.
They are exceedingly ignorant about all things MacOS especially Mac OS X. The following non-Telstra FAQ has information about connecting MacOS X to Telstra ADSL, and has links to a freeware non-classic client for Telstra Cable (a boon for Australian OS X users)
I'm an instructor at a small technical college and the only Mac user in my department. Our network is heavy on Windows, as expected, with some UNIX. Our Graphic Design department uses Macs, of course.
Anyway, our printers are HP LaserJets shared over the network. They support all types of connections, including Appletalk and TCP/IP. Under OS X, the HP PPDs are only available using LPR (TCP/IP) printing and I couldn't seem to get that working. I had to use Appletalk instead which only allowed me to print Postscript. (I try to print text, as from BBedit and get an error message.)
Just this afternoon, however, I figured out how to connect to the printers using TCP/IP so I now have full use of the HP PPDs.
From the Print Center, select Add Printer and from the connection type pulldown list choose LPR Printers using IP. Enter the IP address (or IP printer name if it's registered) and uncheck the Use Default Queue on Server box. In the queue name field, enter in the name that you want to use for that printer. (Try not to use spaces. Use underscores instead.) Select the printer type from the pick list and click on Add. The printer will appear in your printer list and be ready to go.
My problem was that I was trying to use the default queue rather than setting up my own queue name. (Ironically, this came to me while teaching a group of students how to set up LPR printing in Windows.)