
Though KWrite may most often be started from the KDE program menu, or a desktop icon, it can also be opened at the command line prompt of a terminal window. There are a few useful options that are available when doing this.
By specifying the path and name of a particular file the user can have KWrite open (or create) that file immediately upon startup. This option might look something like the following:
%kwrite/home/myhome/docs/myfile.txt
The above-mentioned method could even be used to open files on the internet (if the user has an active connection at the time.) An example of this might look like the following:
%kwriteftp://ftp.kde.org/pub/kde/Welcome.msg
The following command line help options are available
kwrite
--helpThis lists the most basic options available at the command line.
kwrite
--help-qtThis lists the options available for changing the way KWrite interacts with Qt™.
kwrite
--help-kdeThis lists the options available for changing the way KWrite interacts with KDE.
kwrite
--help-allThis lists all of the command line options.
kwrite
--authorLists KWrite's authors in the terminal window
kwrite
--versionLists version information for Qt™, KDE, and KWrite. Also
available through kwrite
-v
kwrite
--stdinCauses KWrite to read the document content from STDIN. This
is similar to the common option - used in many command line
programs, and allows you to pipe command output into KWrite.
kwrite
--encoding encoding
URLCauses KWrite to use the specified encoding for the document.
kwrite
--line line
URLNavigate to the specified line after opening the document.
kwrite
--column column
URLNavigate to the specified column after opening the document.
Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team