Konsole(终端模拟器)

    From KDE UserBase Wiki
    This page is a translated version of the page Konsole and the translation is 50% complete.
    Outdated translations are marked like this.
    Konsole
    Konsole 是 KDE 平台的终端模拟器

    特性综述

    • X 终端模拟器
    • 便于命令操作
    • 针对不同任务使用不同的配置。
    • 支持设定会滚限制和保存输出内容到文件。
    • 能用默认网页浏览器打开链接。
    • 能用文件管理器打开当前路径。
    • 开启桌面特效后支持半透明背景。

    Konsole 是KDE平台上的X终端模拟器,便于用户使用命令行。除了提供使用强大shell的方法外,Konsole同样提供很多能让命令行操作便利和愉快的功能,比如配置文件管理,回滚和配色方案,以及半透明效果。

    Konsole 同时提供一个嵌入式的KPart终端,他被整合到YakuakeDolphinKate等程序中,在用户操作命令行时提供给用户一个统一相似的界面。

    教程和提示

    语言

    Konsole 里,你能切换语言到纯英语环境(比如为了查看某些bug信息),输入下列命令:

    export LANG=C

    快捷键

    • 切换标签: SHIFT+左, SHIFT+右 (不像X-Chat, Firefox, Quanta, Kdevelop)。

    Note

    Quanta和Kdevelop用的是ALT+左, ALT+右。但是,SHIFT+方向键好处是能在几乎所有键盘布局上单手搞定,因为有时候某些键盘上只在左侧有ALT按键(比如德文键盘)
    • 新建标签: SHIFT+CRTL+N.

    标签的配置

    双击重命名标签页

    要是你长期都是用一堆标签,会发现标签的命名很容易,双击就能改名。

    配置文件管理

    • 新建新的配置文件 设置 > 管理配置文件 > 新建配置文件
    • 在常规标签页,随你喜欢可以输入新的配置文件名和修改图标。
    • 如果要成为root用户的konsole,键入命令
      /bin/su -
      :

    Tip

    上面的命令在 root 账号没有启用的情况下是无效的<--(比如Ubuntu)。在那些发行版,-->此时请使用:
    sudo su
    或只要预先在所有需要超级用户权限的命令前加sudo。
    • 在外观标签页能改变字体大小.
    编辑一个配置文件
    • 在管理配置文件对话框,你能添加或删除一个勾,这决定配置文件是否在文件菜单中显示。

    Tip

    This command will not work on any distro that uses sudo (like Ubuntu). On such distributions use:
    sudo su
    or just prepend all your commands that requires superuser privileges with sudo.
    • Font size can also be changed on the Appearance tab.


    Editing a profile
    • On the Manage Profiles screen you can add or remove a star, which controls whether that profile is to be offered on the File menu.

    Padding

    You can change the padding between the border and the contents of Konsole (the "margin" or "gutters" between window border and text) by editing your profile file in .local/share/konsole/[name of profile] and adding:

    TerminalMargin=7

    The number after "TerminalMargin" can be edited to whatever size you prefer. After that you need to log out and then log in to show the changes.

    Per Konsole tab Bash history

    If you want each Konsole tab to remember its own individual bash history, and restore it with the session after a reboot or log out/in, add the following line in your ~/.bashrc:

    HISTFILE="$HOME/.bash_history.${KONSOLE_DBUS_SESSION##*/}"

    相关网站

    帮助开发

    您如果有兴趣帮助开发 Konsole,请参阅如何帮助 Konsole 团队

    If you are interested in helping with Konsole's development, check out how to help the Konsole team.

    关键词

    终端模拟器,命令行,CLI,shell