Konsole/zh-tw: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
==特性預覽== | ==特性預覽== | ||
* X | <div class="mw-translate-fuzzy"> | ||
* | * X終端模擬器 | ||
* | *便於命令操作 | ||
* | *針對不同任務使用不同的配置。 | ||
* | *支持設定會滾限制和保存輸出內容到檔案。 | ||
* | *能用默認網頁瀏覽器打開鏈接。 | ||
* | *能用文件管理器打開當前路徑。 | ||
*開啟桌面特效後支持半透明背景。 | |||
</div> | |||
'''Konsole'''是KDE平臺上的X終端模擬器,便於用戶使用命令列。除了提供使用強大shell的方法外,Konsole同樣提供很多能讓命令列操作便利和愉快的功能,比如配置檔案管理,回滾和配色方案,以及半透明效果。 | '''Konsole'''是KDE平臺上的X終端模擬器,便於用戶使用命令列。除了提供使用強大shell的方法外,Konsole同樣提供很多能讓命令列操作便利和愉快的功能,比如配置檔案管理,回滾和配色方案,以及半透明效果。 | ||
Line 22: | Line 23: | ||
===語言=== | ===語言=== | ||
<div class="mw-translate-fuzzy"> | |||
在Konsole裡,你能切換語言到純英語環境(比如為了查看某些bug訊息),輸入下列命令: | 在Konsole裡,你能切換語言到純英語環境(比如為了查看某些bug訊息),輸入下列命令: | ||
{{Input|1=export LANG=C}} | {{Input|1=export LANG=C}} | ||
</div> | |||
===快捷鍵=== | ===快捷鍵=== | ||
* | <div class="mw-translate-fuzzy"> | ||
{{Note|1= | * 切換標籤: SHIFT+左, SHIFT+右 (不像X-Chat, Firefox, Quanta, Kdevelop)。 | ||
* | :{{Note/zh-tw|1=Quanta和Kdevelop用的是ALT+左, ALT+右。但是,SHIFT+方向鍵好處是能在幾乎所有鍵盤佈局上單手搞定,因為有時候某些鍵盤上只在左側有ALT按鍵(比如德文鍵盤)}} | ||
* 新建標籤: SHIFT+CRTL+N. | |||
</div> | |||
===標籤的配置=== | ===標籤的配置=== | ||
Line 39: | Line 44: | ||
===設定檔案管理 === | ===設定檔案管理 === | ||
* | <div class="mw-translate-fuzzy"> | ||
* | * 新建新的設定檔 <menuchoice>設定-> 管理設定檔 -> 新建設定檔</menuchoice> | ||
* | * 在 <menuchoice>一般</menuchoice>分頁,隨你喜歡可以輸入新的配置文件名和修改圖標。 | ||
* 如果要成為root用戶的konsole,鍵入命令 <div style="margin-right:80px">{{Input|1=/bin/su -}}</div> :{{Tip/zh-cn|1=上面的命令在採用sudo的發行版本上是無效的(比如Ubuntu)。在那些發行版本請使用: {{Input|1=sudo su}}或只要預先在所有需要超級用戶權限的命令前加sudo。}} | |||
* 在 <menuchoice>外觀 </menuchoice>標籤頁能改變字體大小. | |||
[[Image:Konsole4profile.png|thumb|center|330px|編輯設定檔]] | |||
* 在<menuchoice>管理配置文件</menuchoice>對話框,你能添加或刪除一個勾,這決定配置檔案是否在檔案菜單中顯示。 | |||
</div> | |||
{{Tip|1=This command will not work on any distro that uses sudo (like Ubuntu). On such distributions use: <br /><code>sudo su</code><br /> or just prepend all your commands that requires superuser privileges with sudo.}} | {{Tip|1=This command will not work on any distro that uses sudo (like Ubuntu). On such distributions use: <br /><code>sudo su</code><br /> or just prepend all your commands that requires superuser privileges with sudo.}} | ||
Line 47: | Line 57: | ||
[[Image:Konsole4profile.png|thumb|center|330px|Editing a profile]] | [[Image:Konsole4profile.png|thumb|center|330px|Editing a profile]] | ||
* On the <menuchoice>Manage Profiles</menuchoice> screen you can add or remove a star, which controls whether that profile is to be offered on the File menu. | * On the <menuchoice>Manage Profiles</menuchoice> 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 {{Path|.local/share/konsole/[name of profile]}} and adding: | |||
{{Input|1=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 {{Path|~/.bashrc}}: | |||
{{Input|1=HISTFILE="$HOME/.bash_history.${KONSOLE_DBUS_SESSION##*/}"}} | |||
== 相關站點 == | == 相關站點 == | ||
* [http://konsole.kde.org/ | <div class="mw-translate-fuzzy"> | ||
* '''[http://konsole.kde.org/ 主頁]''' | |||
* [http://docs.kde.org/stable/en/ | * '''[http://docs.kde.org/stable/en/kdebase-apps/konsole/index.html Konsole 手冊]''' | ||
</div> | |||
== Help with Development == | == Help with Development == | ||
If you are interested in helping with Konsole's development, check out how to [[Special:myLanguage/KonsoleDevelopment|help the Konsole team]]. | If you are interested in helping with Konsole's development, check out how to [[Special:myLanguage/KonsoleDevelopment|help the Konsole team]]. | ||
Latest revision as of 11:46, 4 August 2019
Konsole是KDE平臺的終端模擬器 |
特性預覽
- X終端模擬器
- 便於命令操作
- 針對不同任務使用不同的配置。
- 支持設定會滾限制和保存輸出內容到檔案。
- 能用默認網頁瀏覽器打開鏈接。
- 能用文件管理器打開當前路徑。
- 開啟桌面特效後支持半透明背景。
Konsole是KDE平臺上的X終端模擬器,便於用戶使用命令列。除了提供使用強大shell的方法外,Konsole同樣提供很多能讓命令列操作便利和愉快的功能,比如配置檔案管理,回滾和配色方案,以及半透明效果。
Konsole同時提供一個嵌入式的 KPart終端,他被整合到Yakuake, Dolphin和Kate等程式中,在使用者操作命令列時提供給使用者一個統一相似的介面。
教學和技巧
語言
在Konsole裡,你能切換語言到純英語環境(比如為了查看某些bug訊息),輸入下列命令:
export LANG=C
快捷鍵
- 切換標籤: SHIFT+左, SHIFT+右 (不像X-Chat, Firefox, Quanta, Kdevelop)。
- 新建標籤: SHIFT+CRTL+N.
標籤的配置
If you regularly use a lot of tabs, you'll sometimes find it convenient to label them. Just double-click on the tab and you'll get a re-name dialogue.
設定檔案管理
- 新建新的設定檔
- 在 分頁,隨你喜歡可以輸入新的配置文件名和修改圖標。
- 如果要成為root用戶的konsole,鍵入命令 :
/bin/su -
sudo su或只要預先在所有需要超級用戶權限的命令前加sudo。
- 在 標籤頁能改變字體大小.
- 在 對話框,你能添加或刪除一個勾,這決定配置檔案是否在檔案菜單中顯示。
sudo su
or just prepend all your commands that requires superuser privileges with sudo.
- Font size can also be changed on the tab.
- On the 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##*/}"
相關站點
Help with Development
If you are interested in helping with Konsole's development, check out how to help the Konsole team.
關鍵字
終端模擬器,命令列, CLI, shell