When Konsole is started from the command line, various options can be specified to modify its behavior.
--helpList various options.
--profilefileStart Konsole using the specified profile instead of the default profile.
--layoutfileStart Konsole using a saved JSON layout file.
--builtin-profileUse the built-in profile instead of the current default profile.
--workdirdirOpen with
diras the initial working directory.--hold, --nocloseDo not close the initial session automatically when it ends.
--new-tabCreate a new tab in an existing window rather than creating a new window.
--tabs-from-filefileCreate tabs as specified in the given tabs configuration file.
Note
The file has one tab per line in the following format:
Each line specifies a tab to open using up to 4 fields specifying how it is to open. Fields are delimited with
;;and a field name must have a:appended. Empty lines or lines with#at the beginning are ignored, so you can use line beginning with#to add comments.title:a name for this tab, tab default if blank or not specifiedworkdir:working directory,~if blank or not specifiedprofile:a Konsole profile to use, the default if blank or not specifiedcommand:a command to runEach line should contain at least one of
commandorprofilefield.Example:
title: %n;; command: /usr/bin/top ;; profile: Shell--background-modeStart Konsole in the background and bring to the front when Ctrl+Shift+F12 (by default) is pressed.
--separate,--noforkRun the new instance of Konsole in a separate process.
--show-menubarShow the menubar, overriding the default behavior.
--hide-menubarHide the menubar, overriding the default behavior.
--show-tabbarShow the tabbar, overriding the default behavior.
--hide-tabbarHide the tabbar, overriding the default behavior.
--fullscreenStart Konsole in fullscreen mode.
--notransparencyDisable transparent backgrounds, even if the system supports them.
--list-profilesList all available profiles.
--list-profile-propertiesList all possible properties with name and type. See option
-p.For more information, please visit Konsole API Reference.
-pproperty=valueChange the value of a profile property.
-ecommandExecute
commandinstead of the normal shell.Note
This option will catch all following arguments passed to Konsole, and execute it as
command. So this option should always be used as the last option.
Konsole also accepts generic Qt™ and KDE Frameworks™ 5 options, see man pages qt5options and kf5options.