linux下解決ctrl+l 清屏失效

来源:互联网 发布:手提电脑怎么下载软件 编辑:程序博客网 时间:2024/05/22 00:18

bind -x '"\C-l": clear'

把这个写到/etc/profile或者/etc/bash.bashrc里头

#exampleecho 'bind -x '"\C-l": clear'' >> /etc/profilesource /etc/profile

#如果执行以上命令还未生效那么你应该安装readline库

0 0