I'll just jump straight to it. Sometimes, your app needs a lot of commands running.
react-native start, running gulpfiles and gruntfiles and webpacks and whatever other new JS build systems there are, and you've got your test suite running and there's some CSS pre-processing and..
The list goes on. You're probably running a lot of commands that just need to.. run, and sometimes you'll need to check their output.
Does that mean you need a million terminal windows open? No. You just need one, and a terminal multiplexer.
tmux is the tool you need. It allows you to do all sorts of things in a single shell. We'll cover the absolute basics here, but there's a lot more to know:
- To start,
Ctrl-btakes you into the command mode. The next bullet points all require you to be in command mode.
ccreates a new window
ntakes you to the next window
ptakes you to the previous window
&deletes the current window
In each window, you can have a command running (you can actually run more, but you need to know more about tmux). You can only view one window at a time and you use the commands above to cycle through them.
That's all for now!