Linux文本模式下的命令行提示符

来源:百度知道 编辑:UC知道 时间:2024/06/24 12:56:17
在Linux文本模式下用根用户登陆后命令行提示符为如下格式:
;root@localhost:~[root@localhost~]#
而且每次运行命令时,主机都会“滴”一下。这是怎么回事啊?
请各位帮忙了,十分感谢!

(3) matchbeep:
这个变数是用来控制何时发出警告声,也就是『毕』的一声,它具有下列几个值
可供设定:
nomatch: 为找出符合的档案或命令时,发出警告声。
ambiguous: 有很多档案或命令符合时,发出警告声。
notunique: 找到一精确符合的,但还有其他较长而且符合的档名或命令时,发出
警告声。
never: 无论在任何情况下都不发出警告声。
输入: >set matchbeep=never 试试

什么版本的linux?
可以把blacklist pcspkr加入blacklist.conf(此文件不同的linux可能不太一样),重启生效
或者运行rmmod pcspkr,重启后需要再一次运行该命令

改动一下家目录下的 .inputrc, 没有就建立一个,我的是这样

# base-files version 3.7-1

# To pick up the latest recommended .inputrc content,
# look in /etc/defaults/etc/skel/.inputrc

# Modifying /etc/skel/.inputrc directly will prevent
# setup from updating it.

# The copy in your home directory (~/.inputrc) is yours, please
# feel free to customise it to create a shell
# environment to your liking. If you feel a change
# would be benifitial to all, please feel free to send
# a patch to the cygwin mailing list.