How to fork new processes in shell?

< H1 > demand < / H1 >
  • needs to execute two commands in one sh file, as follows
1. tail -f log.txt 
2. tail -f log2.txt
  • is it feasible because both commands will cause terminal blocking? Or is there any other alternative solution.
Mar.03,2021

  

if you want to monitor at the same time, you can open multiple terminal windows at the same time, and it is convenient to open multiple windows with software such as Terminator or tmux.

Menu