Site TIPS PAGE🔎 SEARCH  Ξ INDEX  MAIN MENU  UP ONE LEVEL
 OJB's Web Site. Version 2.4. Mac Tip.Location: tip103 tips mac owen2 
Tip

Discuss   Up to OJB's Mac Tips List

Terminal: Fixing a Hang

Sometimes your Mac might stop responding to the mouse or keyboard or only respond slowly. For example, it might take a long time for a program to launch, menus or windows might re-draw slowly, or things might seem to completely stop. Unless you see the kernel panic screen, telling you to restart, the system hasn't really crashed so you could try some of the techniques mentioned here.

Try to launch the terminal. Even if the machine is slow, be patient. Display the processes using most of the CPU by using "top -u 10". After a few seconds it should be obvious which process is "hogging" the CPU. Make a note of its process number (the first number in the PID column) and its name (second column).

If the process is a program you are running and the program isn't doing something that is really CPU intensive (for example, calculating stats for a couple of million numbers or something) try quitting it normally. If it won't respond try command-option-escape and force quit it. If this doesn't work try the kill command in the terminal. Try "kill -9 x", where x is the process ID number you found above.

If the machine is so unresponsive that you can't run terminal you could try checking it over the network (or Internet) from another computer. The remote login must be already set up on the problem machine for this to work. See the Remote Secure Login tip in this area for details. Use "ssh name@computer" from a working computer, where "name" is the short name of the administrator of the problem machine and "computer" is the domain name or IP address of the problem machine. Enter the administrator's password then use the commands in the tips section here ("top" and "kill") to terminate the problem process.

When you figure out which process is causing the problem you should try to fix the error. If the process is network related (eg inetd) there might be something happening on your network (a packet storm or denial of service attack, for example). If the process is a driver (for example for a scanner) you might want to check connections, update the driver, or use the device without a driver, if possible.

Related Tips

Terminal Example: Listing Files
Terminal Example: Shell Script
Terminal Tips: Deleting Files
Terminal: Change Priority
Terminal: Changing Privileges
Terminal: Listing Directory
Terminal: Manual and Help
Terminal: Remote Secure Login
Terminal: Terminate a Process
Terminal: Top Processes





I usually write a blog post about once a week. The latest post can be viewed here: Think for Yourself: In the end, everything is just an opinion. Be skeptical, and think for yourself! (posted 2026-04-25 at 21:12:02). Or go to the Home Page of My Blog to choose a post to view.

I do podcasts too! You can listen to my latest podcast, here: OJB's Podcast 2026-04-14 How Far is that Star?: How would we really know how big the universe is? Or subscribe to my podcast RSS feed, on my RSS Feeds page.

If you're not sure what to view from the thousands of pages on my site, here are some suggestions: My Latest Airshow Report (photos and movies from Warbirds Over Wanaka, 2026), My Favourite Wines and Beers (tasting notes for some of my favourites), An Interesting Astronomical Observation (learn a bit about astronomy from these observing notes), See Some Photos (A short rail journey through the Taieri Gorge), Read Some Mac Tips (Learn about how to use your Mac, and fix some problems).


Latest Site News and Notifications (Desktop): You are currently viewing OJB's web site, version 2.4 which has some major changes, and possibly errors! Please report any problems to ojb@mac.com.

 Site ©2026 by OJBOJB's BlogWhy Macs are BestMade & Served on Mac 
Site Features: Blog RSS Feeds Podcasts Feedback Log07 Jun 2024. Hits: 1,001,140,779
Description: Mac TipLogged: 216.73.217.32Load Timer: 181ms