'Process CPU/IO scheduler proirity setting from terminal

I use manjaro/KDE and by default it comes with an app called KSysGuard. It is possible to set CPU/IO priority for the process using KSysGuard.
Is it possible to set this using terminal? If so how?

Thanks!

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source