How to disable graphic mode (KDE/GNOME/X11) in Linux during startup boot time

Follow the instruction below to change the startup mode for Redhat/CentOs/Fedora Linux from graphic to command only to save on resource