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 Pausing and Resuming

Colin Lewis
Colin Lewis
9,021 Points

ctrl-z not working

when I try to use ctrl-z to pause a job in my mac terminal nothing happens, I even tried it in iTerm, still nothing.

5 Answers

Colin Lewis
Colin Lewis
9,021 Points

yes, I figured it out, nano was not set up to allow for suspend, I had to create a .nanorc file and add "set suspend" and now it is fine.

Turner Kilgore
Turner Kilgore
3,009 Points

For anyone else looking, the .nanorc file referred to above is created in $HOME

Cmd + z for Macs = Ctrl + z for PCs

I just tried this on my Mac using iTerm while top was running and it works perfectly. Are you sure you are using control+z and not command+z?

Yes I was going to say on a Mac, the PC Ctrl key is the same as the command key on the Mac.

True. However, for the iTerm terminal program on a Mac, all commands are performed using Ctrl + ?, where ? is a given letter.

Julie Kohler
Julie Kohler
6,122 Points

What worked for me on my Mac was to first use cmd + Z, which caused "suspension enabled" to come up at the bottom of Nano, AND THEN ctrl + z. Apparently both steps were needed.