强制八度使用命令行 [英] Force octave to use command line

查看:93
本文介绍了强制八度使用命令行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将我的ubuntu安装升级到16.04之前,调用"octave"将打开八度解释器,该解释器可用作功能强大的计算器.

Before upgrading my ubuntu install to 16.04 invoking 'octave' would open the octave interpreter, useful as a powerful calculator.

现在,键入八度会打开八度gui.我需要输入'octave --no-gui'才能恢复我的解释器.'

Now, typing octave opens the octave gui. I need to type 'octave --no-gui' to get my interpreter back.'

为什么会这样?如何恢复打开解释器的八度"?

Why does this happen? How can I restore 'octave' opening the interpreter?

推荐答案

默认值会随着时间的流逝而变化,具体取决于典型用法.要解决此问题,只需:

Defaults change over time depending on typical usage. To fix it, just:

在〜/.bashrc中添加别名

Add an alias to your ~/.bashrc

alias octave="octave --no-gui"

现在为您的文件添加源文件以启用它.

Now source your file to enable it.

source ~/.bashrc

这篇关于强制八度使用命令行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆