Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Console Foundations Processes Killing Processes

How do you pause a process in Mac Terminal

I know that you can pause a process by using "ctrl + z" in Linux console but it does not work in Mac Terminal. Any ideas? Thanks in advance!

2 Answers

Hi Jiaming!

What kind of process do you try to stop?

I've tried to stop the tail process on my Mac in Terminal app and it worked:

  1. Start a tail process: tailf -f some_file.txt
  2. Then press ctrl+z: [1]+ Stopped tail -f front-page.php
  3. Then you can see the list of process running in the background jobs -l
  4. To return the process to the foreground: fg 1 where 1 is a number of process from jobs -l list.

I realized that afterward.

I think the command (ctrl +d) simply does not work for nano but works for other programs.