Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I start octave from the command line and not the GUI?

I recently installed GNU Octave on my Mac using Homebrew and as soon as I typed octave into bash, it opened up the octave-gui window. The Octave GUI looks quite unappealing (on a mac, at least) so I wanted to use the command line interface. My fix was to create a permanent alias in ~/.bash_profile which was alias octave='octave --no-gui'.

Is there a more permanent fix to this? That is, how can I start using octave without invoking the GUI instead of the CLI? Is there a solution where I don't have to do this by using an alias. (Not that using the alias is a big issue, but I just wanted a better fix to starting Octave on the command line itself.)

like image 752
akad3b Avatar asked Jul 26 '16 15:07

akad3b


People also ask

How do I open an Octave in terminal?

In either case, you can immediately begin typing Octave commands. If you get into trouble, you can usually interrupt Octave by typing Control-C (written C-c for short). C-c gets its name from the fact that you type it by holding down CTRL and then pressing c. Doing this will normally return you to Octave's prompt.

Where is Octave command prompt?

The central window in the GUI is the Octave command-line interface. In this window Octave displays an initial message and then a prompt indicating it is ready to accept input. If you have chosen the traditional command-line interface then only the command prompt appears in the same window that was running a shell.

How do I run an Octave GUI in terminal?

Find the GNU Octave entry in this editor and change the command to '/usr/bin/octave --force-gui' in the properties window. Thereafter tick off the box which asks the program to be run in the terminal. Voila!


2 Answers

I also install through brew I found that just run:

octave-cli 

you will see the octave in terminal:

GNU Octave, version 4.2.0-rc2 Copyright (C) 2016 John W. Eaton and others. This is free software; see the source code for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or     ... octave:1> 
like image 107
meeme Avatar answered Sep 23 '22 01:09

meeme


According to here :

octave -W

will force octave to open in CLI. It works for me.

like image 37
Al Amin Ashik Avatar answered Sep 25 '22 01:09

Al Amin Ashik