如何配置↑密钥以从历史记录中获取命令?
示例:如果我输入p并按下,↑那么它应该只显示历史记录中以“p”开头的命令,如 python、php、perl 等。
请问谁能帮我配置这个功能?
我已经编辑了.bashrc
,但它对我不起作用。
我刚刚升级了我的 Ubuntu 13.10,但 apache2 无法正常工作。当我尝试启动 apache2 服务器时,它打印以下错误:
* Starting web server apache2
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 263 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/: No such file or directory
Action 'configtest' failed.
Run Code Online (Sandbox Code Playgroud) 在 Ubuntu 中,可以从终端打开应用程序。但有时不清楚执行此操作的适当命令是什么。
那么,打开应用程序后,如何获取用于启动它的命令,而无需搜索任何地方(只需查看它)?
Ubuntu 中是否有相当于 Windows 的“开始菜单”,可以轻松访问所有已安装的程序?
如何获得“详细”退出代码,apt-get
以便出现这样的错误
Package google-chrome is a virtual package provided by:
google-chrome-stable 29.0.1547.76-r223446
google-chrome-beta 30.0.1599.47-1
You should explicitly select one to install.
E: Package 'google-chrome' has no installation candidate
Run Code Online (Sandbox Code Playgroud)
与这样的下载错误有不同的退出代码
Err http://dl.google.com/linux/chrome/deb/ stable/main google-chrome-stable amd64 29.0.1547.76-r223446
Something wicked happened resolving 'dl.google.com:http' (-11 - System error)
Run Code Online (Sandbox Code Playgroud)
目前,这两个错误都退出了 100
基本上,我希望下载错误以不同于第一个错误的代码退出。如果可能,我希望每个特定错误都有不同的退出代码,但上面的示例是我需要的最低限度。如何在没有其他软件的情况下在 vanilla Ubuntu 安装中执行此操作(除了aptitude
)?
当我的计算机被锁定时,我会看到默认的 Ubuntu 锁屏。当我输入密码并解锁时,我会看到 Cinnamon 2 锁定屏幕,我必须再次输入密码。
如何禁用 Cinnamon 2 锁定屏幕?
注意:我已经使用以下命令安装了 Cinnamon 2:
sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
sudo apt-get install cinnamon
Run Code Online (Sandbox Code Playgroud) 据我了解,rdepends
列出了依赖于指定包的包。
例子:
$ apt-cache rdepends abiword
abiword
Reverse Depends:
abiword:i386
xubuntu-desktop
|python-carquinyol-0.96
pkpgcounter
lubuntu-desktop
junior-writing
gnome
|freemind-doc
abiword-plugin-mathview
abiword-plugin-grammar
abiword-dbg
Run Code Online (Sandbox Code Playgroud)
在这个输出中,什么|
意思?
根据这个问题,它的意思是 'or' in apt-cache depends
,但是这在这里似乎无关紧要(package1
或 package2
取决于abiword
是不可能的)。
我正在尝试gedit
从 Windows 上的 SSH 终端运行,连接到运行 Ubuntu 12.04 服务器的 Amazon EC2 实例,但出现此错误:
Cannot open display:
Run Code Online (Sandbox Code Playgroud)
我如何解决它?