Chia and forks farming in cli ubuntu?

At the moment I am farming Chia and about 25 forks in my ubuntu 20.04 system with 28GB of ram and a Ryzen 3 2200G. I am running everything in GUI mode, but my system is at its limits, the CPU is almost always in 95 to 100% and for the memory I had to make a 16GB Swap in the SSD.
Can someone please post a full cli guide, how to farm with cli commands and what do we need to run, after it I think we can see the progress in the cli window, or with farmer app.