summaryrefslogtreecommitdiff
path: root/Base/usr
diff options
context:
space:
mode:
authorjahway603 <jahway603@protonmail.com>2022-10-20 18:45:31 -0400
committerLinus Groh <mail@linusgroh.de>2022-11-07 19:19:09 +0000
commite9ca641d45340775509a4efea4a7ebdc9d7b6498 (patch)
tree1fcaec6764845248442659ab61d452b7fd141e8e /Base/usr
parentd5cf403f709a39e2a5b436d149d86b6eef1571b0 (diff)
downloadserenity-e9ca641d45340775509a4efea4a7ebdc9d7b6498.zip
Base: Add manpages for which(1) and stat(1)
Diffstat (limited to 'Base/usr')
-rw-r--r--Base/usr/share/man/man1/stat.md36
-rw-r--r--Base/usr/share/man/man1/which.md25
2 files changed, 61 insertions, 0 deletions
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
+```