For example, I run: php -S localhost: 8080, that's it, the console is busy, you need to open a new one. But, there is a team that will allow you to continue working in the same window.

3 answers 3

If the process is already running, and you need the same console, you can put the process to sleep with Ctrl-Z , and then resume it in the background (background) with the bg command.

  • I did not immediately understand how this works. But this is the command that I once saw in one article that I forgot and decided to ask here! - Skit

You can use & - translates the process into background :

 $ php -S localhost:8080 & 

You can use screen :

 $ screen new_screen> php -S localhost:8080 нажатие одновременно CTRL+A+D - возвращает нас в родительскую консоль $ screen -r - обратное подключение к созданному screen-у 

Additional Information :

    For such cases, there is tmux. tmux new we create session, tmux attach switch.

    • one
      You can just tmux . - don Rumata