Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

OS X and scheduled tasks UNIX
When you first install OS X, it won't have all the UNIX commands available. Specifically, "whatis," "man -k," and "locate," all of which are useful for beginners (like me!) will not be there.

Respectively, "whatis" provides a one-line description of a command, "man -k [keyword]" finds all instances of [keyword] in the manual pages, and "locate [fname]" shows you where [fname] is in the directory structure.

A cron (UNIX scheduler program) task needs to be run to create these databases. Unfortunately, it won't run until the end of the first week, assuming you leave your machine on the whole time.

You can force an immediate update, though, by following these steps from a terminal session:
su root
cd /usr/libexec
./makewhatis {-- takes a few seconds to run --}
./locate.updatedb {-- takes up to a few minutes to run --}

The above commands will now work as expected.
  Post a comment  •  Comments (4)  
  • Currently 1.71 / 5
  You rated: 1 / 5 (17 votes cast)
[28,715 views]  View Printable Version
How to make AirPort work under OS X System
See this thread on the MacNN forums for all the details...
  Post a comment  •  Comments (2)  
  • Currently 1.52 / 5
  You rated: 1 / 5 (21 votes cast)
[11,394 views]  View Printable Version
WebDAV folders under OS X Internet
WebDAV folders allow you to manage your webserver by looking at familiar folders, instead of via an FTP client. Now you can drag and drop updates to your webserver very easily.

Here's a great tutorial on how to make them work:

[This link no longer works, but the comment to this article contains a link to information that does work in 10.2 and newer...]
read more (8 words)   Post a comment  •  Comments (3)  
  • Currently 1.47 / 5
  You rated: 1 / 5 (17 votes cast)
[19,945 views]  View Printable Version
Quickly find any text string in any set of files UNIX
To quickly find any text string within any text file, try this from a terminal window:
grep -l  [text to find] [files to look in]
For example, grep -l 123abc *.html will list the name of any file in the current directory that ends in .html and contains the string 123abc.

(That's a lower-case-L following the GREP)

Quite powerful, and fairly fast. Now, if you have some spare time, and want to see what it can really do, try this:
su root
cd /
grep -lr "text to find" *
This will tell the OS to find the "text to find" in every file in every directory, all the way down through the tree. The -r flag tells grep to recursively search directories.

Of course, OS X has something like 26,000 files, so this can take a very long time!
  Post a comment  •  Comments (3)  
  • Currently 1.68 / 5
  You rated: 2 / 5 (22 votes cast)
[86,673 views]  View Printable Version
Welcome to Mac OS X Hints! Site News
Welcome to the Mac OS X Hints site. Please see the About page for a bit of background on the site and its purpose.

Please post relevant tips only. There are other sites that do a much better job on other aspects of OS X, such as troubleshooting, discussion forums, and the latest applications (visit the "OS X Web Sites" link in the top bar section for a list). The only non-tips that will be published are "Help Me" requests, and those will be the exception to the norm.

I've posted a few of the more useful tips I've garnered during my use of the beta. Please feel free to add yours to the list, and help the community grow!

You can post hints without registering (registering gives you customization and editing options; see the About page if you're concerned about privacy), but you will have to register to post comments.

NOTE: Submitted articles go into a pending queue, which I will review and publish as often as possible during the day. As the site grows, additional volunteers will be sought to help speed the review and publish process.
  Post a comment  •  Comments (13)  
  • Currently 1.87 / 5
  You rated: 1 / 5 (23 votes cast)
[25,179 views]  View Printable Version