An Introduction to Tiger Terminal
Pages: 1, 2, 3
Animate Your Desktop and Then kill It
Here's a fun trick to do with the Terminal that affects the GUI--the famous animated-desktop trick. In this Terminal hack, you can change your desktop from a static picture to an animation. Along the way, we'll learn a trick to save on long typing (and typos).
Go to the Finder and then to the Screen Saver preferences pane. Select an animated screen saver; the new RSS Visualizer included in Tiger is a good choice for this exercise. Mine is set for Slashdot RSS. (Did my latest review get accepted yet?)
Now, you have a couple of choices. You can type in this loooong command:
tigerbeta:~ tigerbeta1$ /System/Library/Frameworks/
ScreenSaver.framework/Resources/ScreenSaverEngine.app/
Contents/MacOS/ScreenSaverEngine -background
Note: There is one space before the -background (dash background). There are no other spaces in the entire command line.
or you can copy and paste the above command (cheater);
or you can use the Finder for a little help:
Open a new Terminal window.
Go back to the Finder and follow the path above up to ScreenSaverEngine.app.
Drag this app to your open Terminal window and drop it at your waiting command-line prompt.
Type (or copy/paste) in the last bit:
/Contents/MacOS/ScreenSaverEngine -backgroundHit
Enter.Hit
F11and look at your desktop!
One caveat is that this takes up a huge amount of processing power. Open a new Terminal window and type top and hit the Enter key. top gives a dynamic display of every program and background operation currently running by descending PID (Process ID) order. You'll see that the screensaver app is taking at least 10 percent of your system's attention.
To end the process, go back to the Terminal, where the desktop animation is still executing, and hit Control-C (^C). If the app turns psycho and won't quit, you can kill it using top and the Terminal. In the example below, the PID of the screensaver app is 223:

To kill the offending application is the equivalent of using the Force Quit command in the Finder:
tigerbeta:~ tigerbeta1$ kill 223
tigerbeta:~ tigerbeta1$
If the process still won't quite, enter kill -9 PID (the -9 signal means "non-ignorable" or "I really mean it!"):
tigerbeta:~ tigerbeta1$ kill -9 223
tigerbeta:~ tigerbeta1$
Empty the Trash
A common problem many users experience at one time or another is a file stuck in the trash that can't be deleted. An easy fix is to use the Terminal:
tigerbeta:~ tigerbeta1$ sudo chflags nouchg ~/.Trash/*
Password:
tigerbeta:~ tigerbeta1$
The nouchg option to the chflag command ("change file flags") unlocks the file. The nouchg keyword is actually the word no in front of the uchg option ("set the user immutable flag") so no turns the option off. You should now be able to delete everything in the Trash normally.
Conclusion
There are many things the Finder is good at and certainly for many users, a trip to the Terminal is a scary prospect. But I hope this article introduces some useful (and fun!) things the Terminal can do for you that give you some courage to try out more advanced commands.
|
Related Reading Mac OS X: The Missing Manual |
Mary Norbury-Glaser is the IT director at a University of Colorado affiliate center. She has over 15 years of experience in cross-platform systems administration in the education sector. She loves fast cars and geocaching.
Return to MacDevCenter.com.
-
Problems
2007-03-01 12:29:59 helgers7 [View]
-
Problems
2007-03-01 17:30:34 norburym [View]
-
File names that contain spaces
2007-01-07 18:17:41 DMendoza [View]
-
Found the answer in Tutorial 2
2007-01-07 21:56:15 DMendoza [View]
-
Found the answer in Tutorial 2
2007-01-08 09:43:21 norburym [View]
-
Escape from 'man' pages
2006-12-07 19:37:53 josephjames [View]
-
Escape from 'man' pages
2006-12-08 08:29:00 norburym [View]
-
a tiny help.I am confussed
2006-09-08 16:05:51 Hellmuthchileno [View]
-
a tiny help.I am confussed
2006-09-17 19:04:49 norburym [View]
-
Terminal problems
2006-03-02 00:24:12 Mystefier [View]
-
Terminal problems
2006-03-02 17:57:58 norburym [View]
-
repairPermissions
2005-11-18 11:01:29 bfurlong [View]
-
adding lines to a file
2005-09-11 15:49:57 alcamino [View]
-
adding lines to a file
2005-10-18 22:24:39 haalandkramer [View]
-
adding lines to a file
2005-09-11 17:39:50 norburym [View]
-
Terminal keys
2005-08-31 01:35:32 Scotties [View]
-
Terminal keys
2005-08-31 09:12:03 norburym [View]
- Trackback from http://radio.weblogs.com/0142035/2005/07/20.html#a373
An Introduction to Tiger Terminal
2005-07-20 13:58:16 [View]
-
Tiger Terminal
2005-07-15 09:43:42 manuelderieux [View]
-
Tiger Terminal
2005-08-14 09:02:54 quicklazydog [View]
-
Tiger Terminal
2005-08-14 09:37:34 norburym [View]
-
Password screen saver
2005-06-20 21:06:47 jamesreynolds [View]
-
Password screen saver
2005-07-06 22:42:31 Qo'noS [View]
-
Password screen saver
2005-07-06 23:13:51 Qo'noS [View]
-
Can I control system pref's from terminal?
2005-06-15 07:39:31 mr.nice [View]
-
Can I control system pref's from terminal?
2005-06-15 17:34:23 norburym [View]
-
Cool
2005-06-05 14:23:33 Coolnat2004 [View]
-
Nitpick about rm
2005-05-28 13:05:16 bonze [View]
-
DVD on Desktop?
2005-05-28 07:55:41 harttj [View]
-
Tiger Terminal
2005-05-28 07:49:01 harttj [View]
-
rethink your title
2005-05-27 19:21:41 bammi [View]
-
rethink your title
2005-05-28 07:52:07 norburym [View]
-
ScreenSaver Trick
2005-05-25 10:03:10 BenHur [View]
-
Rotating Backgrounds, oh my!
2005-05-22 20:36:23 mori57 [View]
-
Rotating Backgrounds, oh my!
2005-05-23 17:23:48 norburym [View]
-
tiger Terminal
2005-05-22 00:41:05 MurrayBoyd [View]
-
tiger Terminal
2005-05-24 06:25:03 msporleder [View]
- Trackback from http://www.ogadei.com/node/using-mac-os-x-tiger-terminal/782
Using Mac OS X Tiger Terminal
2005-05-21 19:12:35 [View]
-
terminal.app
2005-05-21 06:35:33 msporleder [View]
- Trackback from http://seanco.homeip.net/?p=101
MacDevCenter.com: An Introduction to Tiger Terminal
2005-05-20 22:02:51 [View]


