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 trialJiaming Zhang
10,170 PointsHow 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
ixrevo
32,051 PointsHi 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:
- Start a tail process: tailf -f some_file.txt
- Then press ctrl+z:
[1]+ Stopped tail -f front-page.php
- Then you can see the list of process running in the background
jobs -l
- To return the process to the foreground:
fg 1
where 1 is a number of process fromjobs -l
list.
Jiaming Zhang
10,170 PointsI realized that afterward.
I think the command (ctrl +d) simply does not work for nano but works for other programs.