Browse Source

Base: Add manpages for which(1) and stat(1)

jahway603 2 years ago
parent
commit
e9ca641d45
2 changed files with 61 additions and 0 deletions
  1. 36 0
      Base/usr/share/man/man1/stat.md
  2. 25 0
      Base/usr/share/man/man1/which.md

+ 36 - 0
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
+```

+ 25 - 0
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
+```