Konsole: Difference between revisions

From KDE UserBase Wiki
(Applied page template; Added content)
(Marked this version for translation)
 
(58 intermediate revisions by 18 users not shown)
Line 1: Line 1:
:'''''Terminal Emulator for KDE'''''
<languages />
{{Template:I18n/Language Navigation Bar|Konsole}}
{|class="tablecenter vertical-centered"
----
|[[Image:Konsole-KDE4.png|thumb|265px|Konsole]]||<translate> <!--T:1-->
__NOTOC__
'''Konsole is the terminal emulator for the KDE platform'''</translate>
== Overview ==
|}
<translate>
== Feature Overview == <!--T:2-->


{|style="width: 100%" cellpadding="5"
<!--T:3-->
|- valign="center"
| width="50%" |
 
'''Features'''
* X Terminal emulator
* X Terminal emulator
* Makes using the command line easier
* Makes using the command line easier
* Use different profiles for different tasks
* Use different profiles for different tasks
* Set scrollback limit and save contents to file
* Set scrollback limit and save contents to file
* Click on links to open in user's default web browser
* Right-click on links to open in user's default web browser
* Open current path in user's file manager
* Open current path in user's file manager
* Translucent background available when desktop effects are enabled
* Translucent background available when desktop effects are enabled
* The unique value of the environmental variable <code>SHELL_SESSION_ID</code> persists across all desktop sessions


| <div style="border: 1px solid darkgray; bakground-color: lightgray; padding: 10px; text-align: left;">
<!--T:4-->
'''Konsole''' is an ''X terminal emulator'' for the KDE platform, allowing users to have a convenient way to use the command line. Aside from providing a way to use a powerful shell, '''Konsole''' also offers features that make it easier or more pleasurable to work in the command line, such as profile management, scrollback, and color schemes, including translucency for effects.


[[Image:Konsole.png|thumb|center|256px]]
<!--T:5-->
'''Konsole''' also provides an embedded [[Special:myLanguage/Glossary#KPart|KPart]] terminal which is used by apps such as [[Special:myLanguage/Yakuake|Yakuake]], [[Special:myLanguage/Dolphin|Dolphin]], and [[Special:myLanguage/Kate|Kate]], giving users a consistent and familiar interface when working in the command line.


* '''Name:''' Konsole [[Image:Utilities-terminal.png|right|48px]]
== Tutorials and Tips == <!--T:6-->
* '''Description:''' Terminal
* '''Categories:''' [[Applications/System|System]]
* '''Version:''' 2.2.3
* '''Available for:''' 4.2.3
* '''[http://konsole.kde.org/ Konsole Website]'''
* '''[http://docs.kde.org/stable/en/kdebase-apps/konsole/index.html Konsole Handbook]'''
</div>


|}
=== Language === <!--T:7-->
 
<!--T:19-->
With '''Konsole''' you can change the language to plain English (to see bugs info for example) by command:
{{Input|1=export LANG=en_US.UTF-8}}
 
=== Shortcuts === <!--T:8-->
 
<!--T:20-->
* ''Switch tab:'' <keycap>Shift + Left</keycap>, <keycap>Shift + Right</keycap> (not like '''X-Chat''', '''Firefox''', '''Quanta''', '''Kdevelop''').
{{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).}}
* ''New tab:'' <keycap>Shift + Ctrl + T</keycap>.
 
===Label your Tabs=== <!--T:9-->
 
<!--T:22-->
[[Image:Konsole4_Rename_Tab.png|thumb|center|330px|Double Click to Rename Tab]]


== Description ==
<!--T:10-->
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.


[[Welcome_to_KDE_UserBase|Home]] >> [[Applications]] >> [[Applications/Desktop|Desktop]] >> [[Konsole]]
=== Profile Management === <!--T:11-->


Konsole is an X terminal emulator for KDE, allowing users to have a convenient way to use the command line. Aside from providing a way to use a powerful shell, Konsole also offers features that make it easier or more pleasurable to work in the command line, such as profile management, scrollback, and color schemes, including translucency for effects.
<!--T:12-->
* To add a new profile go to <menuchoice>Settings -> Profile Management -> New Profile</menuchoice>
* On the <menuchoice>General</menuchoice> tab, enter the new profile name and change the icon if desired.
* If this is to be a ''root konsole'', enter the command <code>/bin/su - </code>


Konsole also provides an embedded [[KPart]] terminal which is used by apps such as [[Yakuake]], [[Dolphin]], and [[Kate]], giving users a consistent and familiar interface when working in the command line.
<!--T:24-->
{{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.


== Tutorials ==


=== Language ===
<!--T:25-->
With Konsole You can change the language to plain English (to see bugs info for example) by command:
[[Image:Konsole4profile.png|thumb|center|330px|Editing a profile]]
export LANG=C
* 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.


=== Shortcuts ===
=== Padding === <!--T:13-->
:* Switch tab: SHIFT+LEFT, SHIFT+RIGHT (not like X-Chat, Firefox, Quanta, Kdevelop). Note that Quanta and Kdevelop use ALT+LEFT, ALT+RIGHT. However, SHIFT+DIRECTION has the advantage of being reachable with one hand on virtually all keyboard layouts, while ALT keys are sometimes only on the left of the keyboard (e.g. in Germany).
:* New tab: SHIFT+CRTL+N.


=== Profile Management ===
<!--T:26-->
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:


:* To add a new profile go to '''Settings > Profile Management > New Profile
<!--T:30-->
::* On the General tab, enter the new profile name and change the icon if desired.
{{Input|1=TerminalMargin=7}}
::* If this is to be a root konsole, enter the command
/bin/su -
''This command will not work on any distro that uses sudo (like Ubuntu). On such distributions use:''


sudo su
<!--T:31-->
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.


''or just prepend all your commands that requires superuser priviledges with sudo.''
=== Per Konsole tab Bash history === <!--T:27-->
::* Font size can also be changed on the Appearance tab.
[[Image:Konsole4profile.png|thumb|240px|center|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.


<!--T:28-->
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}}:


=== KDE 3 Tips ===
<!--T:29-->
{{Input|1=HISTFILE="$HOME/.bash_history.${KONSOLE_DBUS_SESSION##*/}"}}


==== Layout ====
== Related Sites == <!--T:15-->
With Konsole from CVS, you can remove every toolbar, frame and border with this command:
konsole --nomenubar --notoolbar --noscrollbar --noframe


==== Shortcuts ====
<!--T:21-->
:* Menu : CTRL+ALT+m (not F11 or CTRL+F)
* [http://konsole.kde.org/ Home Page]
:* Mouse emulation (with the keyboard): ALT+F12
* [http://forum.kde.org/viewforum.php?f=227 Community Forum]
* [http://docs.kde.org/stable/en/applications/konsole/index.html Konsole Handbook]


==== Session Profiles ====
== Help with Development == <!--T:23-->
:* '''If the screen is difficult to read''', change the default profile:
::* Use Settings > Schema to change this to a display with greater contrast.  White on Black is clearer than Linux Colors, or you may prefer Green on Black.
::* Transparent windows can be set, but they use more resources.


:* '''To add a new profile''' by simply starting a new session tab and editing it.
<!--T:32-->
::* All the changes can be made from the Settings menu
If you are interested in helping with Konsole's development, check out how to [[Special:myLanguage/KonsoleDevelopment|help the Konsole team]].
::* Use a different font or encoding.
::* Set a new Schema to give visual differentiation
::* When the display is as you want it, Save Session Profile, giving it a distinctive name.
[[Image:Konsole3profile.png|thumb|240px|center|Editing a profile]]


== Keywords ==
== Keywords == <!--T:16-->


<!--T:17-->
Terminal emulator, command line, CLI, shell
Terminal emulator, command line, CLI, shell
<!--T:18-->
[[Category:Desktop]]
[[Category:System]]
</translate>

Latest revision as of 11:02, 4 August 2019

Konsole
Konsole is the terminal emulator for the KDE platform

Feature Overview

  • X Terminal emulator
  • Makes using the command line easier
  • Use different profiles for different tasks
  • Set scrollback limit and save contents to file
  • Right-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
  • The unique value of the environmental variable SHELL_SESSION_ID persists across all desktop sessions

Konsole is an X terminal emulator for the KDE platform, allowing users to have a convenient way to use the command line. Aside from providing a way to use a powerful shell, Konsole also offers features that make it easier or more pleasurable to work in the command line, such as profile management, scrollback, and color schemes, including translucency for effects.

Konsole also provides an embedded KPart terminal which is used by apps such as Yakuake, Dolphin, and Kate, giving users a consistent and familiar interface when working in the command line.

Tutorials and Tips

Language

With Konsole you can change the language to plain English (to see bugs info for example) by command:

export LANG=en_US.UTF-8

Shortcuts

  • Switch tab: Shift + Left, Shift + Right (not like X-Chat, Firefox, Quanta, Kdevelop).

Note

Quanta and Kdevelop use Alt + Left, Alt + Right. However, Shift + Direction has the advantage of being reachable with one hand on virtually all keyboard layouts, while Alt keys are sometimes only on the left of the keyboard (e.g. in Germany).
  • New tab: Shift + Ctrl + T.

Label your Tabs

Double Click to Rename Tab

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 Settings -> Profile Management -> New Profile
  • On the General tab, enter the new profile name and change the icon if desired.
  • If this is to be a root konsole, enter the command /bin/su -

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##*/}"

Related Sites

Help with Development

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

Keywords

Terminal emulator, command line, CLI, shell