overgrown/docs/scrut.1

89 lines
2.2 KiB
Groff
Raw Normal View History

2024-02-16 01:40:38 -07:00
.\" Copyright (c) 2024 DTB <trinity@trinity.moe>
.\" 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-02-16 01:40:38 -07:00
.TH scrut 1
.SH NAME
scrut \(en scrutinize file properties
2024-02-16 01:40:38 -07:00
.SH SYNOPSIS
.\"
2024-02-16 01:40:38 -07:00
scrut
.RB ( -bcdefgkprsuwxLS )
.RB [ file... ]
.\"
2024-02-16 01:40:38 -07:00
.SH DESCRIPTION
.\"
Determine if files comply with requirements.
.\"
2024-02-16 01:40:38 -07:00
.SH OPTIONS
.\"
.IP -L
Requires the given files to exist and be symbolic links.
.IP -S
Requires the given files to exist and be sockets.
.IP -b
Requires the given files to exist and be block special files.
.IP -c
Requires the given files to exist and be character special files.
.IP -d
Requires the given files to exist and be directories.
.IP -e
Requires the given files to exist, and is redundant to any other option.
.IP -e
Requires the given files to exist and be regular files.
.IP -g
Requires the given files to exist and have their set group ID flags set.
.IP -k
Requires the given files to exist and have their sticky bit set.
.IP -p
Requires the given files to exist and be named pipes.
.IP -r
Requires the given files to exist and be readable.
.IP -u
Requires the given files to exist and have their set user ID flags set.
.IP -w
Requires the given files to exist and be writable.
.IP -x
Requires the given files to exist and be executable.
.\"
.SH DIAGNOSTICS
.\"
If the given files comply with the specified requirements, the program will exit
successfully. If not, it exits unsuccessfully.
When invoked incorrectly, a debug message will be printed and the program will
exit with the appropriate
.BR sysexits.h (3)
error code.
.\"
.SH RATIONALE
.\"
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
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-02-16 01:40:38 -07:00
.SH AUTHOR
.\"
Written by DTB
.MT trinity@trinity.moe
.ME .
.\"
2024-02-16 01:40:38 -07:00
.SH COPYRIGHT
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>.
.SH SEE ALSO
.BR access (3p),
.BR lstat (3p),
.BR test (1p)