I am running the following command and saving the output to a file:
sudo journalctl -u iotedge -f >> sub.txt
the problem is ,i have to stop the operation of the command with ctrl+c otherwise it won't go back to command prompt. Is there any way to stop the follow command and save it's output to a file without pressing ctrl+c.