Posts Tagged ‘Mac OS X’

Capture Unix top command output into a file

Wednesday, November 21st, 2007

Firstly, you need to make sure that your top command does not redisplay the output. This is what you do on Linux and Mac OS:

Linux:

$ top -b -n 1

Mac OS X:

$ top -l 1

(Note that the first sample displayed will have an invalid %CPU displayed for each process, as it is calculated using the delta between samples. (from the top manual))

You can use a standart Unix command in order to save the details to a file:

$ top -b -n 1 > my_top_report.txt

All application windows from all Spaces on your Mac Leopard screen

Monday, November 19th, 2007

Those of you who had pleasure to work on Mac OS X Tiger must have come across an Expose’s F9 keyboard shortcut that basically displays thumbnails of all the open windows on your desktop. Now, on Mac OS X Leopard you have a new application called Spaces that manages your virtual desktops and if you want to see all your “spaces”, you just hit F8. But what if you want to be able to see all the windows from ALL of your virtual desktops? Just hit F8 and then F9 and… that’s it :-)