使用xmodmap。建立一个新文件~/.Xmodmap,添加以下内容: remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L 然后执行