2024-02-16 01:40:38 -07:00
|
|
|
.\" Copyright (c) 2024 DTB <trinity@trinity.moe>
|
2024-03-26 18:26:51 -06:00
|
|
|
.\" Copyright (c) 2024 Emma Tebibyte <emma@tebibyte.media>
|
2024-02-16 01:40:38 -07:00
|
|
|
.\"
|
|
|
|
.\" This work is licensed under CC BY-SA 4.0. To see a copy of this license,
|
|
|
|
.\" visit <http://creativecommons.org/licenses/by-sa/4.0/>.
|
2024-06-02 18:47:14 -06:00
|
|
|
.\"
|
2024-06-23 23:34:23 -06:00
|
|
|
.TH SCRUT 1 2024-06-06 "Harakit 0.13.11"
|
2024-02-16 01:40:38 -07:00
|
|
|
.SH NAME
|
2024-02-17 23:12:39 -07:00
|
|
|
scrut \(en scrutinize file properties
|
2024-02-16 01:40:38 -07:00
|
|
|
.SH SYNOPSIS
|
2024-06-03 23:07:19 -06:00
|
|
|
|
2024-02-16 01:40:38 -07:00
|
|
|
scrut
|
2024-06-04 16:11:33 -06:00
|
|
|
.RB ( -LSbcdefgkprsuwx )
|
2024-02-16 01:40:38 -07:00
|
|
|
.RB [ file... ]
|
2024-06-02 18:47:14 -06:00
|
|
|
.\"
|
2024-02-16 01:40:38 -07:00
|
|
|
.SH DESCRIPTION
|
2024-06-03 23:07:19 -06:00
|
|
|
|
2024-06-05 23:07:15 -06:00
|
|
|
Determine if files comply with requirements. If the given files comply with the
|
|
|
|
specified requirements, the program will exit successfully. Otherwise, it exits
|
|
|
|
unsuccessfully.
|
2024-06-02 18:47:14 -06:00
|
|
|
.\"
|
2024-02-16 01:40:38 -07:00
|
|
|
.SH OPTIONS
|
2024-06-03 23:07:19 -06:00
|
|
|
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-L\fB
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and be symbolic links.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-S\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and be sockets.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-b\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and be block special files.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-c\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and be character special files.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-d\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and be directories.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-e\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist, and is redundant to any other option.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-f\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and be regular files.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-g\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and have their set group ID flags set.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-k\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and have their sticky bit set.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-p\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and be named pipes.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-r\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and be readable.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-u\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and have their set user ID flags set.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-w\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and be writable.
|
2024-06-04 16:11:33 -06:00
|
|
|
.IP \fB-x\fP
|
2024-03-26 18:26:51 -06:00
|
|
|
Requires the given files to exist and be executable.
|
2024-06-02 18:47:14 -06:00
|
|
|
.\"
|
|
|
|
.SH DIAGNOSTICS
|
2024-06-03 23:07:19 -06:00
|
|
|
|
2024-03-26 19:22:30 -06:00
|
|
|
When invoked incorrectly, a debug message will be printed and the program will
|
2024-06-02 18:47:14 -06:00
|
|
|
exit with the appropriate
|
|
|
|
.BR sysexits.h (3)
|
|
|
|
error code.
|
|
|
|
.\"
|
|
|
|
.SH RATIONALE
|
2024-06-03 23:07:19 -06:00
|
|
|
|
2024-06-02 18:47:14 -06:00
|
|
|
The
|
|
|
|
.BR test (1p)
|
|
|
|
utility contains functionality that was broken out into separate programs. Thus,
|
|
|
|
the scope of this program is narrower than it. Notably, the
|
2024-02-16 01:40:38 -07:00
|
|
|
.B -h
|
2024-02-17 23:12:39 -07:00
|
|
|
option is now invalid and therefore shows usage information instead of being an
|
|
|
|
alias to the modern
|
2024-02-16 01:40:38 -07:00
|
|
|
.B -L
|
|
|
|
option.
|
2024-06-02 18:47:14 -06:00
|
|
|
.\"
|
2024-02-16 01:40:38 -07:00
|
|
|
.SH AUTHOR
|
2024-06-03 23:07:19 -06:00
|
|
|
|
2024-06-02 18:47:14 -06:00
|
|
|
Written by DTB
|
|
|
|
.MT trinity@trinity.moe
|
|
|
|
.ME .
|
|
|
|
.\"
|
2024-02-16 01:40:38 -07:00
|
|
|
.SH COPYRIGHT
|
|
|
|
|
2024-06-02 18:47:14 -06:00
|
|
|
Copyright \(co 2024 DTB. License AGPLv3+: GNU AGPL version 3 or later
|
2024-02-16 01:40:38 -07:00
|
|
|
<https://gnu.org/licenses/agpl.html>.
|
2024-06-03 23:07:19 -06:00
|
|
|
.\"
|
2024-02-16 01:40:38 -07:00
|
|
|
.SH SEE ALSO
|
2024-06-02 18:47:14 -06:00
|
|
|
.BR access (3p),
|
|
|
|
.BR lstat (3p),
|
|
|
|
.BR test (1p)
|