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

Using the terminal to quit a GUI program UNIX
[Editor's note: See the comments for the answer to the question.]

Does anybody know how to quit a GUI program through a telnet session? I can open GUI programs through telnet but can't figure out how to then quit that same program. PS won't show GUI programs so I can't KlLL them. Any help is appreciated.
  Post a comment  •  Comments (10)  
  • Currently 3.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[15,912 views] Email Article To a Friend View Printable Version
OS X arrives on March 24th! System
If you live in the States (at a minimum; I can't check other countries ;-), and you ordered OS X 1.0 (or whatever they're going to call it) through the Apple store, it appears you'll have your three CD collection on Saturday the 24th!

Over on the MacFixIt boards (where I've been hanging out while MacNN's boards are down), reader MacXO pointed out that his order status shows "FedEx Saturday Delivery"on the top of the screen. I checked mine, and it has the same shipment method. Seems pretty solid evidence of a Saturday morning FedEx visit! Now I just need to call the store and change my "Ship To"to the house instead of the office.

You might want to check your orders as well, if you often ship to work for weekday deliveries. I might be wrong, but I'd rather have it show up at home on Monday or Tuesday than at the office on Saturday!

NOTE: You may want to call 1-800-Go-FedEx and verify that you live in a Saturday delivery area before making this change. Just press "8" to speak to a representative, and then ask about Saturday delivery and provide your zip code.

UPDATE - 10:45am: I just spoke with the Apple store. The rep at first claimed that there was no way they could possibly have Saturday delivery, as Apple didn't have a contract for that service with FedEx. I told him that was what the web site reflected, and he offered to change my order to read UPS if it would make me feel better ... I respectfully declined :-). After changing my address, he noted (with apparent surprise) that it was coming up coded "FED-S" shipping, which did, in fact, indicate Saturday delivery ... his last words were "Well, you learn something new every day..." ;-).
  Post a comment  •  Comments (1)  
  • Currently 2.20 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[2,336 views] Email Article To a Friend View Printable Version
Help for new OS X users Install
Over on the MacNN boards they started one forum topic specific to new OS X users. You can read about things like partitioning, what is Aqua, where things are, what is the terminal, and more. However, the MacNN boards are currently being updated with new bulletin board software, and the thread is not available. But they were nice enough to move the thread to this mac.com page so that you can read it until the boards return. They have some good info, so check it out if you're new to the world of OS X!
  Post a comment  •  Comments (2)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[3,254 views] Email Article To a Friend View Printable Version
Graphically set the time System
If you do NOT use the network time option (which I always do, since it means never having to set the clock), you can use a unique method for setting the time under OS X.

Open the date and time prefs panel, and use the mouse to drag the hours and minutes hands where you want them ... this will set the clock! Pretty cool, and potentially useful if your machine is not connected to the internet on a regular basis.
  Post a comment  •  Comments (3)  
  • Currently 2.86 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (7 votes cast)
 
[2,864 views] Email Article To a Friend View Printable Version
Better disk usage information UNIX
The UNIX environment has two common commands for looking at disk usage - 'df' and 'du'. 'df' returns information about all mounted disks, and 'du' returns information about a given file or set of files. As installed in OS X, though, the 'df' and 'du' commands do not return easy to use information. For example, here's the 'df' output for one drive on my system:
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/disk0s9 3121344 1314624 1806720 42% /osxfiles
Wouldn't it be much nicer if you could have it output like this:
Filesystem            Size  Used Avail Use% Mounted on
/dev/disk0s9 3.0G 1.3G 1.7G 42% /osxfiles
Read the rest of this article if you'd like to learn how to create a more usable "df" (and other!) commands.

NOTE: I have packaged four of the more useful of these utilities (ls, dircolors (sets the colors for the new ls), df, and du) into one downloadable archive. These are pre-compiled, and you'll just need to expand the archive with OpenUp or the command line (or the new StuffIt Expander). Move the files into /usr/localbin, and they should be ready to go. I have NOT included the 'man' pages, since I wasn't sure how to do that - read the GNU online help for info on each command, or compile the whole package.
read more (514 words)   Post a comment  •  Comments (4)  
  • Currently 3.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[9,250 views] Email Article To a Friend View Printable Version
Show package contents in 9.1 System
Something strange happened when I upgraded to 9.1, in my OS X partition, all of the of the .app folders, show up as files now. if I control click on them, it shows the show package contents selection.

Sorta Strange? I didn't notice this fact on any of the recent posts.
  Post a comment  •  Comments (0)  
  • Currently 2.25 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[2,349 views] Email Article To a Friend View Printable Version
Setting file permissions on multiple files UNIX
Last night, as I began experimenting with possible successors to geeklog, one package (phpnuke) had an instruction step that read:

"Set all files to 666 permission; set all directories to 777." Although this is relatively trivial for multiple identical items (chmod 777 *), it's a bit trickier when files and directories are mixed in the structure, with sub-directories and sub-files, and different settings for directories and files. The phpnuke package installs literally hundreds of files, and probably 25-50 subdirectories. I was reduced to mass changing everything in a folder (chmod 666 *), and then setting the directories by hand. It took a while!

I was sure there was an easier way, but had no idea what that way might be. A post to the MacNN forums provided the answer, courtesy of "Icampbell":
find . -type f | xargs chmod 666
find . -type d | xargs chmod 777
This does exactly what I needed it to do. 'xargs' is an interesting command, and well worth reading up on ('man xargs'). It basically executes the command specified (chmod in this case) for each item passed to it (the results of the 'find' command, routed via the pipe '|' symbol). It's fairly easy to see how powerful xargs can be, given its ability to act on a series of things passed to it. One note of caution in this example - the 'find' command will search down through the directory structure from where you start, so make sure you want to effect EVERYTHING in that path if you try something along these lines!
  Post a comment  •  Comments (5)  
  • Currently 4.20 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[19,584 views] Email Article To a Friend View Printable Version
Identifying files in the terminal UNIX
Ever visited one of those sites that downloads a file with a Javascript or some other active method, and you wind up with a file named "download.asp" or "file.asp"? Ever wonder how to figure out what it is, without trying to drag-and-drop it on everything?

In the terminal, it's quite simple - you can use the file command, like this:
[xperiment:~/Documents/downloads] berto% file download.php
download.php: gzip compressed data, deflated,
last modified: Fri Feb 23 18:17:34 2001, os: Unix
(Line break added to shorten the line width!) The file command looks at the file, and compares it to a database of types, and then gives you its best guess at the filetype.

In this real-world example, I couldn't figure out how to expand the file ... the file output lets me know I need to use gzip! For full information on file, make sure you check out the manual pages by typing man file in the terminal window.
  Post a comment  •  Comments (1)  
  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,320 views] Email Article To a Friend View Printable Version
Spaces in file and directory names UNIX
bullroarer asks:

"How do I perform Terminal commands on any items on my Mac that have spaces in their pathnames? Because Finder allows spaces in file and directory names, I'm often creating such with spaces but then if I try to cd to one in the Terminal the space kills the command. How is this done?"

There are three ways that I know of to handle this. They are:
  1. Drag-and-drop the file or directory onto the terminal; this will preserve the spaces.

  2. Enclose the path name in single quotes, like this:
    cd '/Users/username/temp/directory with spaces'
  3. Quote the space character with a backslash, like this:
    cd /Users/username/temp/directory\ with\ spaces
Any of these will allow you to easily navigate files and directories with spaces in their names.
  Post a comment  •  Comments (4)  
  • Currently 2.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[39,216 views] Email Article To a Friend View Printable Version
Desktop picture in PB? Desktop
Here's a weird one. Tonight I tried (for the first time) to change the desktop picture. In the Dock & Desktop Prefences panel, I see a blank square under the "Desktop Picture:" header. It doesn't show the current, default one. I really want to change it to a basic pattern to try and accelerate the graphic speed of the old G3 machine OS X PB is on. Is this possible or do I have to select an image, and why don't I see the current image? Also, where is that image?
  Post a comment  •  Comments (2)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[2,655 views] Email Article To a Friend View Printable Version