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

Filipe Pacheco
seal-mask
.a{fill-rule:evenodd;}techdegree
Filipe Pacheco
Full Stack JavaScript Techdegree Student 21,416 Points

Creating a new tab or window.

Why would I have o go through all this ctr+z and fg to stop and restart a job, if I can just create a new tab or window to work on a new job and just switch between them?

1 Answer

Jonathan Lau
Jonathan Lau
5,647 Points

Depends on the use case.

For example: At work, I'll sometimes need to open the software GUI before I can run command line inputs for the GUI itself. The reason for doing this is to run batch commands. In this case, the CLI need to be in the same terminal as the one used to invoke the GUI. I would personally just open the GUI with a trailing & so it automatically runs in the background, but that's personal preference. It would be the same as doing CTRL+Z and fg as you mentioned.