Konsole/zh-tw: Difference between revisions

From KDE Wiki Sandbox
m (Created page with "===快捷鍵===")
(Updating to match new version of source page)
 
(18 intermediate revisions by 2 users not shown)
Line 5: Line 5:
==特性預覽==
==特性預覽==


* X Terminal emulator
<div class="mw-translate-fuzzy">
* Makes using the command line easier
* X終端模擬器
* Use different profiles for different tasks
*便於命令操作
* Set scrollback limit and save contents to file
*針對不同任務使用不同的配置。
* Click on links to open in user's default web browser
*支持設定會滾限制和保存輸出內容到檔案。
* Open current path in user's file manager
*能用默認網頁瀏覽器打開鏈接。
* Translucent background available when desktop effects are enabled
*能用文件管理器打開當前路徑。
*開啟桌面特效後支持半透明背景。
</div>


  '''Konsole'''是KDE平臺上的X終端模擬器,便於用戶使用命令列。除了提供使用強大shell的方法外,Konsole同樣提供很多能讓命令列操作便利和愉快的功能,比如配置檔案管理,回滾和配色方案,以及半透明效果。
  '''Konsole'''是KDE平臺上的X終端模擬器,便於用戶使用命令列。除了提供使用強大shell的方法外,Konsole同樣提供很多能讓命令列操作便利和愉快的功能,比如配置檔案管理,回滾和配色方案,以及半透明效果。
Line 21: Line 23:
===語言===
===語言===


<div class="mw-translate-fuzzy">
在Konsole裡,你能切換語言到純英語環境(比如為了查看某些bug訊息),輸入下列命令:
在Konsole裡,你能切換語言到純英語環境(比如為了查看某些bug訊息),輸入下列命令:
{{Input|1=export LANG=C}}
{{Input|1=export LANG=C}}
</div>


===快捷鍵===
===快捷鍵===


* ''Switch tab:'' <keycap>Shift + Left</keycap>, <keycap>Shift + Right</keycap> (not like '''X-Chat''', '''Firefox''', '''Quanta''', '''Kdevelop''').
<div class="mw-translate-fuzzy">
:{{Note|1='''Quanta''' and '''Kdevelop''' use <keycap>Alt + Left</keycap>, <keycap>Alt + Right</keycap>. However, '''Shift + ''Direction''''' has the advantage of being reachable with one hand on virtually all keyboard layouts, while <keycap>Alt</keycap> keys are sometimes only on the left of the keyboard (e.g. in Germany).}}
* 切換標籤: SHIFT+, SHIFT+(不像X-Chat, Firefox, Quanta, Kdevelop)
* ''New tab:'' <keycap>Shift + Ctrl + T</keycap>.
:{{Note/zh-tw|1=Quanta和Kdevelop用的是ALT+, ALT+右。但是,SHIFT+方向鍵好處是能在幾乎所有鍵盤佈局上單手搞定,因為有時候某些鍵盤上只在左側有ALT按鍵(比如德文鍵盤)}}
* 新建標籤: SHIFT+CRTL+N.
</div>


===Label your Tabs===
===標籤的配置===


[[Image:Konsole4_Rename_Tab.png|thumb|center|330px|Double Click to Rename Tab]]
[[Image:Konsole4_Rename_Tab.png|thumb|center|330px|雙擊更名]]


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.
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.


=== Profile Management ===
===設定檔案管理 ===


* To add a new profile go to <menuchoice>Settings -> Profile Management -> New Profile</menuchoice>
<div class="mw-translate-fuzzy">
* On the <menuchoice>General</menuchoice> tab, enter the new profile name and change the icon if desired.
* 新建新的設定檔 <menuchoice>設定-> 管理設定檔 -> 新建設定檔</menuchoice>
* If this is to be a ''root konsole'', enter the command <div style="margin-right:80px">{{Input|1=/bin/su -}}</div> :{{Tip|1=This command will not work on any distro that uses sudo (like Ubuntu). On such distributions use: {{Input|1=sudo su}}or just prepend all your commands that requires superuser privileges with sudo.}}
* <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.}}
* Font size can also be changed on the <menuchoice>Appearance</menuchoice> tab.
* Font size can also be changed on the <menuchoice>Appearance</menuchoice> tab.
  [[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.


== Related Sites ==
=== 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:


* [http://konsole.kde.org/ Home Page]
{{Input|1=TerminalMargin=7}}
* [http://docs.kde.org/stable/en/kdebase-apps/konsole/index.html Konsole Handbook]
 
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##*/}"}}
 
== 相關站點 ==
 
<div class="mw-translate-fuzzy">
* '''[http://konsole.kde.org/ 主頁]'''
* '''[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]].


== Keywords ==
==關鍵字==


Terminal emulator, command line, CLI, shell
終端模擬器,命令列, CLI, shell


[[Category:Desktop]]
[[Category:桌面/zh-tw]]
[[Category:System]]
[[Category:系統/zh-tw]]

Latest revision as of 11:46, 4 August 2019

Konsole
Konsole是KDE平臺的終端模擬器

特性預覽

  • X終端模擬器
  • 便於命令操作
  • 針對不同任務使用不同的配置。
  • 支持設定會滾限制和保存輸出內容到檔案。
  • 能用默認網頁瀏覽器打開鏈接。
  • 能用文件管理器打開當前路徑。
  • 開啟桌面特效後支持半透明背景。
Konsole是KDE平臺上的X終端模擬器,便於用戶使用命令列。除了提供使用強大shell的方法外,Konsole同樣提供很多能讓命令列操作便利和愉快的功能,比如配置檔案管理,回滾和配色方案,以及半透明效果。

Konsole同時提供一個嵌入式的 KPart終端,他被整合到YakuakeDolphinKate等程式中,在使用者操作命令列時提供給使用者一個統一相似的介面。

教學和技巧

語言

在Konsole裡,你能切換語言到純英語環境(比如為了查看某些bug訊息),輸入下列命令:

export LANG=C

快捷鍵

  • 切換標籤: SHIFT+左, SHIFT+右 (不像X-Chat, Firefox, Quanta, Kdevelop)。
附注
Quanta和Kdevelop用的是ALT+左, ALT+右。但是,SHIFT+方向鍵好處是能在幾乎所有鍵盤佈局上單手搞定,因為有時候某些鍵盤上只在左側有ALT按鍵(比如德文鍵盤)


  • 新建標籤: 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的發行版本上是無效的(比如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##*/}"

相關站點

Help with Development

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

關鍵字

終端模擬器,命令列, CLI, shell