If I have X11 forwarding turned on. How to run a program without it in the same terminal

x11

Obviously I'm not looking to open another terminal and ssh without -X. I'm actually doing this with running Matlab on another server. So after ssh'ing into my remote server with the -X option, I type matlab and the graphics forward in as expected.

How do I run matlab with X11 forwarding enabled but without graphics?

Best Answer

You can run matlab with the -nodesktop option.

Example

                      ss #1

Source: Launching MATLAB without the desktop