How to redirect the output of a running linux process to a file?

Question:

Started the process of copying rsync files. Then I did Ctrl + Z, bg, disown and closed the terminal. Is it possible to somehow direct the output of this already running process to a file without stopping the process itself? I know how to do this at startup, but if the process is already running.

Answer:

I really love using screen . The log is written to a file and you can return to the application.

  1. screen ;
  2. Start rsync ;
  3. Ctrl + A + D – detach;
  4. screen -ls – show the list of running screens;
  5. screen -r – resume;
Scroll to Top