如果没有在我的Linux系统上安装Emacs,Bash命令行编辑默认模式仍然是Emacs。在没有Emacs的情况下,这是如何工作的?
我试着搜索Bash源代码,但还是无法理解。Bash是否将Emacs集成在自己的内部?
$ set -o
allexport off
braceexpand on
emacs on
: :
vi off
xtrace off
我在专用服务器(由OVH托管)上遇到了yum命令的问题:
[root@mail-server ~]# yum clean all
[root@mail-server ~]# yum update
Modules complémentaires chargés : fastestmirror
One of the configured repositories failed (Inconnu),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum c
linux命令"lsof“返回正在访问的文件,我在shell中尝试使用vi打开一个文件,用kwrite打开另一个文件,然后返回并得到vi的进程,但没有kwrite进程,如下所示
[linux@localhost shell_ex]$ lsof +d .
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bash 3458 linux cwd DIR 253,2 50 953101 .
bash 3747 linux cwd DIR 253,2 50 95
我在tmux1.8中遇到了这个问题:我想将status-keys选项设置为'emacs‘,因为我真的不喜欢在vi-mode中输入命令。但是,将以下行添加到.tmux.conf没有任何效果:
set -g status-keys emacs
当tmux重启时,tmux show-options -g | grep keys会显示emacs,但实际的行为是vi样式的。
问题的根源是$EDITOR环境变量,在我的例子中,它设置为vim。文档中写道:
status-keys [vi | emacs]
Use vi or emacs-style key bindings in the s
我试着学习如何使用vi,这是大多数操作系统附带的普通的vi,但是那个'vi‘似乎缺少很多功能。
当我试图执行":ls“时,它给了我错误的E319: Sorry, the command is not available in this version.
类似地,对于大多数命令,当我尝试:version时,它返回Small version without GUI。
现在我只想学习使用"vi“而不是"vim”。
因此,任何我可以从中学习的好地方(我发现大多数教程都是针对vim的)。
扩展"vi“而不是"vim”功能的任何简单方法
如果我走错路了
安装了debian 最后,但在安装过程中,我想我选择通过互联网使用本地媒体进行软件包。需要这样做,因为不确定是否会尝试立即连接(我的调制解调器需要登录)。
现在,我想安装/启用sudo,并安装其他程序,如雷鸟月食和铬。但我没有苏多
当我输入命令时,
aptitude install sudo
收到这条消息:
The following NEW packages will be installed:
sudo 0 packages upgraded, 1 newly installed, 0 to remove and 0 not
upgraded. Need to get 0 B/842