Top Ten Mac OS X Tips for Unix Geeks
Pages: 1, 2
5. Different Kinds of Hidden Files
As with other Unix flavors, you can make a file invisible by prefixing its name with a ., as in /.vol. This has the effect of making it invisible in the Finder, as well as when you issue an ls without the -a option.
Mac OS X also uses a file in the root directory (.hidden) to maintain a list of files that should be hidden from the Finder.
Also, HFS+ (the filesystem used by Mac OS) files and directories can have a hidden attribute set using the SetFile command, as in SetFile -a V SomeFile. (The SetFile command is available in /Developer/Tools after you install the Mac OS X Developer Tools package described in the sidebar.) This setting won't take effect until you relaunch the Finder. You can log out and log in again or use the Force Quit option from the Apple menu. You can turn off the invisible bit with SetFile -a v SomeFile. See the manpage for SetFile for more details. (Note that invisible files are only invisible from the Finder; you can still see them with ls.)
6. Aliases and Links
There are two ways to create links to files. The first is to select the file in the Finder, and drag it to a new location while holding down the Option and Command keys (or select Make Alias from the File menu). This creates a Mac OS alias that Cocoa, Carbon, and Classic applications can follow. However, Unix applications will ignore those links, seeing them as zero-byte files.
You can also create a link with ln or ln -s. If you use this kind of link, Unix, Cocoa, Carbon, and Classic applications will happily follow it.
7. X11
Mac OS X does not come with the X Window System. For native applications, it uses an advanced graphics system called Aqua. But if you want to run X11 applications, you're in luck: Apple has its own X11 implementation with nice Aqua integration, and there is an installer for it on your Mac OS X installation CD-ROM or DVD. If it wasn't installed by default, run the Optional Installs package on your install disc. You'll be able to run X11 applications side-by-side with Mac OS X applications, and they'll look great.
8. Fink
Are there some Unix or Linux applications that you're missing? Check out the Fink project, which modifies open source applications so they'll compile and run on Mac OS X. Fink already includes an impressive array of applications, and more are on the way.
|
Related Reading Mac OS X for Unix Geeks |
9. /etc is Not Always in Charge
If you've come to Mac OS X from another Unix, you may expect that you can add users and groups to the /etc/passwd and /etc/group files. By default, Mac OS X only uses these file in single-user mode. If you want to add a user or group, it will need to go into the Directory Services database, a repository of local directory information. For more information, see this ADC article,Open Directory and the dscl Tool.
10. Shutdown Doesn't Really
For a long time, Mac OS X couldn't execute custom actions at shutdown. The SystemStarter framework (which predates launchd) can perform custom shutdown actions when the system is shutting down. For more information, see "Start Me Up: Writing and Understanding OS X StartupItems" (the ADC launchd article mentions that services that need an explicit shutdown procedure will need the old SystemStarter framework).
In September 2002, O'Reilly Media released Mac OS X for Unix Geeks.
Brian Jepson is an O'Reilly editor, programmer, and co-author of Mac OS X Panther for Unix Geeks and Learning Unix for Mac OS X Panther. He's also a volunteer system administrator and all-around geek for AS220, a non-profit arts center in Providence, Rhode Island. AS220 gives Rhode Island artists uncensored and unjuried forums for their work. These forums include galleries, performance space, and publications. Brian sees to it that technology, especially free software, supports that mission. You can follow Brian's blog here.
Return to MacDevCenter.com.
-
Shameless Plug
2008-05-07 23:15:19 BlkDragon96 [View]
-
Shameless Plug
2008-05-07 23:15:06 BlkDragon96 [View]
-
MacPorts packages
2007-05-27 22:46:45 jyrkiwahlstedt [View]
-
X11 on OSX
2007-05-19 18:46:34 interprocess [View]
-
-rsrc
2005-05-09 14:05:38 rlrueter [View]
-
Trouble getting startup service to work
2005-04-26 22:49:39 ed_ruder [View]
-
Trouble getting startup service to work
2005-04-27 22:07:35 ed_ruder [View]
-
Oracle
2005-01-28 13:31:30 jdacosta [View]
-
Oracle on OSX
2005-09-09 11:07:14 johndouglas [View]
-
Laptops are Useless for Unix?
2005-01-22 15:24:15 lightandshadow [View]
- Trackback from http://kr.blog.yahoo.com/dongwoohan/407204.html
Top Ten Mac OS X Tips for Unix Geeks
2004-05-16 06:52:33 [View]
- Trackback from http://kr.blog.yahoo.com/dongwoohan/407203.html
Top Ten Mac OS X Tips for Unix Geeks
2004-05-16 06:52:32 [View]
- Trackback from http://kr.blog.yahoo.com/dongwoohan/407201.html
Top Ten Mac OS X Tips for Unix Geeks
2004-05-16 06:52:31 [View]
- Trackback from http://kr.blog.yahoo.com/dongwoohan/407200.html
Top Ten Mac OS X Tips for Unix Geeks
2004-05-16 06:52:30 [View]
- Trackback from http://intranet.redspring.com/itkb/archives/000206.html
Mac OS X for Unix geeks tips
2004-05-07 06:58:01 [View]
-
will not spend $1 for the book.
2003-10-09 15:59:33 anonymous2 [View]
-
will not spend $1 for the book.
2007-05-17 06:54:21 Jeremiah Foster |
[View]
-
will not spend $1 for the book.
2003-12-10 19:54:22 anonymous2 [View]
-
will not spend $1 for the book.
2007-05-16 15:03:16 bioinfotools [View]
-
Cool Article
2003-06-12 13:34:30 anonymous2 [View]
-
Cool Article
2007-05-16 15:06:28 bioinfotools [View]
-
Emacs: Meta-Control, how to do it in Terminal?
2003-02-14 05:26:37 anonymous2 [View]
-
Emacs: Meta-Control, how to do it in Terminal?
2005-12-29 05:58:31 Trondtr [View]
-
Some minor omissions
2003-02-11 15:05:36 anonymous2 [View]
-
vi keybindings for tcsh
2003-02-04 15:58:31 anonymous2 [View]
-
I bought the book and have a question...
2003-01-02 09:12:15 anonymous2 [View]
-
OS X VNC (was: I bought the book and have a question...)
2003-01-09 14:05:29 Brian Jepson |
[View]
-
Item #2
2002-11-24 18:46:15 anonymous2 [View]
-
StartupItems HOW-TO Article
2002-11-16 10:52:18 timct [View]
-
Great Story
2002-11-03 04:39:39 anonymous2 [View]
-
Copying Files
2002-11-02 12:18:09 anonymous2 [View]
-
Copying Files
2003-06-06 10:32:21 anonymous2 [View]
-
Re: Apple Laptop Keyboards Unsuitable for Unix Users
2002-10-29 10:02:35 anonymous2 [View]
-
Re: Apple Laptop Keyboards Unsuitable for Unix Users
2007-05-29 00:18:43 JoeCarroll [View]
-
Aliases & Links
2002-10-28 15:38:42 anonymous2 [View]
-
Aliases & Links
2007-05-16 16:05:28 johnrussell13 [View]
-
Re: Apple Laptop Keyboards Unsuitable for Unix Users
2002-10-27 10:26:29 anonymous2 [View]
-
Cashcow
2002-10-26 12:51:22 anonymous2 [View]
-
Cashcow
2002-11-03 15:38:53 sam_wise [View]
-
alternative to fink
2002-10-26 09:00:18 anonymous2 [View]
-
su
2002-10-25 19:00:51 anonymous2 [View]
-
Apple Laptop Keyboards Unsuitable for Unix Users
2002-10-25 18:13:22 anonymous2 [View]
-
Apple Laptop Keyboards Unsuitable for Unix Users
2005-09-18 00:58:28 petienne [View]
-
Apple Laptop Keyboards Unsuitable for Unix Users
2004-11-28 06:58:34 23degrees [View]
-
Apple Laptop Keyboards Unsuitable for Unix Users
2003-10-26 22:29:14 anonymous2 [View]
-
Apple Laptop Keyboards Unsuitable for Unix Users
2003-11-18 07:23:36 anonymous2 [View]
-
Apple Laptop Keyboards Unsuitable for Unix Users
2003-09-28 09:26:34 anonymous2 [View]
-
Apple Laptop Keyboards Unsuitable for Unix Users
2003-06-06 10:49:23 anonymous2 [View]
-
Apple Laptop Keyboards Unsuitable for Unix Users
2002-11-05 21:17:13 mstillwell [View]
-
Aqua...
2002-10-25 16:49:31 anonymous2 [View]
-
Table Corrections
2002-10-25 15:49:09 Brian Jepson |
[View]
-
sudo and su pitfall (re #2)
2002-10-25 15:47:05 anonymous2 [View]
-
#9
2002-10-25 14:38:35 anonymous2 [View]
-
Log in as root
2002-10-23 19:22:56 anonymous2 [View]
-
Solution for #10
2002-10-23 12:56:16 lshastings [View]
-
Type a URL with "open" in terminal opens the browser
2002-10-23 12:37:05 anonymous2 [View]
-
Item #5
2002-10-23 11:59:30 Jason Deraleau |
[View]
-
Drag And Drop in the Terminal
2002-10-23 08:30:32 eccentricanomaly [View]
-
Drag And Drop in the Terminal
2007-05-16 15:22:47 bioinfotools [View]
-
Additional option for #2
2002-10-23 07:58:40 anonymous2 [View]
-
(More) emacs-like keybindings
2002-10-23 00:36:14 mstillwell [View]
-
A few corrections/comments
2002-10-22 17:49:12 anonymous2 [View]
-
A few corrections/comments
2002-10-22 17:58:09 Brian Jepson |
[View]
-
A few corrections/comments
2007-04-11 23:38:58 Cordial_Camaraderie [View]


