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 trialColin Lewis
9,021 Pointsctrl-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
9,021 Pointsyes, 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.
natashalovesmith
19,360 PointsCmd + z for Macs = Ctrl + z for PCs
Adam Tatusko
16,589 PointsI 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?
natashalovesmith
19,360 PointsYes I was going to say on a Mac, the PC Ctrl key is the same as the command key on the Mac.
Adam Tatusko
16,589 PointsTrue. However, for the iTerm terminal program on a Mac, all commands are performed using Ctrl + ?, where ? is a given letter.
Julie Kohler
6,122 PointsWhat 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.
Turner Kilgore
3,009 PointsTurner Kilgore
3,009 PointsFor anyone else looking, the .nanorc file referred to above is created in $HOME