Saturday, January 30, 2010

Show/Hide System Files

toolsI had a post in 2008 about "Show/Hide Hidden Files". Here I found another tool which contains this feature as well: TinkerTool, which is free as well. It has the same with to enable/disable "Show hidden and system files" in Finder tab and a button to relaunch Finder.



Most Mac tool applications actually have some scripts behind it. Quickly, I found out that there is a setting to make Finder to display system files: AppleShowAllFiles in com.apple.Finder default settings. This can be verified in a Terminal:

[MyMac]~ [user]$ defaults read com.apple.Finder | grep Apple
    AppleShowAllFiles = 0;


The default setting value is 0, which means disabling Show hidden and system files. To set this enabled, type the following command:

[MyMac]~ [user]$ defaults write com.apple.Finder AppleShowAllFiles 1


To verify its value, you may use alternative way to read value:

[MyMac]~ [user]$ defaults read com.apple.Finder AppleShowAllFiles
1


The Finder would not immediately be able to show hidden files. It has to be relaunched. One way to launch it is to Force Quit from Apple menu:



The short-cut key for this Command+Option+esc, then select Finder to relaunch it. The above snap-shot actually shows the wrong keys when I tried to take a snap of this menu by using Command+shift+4 key. The Force Quit... becomes Force Quit Finder with extra key shift. Manu shortcut keys are very handy. This Apple support web page lists Mac shortcut keys.

To relaunch Finder in command scripts, you can use ps and grep to find the current Finder process id,

[MyMac]~ [user]$ ps -ax | grep Finder
2357 ??     0:00.21 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder


and then use Kill and Open to relaunch it (your Finder process id may be different):

[MyMac]~ [user]$ kill 2357 && open /System/Library/CoreServices/Finder.app


Notice, the application Finder is within the Finder.app package, and you just need to use package to launch it.

Tuesday, January 19, 2010

Security Update 2010-001 1.0

New update is available today: security update 2010-001 version 1.0. Reboot is required after the update.

Here is the space comparison between before and after the updates:
Command: df -lakUsed(Kilobytes in 1024-blocks)
Before ...644,908
After...389,384
Difference (A-B)-255,524

Thursday, January 14, 2010

New Updates: RDC and Bonjour

Just came back from China for my visit trip: Vancouver, Beijing, Wuhan, back to Beijing, and finally transit from Vancouver back to Calgary, from Dec 25 to Jan 13. The first thing I checked when I got back was to find out if there are any updates. Not sure if my wife has done any updates during my away, but I found two minor updates last night: Remote Desktop Client Update 3.3.2 and Bonjour Update 2010-001 1.0.



No reboot was required for those updates.

Here is the space comparison between before and after the updates:
Command: df -lakUsed(Kilobytes in 1024-blocks)
Before ...37,572
After...59,372
Difference (A-B)21,800


By the way, during my time in China, the Blogger web site was not accessible. I could not write any blog. The only blog I can access was WordPress, my alternative blog. I did not write any blog on Mac since there was no Mac available around my environment. The only computer was PC with Windows XP. The internet was very slow. Not sure if it was IPS issue or virus issue. I missed my Mac so much.