From e9ca641d45340775509a4efea4a7ebdc9d7b6498 Mon Sep 17 00:00:00 2001 From: jahway603 Date: Thu, 20 Oct 2022 18:45:31 -0400 Subject: [PATCH] Base: Add manpages for which(1) and stat(1) --- Base/usr/share/man/man1/stat.md | 36 ++++++++++++++++++++++++++++++++ Base/usr/share/man/man1/which.md | 25 ++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 Base/usr/share/man/man1/stat.md create mode 100644 Base/usr/share/man/man1/which.md diff --git a/Base/usr/share/man/man1/stat.md b/Base/usr/share/man/man1/stat.md new file mode 100644 index 0000000000..8b12a7bfc5 --- /dev/null +++ b/Base/usr/share/man/man1/stat.md @@ -0,0 +1,36 @@ +## Name + +stat - Display file status + +## Synopsis + +```**sh** +$ stat [-L] file +``` + +## Description + +Display file status and provide more information about that file. + +## Options + +* `-L`: Follow links to files +* `--help`: Display help message and exit +* `--version`: Print version + +## Examples + +```sh +$ stat -L /bin/ls + File: /bin/ls + Inode: 8288 + Size: 184896 + Links: 1 + Blocks: 376 + UID: 0 (root) + GID: 0 (root) + Mode: (100755/-rwxr-xr-x) +Accessed: 2022-10-20 03:56:56 +Modified: 2022-10-20 03:55:34 + Changed: 2022-10-20 03:56:57 +``` diff --git a/Base/usr/share/man/man1/which.md b/Base/usr/share/man/man1/which.md new file mode 100644 index 0000000000..43792b7a48 --- /dev/null +++ b/Base/usr/share/man/man1/which.md @@ -0,0 +1,25 @@ +## Name + +which - show the full path of commands + +## Synopsis + +```**sh** +$ which [options] executable +``` + +## Description + +`which` provides the full path location of where an executable is installed. + +## Options + +* `--help`: Display help message and exit +* `--version`: Print version + +## Examples + +```sh +$ which ls +/bin/ls +```