mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
Base: Add manpages for which(1) and stat(1)
This commit is contained in:
parent
d5cf403f70
commit
e9ca641d45
2 changed files with 61 additions and 0 deletions
36
Base/usr/share/man/man1/stat.md
Normal file
36
Base/usr/share/man/man1/stat.md
Normal file
|
@ -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
Base/usr/share/man/man1/which.md
Normal file
25
Base/usr/share/man/man1/which.md
Normal file
|
@ -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
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue