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

How to learn UNIX UNIX
So what do you do if you're a totally UNIX newbie (as I basically was two months ago; now I'm just a completely inexperienced UNIX user!).

Herre are a few online resources that I've used with varying degrees of success:

Univ. of Indiana UNIX training
Good info, some outdated links, some U of Indiana specific info. UNIX training
Designed for newbies, with a focus on the security aspects of UNIX.

Yahoo FreeBSD
Yahoo's FreeBSD (BSD is the core UNIX below OS X) category listing, including a selection of tutorials.

Note that none of the above are specific to UNIX under OS X, and may contain incorrect information, especially on more advanced topics. All, however, contain info on the basics of surviving in UNIX.

Offline, I've been using a book called Teach youself UNIX in 24 hours by Dave Taylor and James Armstrong. It's organized into 24 one hour lessons, and covers everything from the basics up through shell scripts and a bit of perl.
  Post a comment  •  Comments (0)  
  • Currently 1.55 / 5
  You rated: 1 / 5 (11 votes cast)
[9,636 views]  View Printable Version
Apache server speedup UNIX
The following Apple TIL (Tech Info Library) article refers to Apache under OS X Server, but I would think (my opinion only!) that it would also apply to the PB. The article mentions that the location of the Documents folder affect the speed of the server. For maximum speed, it recommends storing the Documents folder at the root level of the hard drive, since path name resolution slows the server down.

It also discusses security and issues with memory management when restarting the server.

The TIL can be found right here.
  Post a comment  •  Comments (0)  
  • Currently 1.55 / 5
  You rated: 2 / 5 (11 votes cast)
[6,285 views]  View Printable Version
Lynx browser on OS X? UNIX has provided instructions on how to compile lynx, an excellent text-mode web browser.

From a terminal, try this:
tar zxvf lynx2.8.3.tar.gz
cd lynx2-8-3
cp /usr/libexec/config.guess .
make install

No guarantees, as I haven't tried this myself yet!

NOTE: You will have to have the compiler installed for this to work!
The compiler is available from Apple, and MacAddict has published a nice tutorial on how to install it. Again, I have not yet tried this myself (too much of a UNIX neophyte!).

SECOND NOTE: See the new tip on the 'links' text browser, posted 11/15/2000, for an alternative to lynx.
  Post a comment  •  Comments (10)  
  • Currently 1.53 / 5
  You rated: 3 / 5 (19 votes cast)
[31,983 views]  View Printable Version
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,648 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)
[84,927 views]  View Printable Version