Screen is a terminal multiplexer, which allows a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session. Sometimes you need to run a rake task or something else which keep on producing logs and you want to keep it running even you close your terminal.
1. Install Screen
sudo apt-get install screen screen-profiles screen-profiles-extras
1. Install Screen
sudo apt-get install screen screen-profiles screen-profiles-extras
2. Create Screen
screen -S name_of_screen
Run your Task in this screen.
3. Detach Screen
ctlr + a then d