Command Line Options
Prev
Next

Command Line Options

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.

Specify a File

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

Specify a file on the internet

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:

% kwrite
ftp://ftp.kde.org/pub/kde/Welcome.msg

Other Command Line Options

The following command line help options are available

kwrite --help

This lists the most basic options available at the command line.

kwrite --help-qt

This lists the options available for changing the way KWrite interacts with Qt™.

kwrite --help-kde

This lists the options available for changing the way KWrite interacts with KDE.

kwrite --help-all

This lists all of the command line options.

kwrite --author

Lists KWrite's authors in the terminal window

kwrite --version

Lists version information for Qt™, KDE, and KWrite. Also available through kwrite -v

kwrite --stdin

Causes 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 URL

Causes KWrite to use the specified encoding for the document.

kwrite --line line URL

Navigate to the specified line after opening the document.

kwrite --column column URL

Navigate to the specified column after opening the document.

Prev
Next
Home


Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team