From 66cd1cbaf81bf3d87067ebf721d843ffe719badf Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 26 Dec 2018 11:22:06 +0100 Subject: Cygwin: Add documentation for chattr and lsattr Signed-off-by: Corinna Vinschen --- winsup/doc/utils.xml | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) diff --git a/winsup/doc/utils.xml b/winsup/doc/utils.xml index 182134379..17b564da4 100644 --- a/winsup/doc/utils.xml +++ b/winsup/doc/utils.xml @@ -13,6 +13,70 @@ identically. All of the Cygwin command-line utilities support the --help and --version options. + + + chattr + 1 + Cygwin Utilities + + + + chattr + Change file attributes + + + + +chattr [-RVfhv] [+-=mode]... [file]... + + + + + Options + + -R, --recursive recursively list attributes of directories and their + contents + -V, --verbose Be verbose during operation + -f, --force suppress error messages + -h, --help this help text + -v, --version display the program version + + + + + Description + The chattr program allows to change file + attributes, namely DOS attributes, as well as making files sparse, + encrypt or compress them on FS level, or setting directories' + case sensitivity. + + + The format of 'mode' is {+-=}[acCehnrsSt] + + The operator '+' causes the selected attributes to be added to the + existing attributes of the files; '-' causes them to be removed; and + '=' causes them to be the only attributes that the files have. + + Supported attributes: + + + 'r', 'Readonly': file is read-only + 'h', 'Hidden': file or directory is hidden + 's', 'System': file or directory that the operating system uses + 'a', 'Archive': file or directory has the archive marker set + 't', 'Temporary': file is being used for temporary storage + 'S', 'Sparse': file is sparse + 'c', 'Compressed': file or directory is compressed + 'n', 'Notindexed': file or directory is not to be indexed by the + content indexing service + 'e', 'Encrypted': file is encrypted + 'C', 'Casesensitive': directory is handled case sensitive + (Windows 10 1803 or later, local NTFS only, + WSL must be installed) + + + + cygcheck @@ -951,6 +1015,71 @@ bash$ locale noexpr + + + lsattr + 1 + Cygwin Utilities + + + + lsattr + List file attributes + + + + +lsattr [-RVadhln] [file]... + + + + + Options + + -R, --recursive recursively list attributes of directories and their + contents + -V, --version display the program version + -a, --all list all files in directories, including files that + start with '.' + -d, --directory list directories like other files, rather than listing + their contents. + -l, --long print options using long names instead of single + character abbreviations + -n, --no-headers don't print directory headers when recursing + -h, --help this help text + + + + + Description + The lsattr program allows to list file + attributes, namely DOS attributes, file sparseness, FS level + encryption and compression state, as well as directories' + case sensitivity setting. + + + Supported attributes: + + + 'r', 'Readonly': file is read-only, directory is system-marked + 'h', 'Hidden': file or directory is hidden + 's', 'System': file or directory that the operating system uses + 'a', 'Archive': file or directory has the archive marker set + 't', 'Temporary': file is being used for temporary storage + 'S', 'Sparse': file is sparse + 'r', 'Reparse': file or directory that has a reparse point + 'c', 'Compressed': file or directory is compressed + 'o', 'Offline': the data of a file is moved to offline storage + 'n', 'Notindexed': file or directory is not to be indexed by the + content indexing service + 'e', 'Encrypted': file is encrypted + 'C', 'Casesensitive': directory is handled case sensitive + (Windows 10 1803 or later, local NTFS only, + WSL must be installed) + + + + minidumper -- cgit v1.2.3