Skip to content

Commit

Permalink
Document config file path and behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonev committed Feb 26, 2024
1 parent 14493b3 commit 196738b
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions iotop.8
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,24 @@ Note that all options after this one will be ignored.
Exit
.TP
\fBW\fR
Save current settings to configuration file in
\fB$HOME/.config/iotop/iotoprc\fR
Save current settings to configuration file in a place conforming to XDG Base
Directory Specification. The respective path is created in case it does not
exist. In case of error creating or accessing the config file, the error is
silently ignored and the configuration is not saved.

.RS
\fB$XDG_CONFIG_HOME/iotop/iotoprc\fR - if environment variable XDG_CONFIG_HOME
is set.
.RE

.RS
\fB$HOME/.config/iotop/iotoprc\fR - if environment variable XDG_CONFIG_HOME is
not set but HOME is set.
.RE

.RS
\fB.config/iotop/iotoprc\fR - if neither XDG_CONFIG_HOME nor HOME are set.
.RE
.TP
\fBD\fR
Reset all settings to their default values
Expand Down

0 comments on commit 196738b

Please sign in to comment.