From 50e6c846ee04cdffc8efa22be8dc1ae9f9fcdc89 Mon Sep 17 00:00:00 2001 From: Irina <91758930+iridacea@users.noreply.github.com> Date: Fri, 4 Nov 2022 23:10:43 +0300 Subject: [PATCH] stat: refresh page (#9438) --- pages/common/stat.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/common/stat.md b/pages/common/stat.md index 90f3bdff4..3f36f96fc 100644 --- a/pages/common/stat.md +++ b/pages/common/stat.md @@ -3,26 +3,26 @@ > Display file and filesystem information. > More information: . -- Show file properties such as size, permissions, creation and access dates among others: +- Display properties about a specific file such as size, permissions, creation and access dates among others: `stat {{path/to/file}}` -- Same as above but in a more concise way: +- Display properties about a specific file such as size, permissions, creation and access dates among others without labels: -`stat -t {{path/to/file}}` +`stat --terse {{path/to/file}}` -- Show filesystem information: +- Display information about the filesystem where a specific file is located: -`stat -f {{path/to/file}}` +`stat --file-system {{path/to/file}}` - Show only octal file permissions: -`stat -c "%a %n" {{path/to/file}}` +`stat --format="%a %n" {{path/to/file}}` -- Show owner and group of the file: +- Show the owner and group of a specific file: -`stat -c "%U %G" {{path/to/file}}` +`stat --format="%U %G" {{path/to/file}}` -- Show the size of the file in bytes: +- Show the size of a specific file in bytes: -`stat -c "%s %n" {{path/to/file}}` +`stat --format="%s %n" {{path/to/file}}`