From: Karel Zak Date: Fri, 17 Mar 2023 11:03:06 +0000 (+0100) Subject: findmnt: (man) add hint about the default output X-Git-Tag: v2.39-rc2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c605abb2aee8a64c34df8ecd633b6b02f04df22;p=thirdparty%2Futil-linux.git findmnt: (man) add hint about the default output Signed-off-by: Karel Zak --- diff --git a/misc-utils/findmnt.8.adoc b/misc-utils/findmnt.8.adoc index f7c046d03f..0cb7f0e6c0 100644 --- a/misc-utils/findmnt.8.adoc +++ b/misc-utils/findmnt.8.adoc @@ -27,7 +27,7 @@ The device may be specified by device name, major:minor numbers, filesystem labe The command-line option *--target* accepts any file or directory and then *findmnt* displays the filesystem for the given path. -The command prints all mounted filesystems in the tree-like format by default. +The command prints all mounted filesystems in the tree-like format by default. The default output, is subject to change. So whenever possible, you should avoid using default output in your scripts. Always explicitly define expected columns by using *--output columns-list* in environments where a stable output is required. The relationship between block devices and filesystems is not always one-to-one. The filesystem may use more block devices. This is why *findmnt* provides SOURCE and SOURCES (pl.) columns. The column SOURCES displays all devices where it is possible to find the same filesystem UUID (or another tag specified in _fstab_ when executed with *--fstab* and *--evaluate*).