1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

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

This commit is contained in:
jahway603 2022-10-20 18:45:31 -04:00 committed by Linus Groh
parent d5cf403f70
commit e9ca641d45
2 changed files with 61 additions and 0 deletions

View 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
```

View 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
```