The main reason why a command line may be preferred to a GUI is that issuing of commands can be very quick for a user who knows the commands well. Also, it takes much less system resources to run a command line interface.
Chat with our AI personalities
It is usually faster, as it doesn't need to visualize a whole lot.
However, GUIs are more user friendly.
When you use server-type operating systems, and when some options are not available using graphical interface. Sometimes it's faster to do something in the command line then graphically.