forked from bonsai/harakit
125 lines
2.2 KiB
Groff
125 lines
2.2 KiB
Groff
.\" Copyright (c) 2024 DTB <trinity@trinity.moe>
|
|
.\" Copyright (c) 2024 Emma Tebibyte <emma@tebibyte.media>
|
|
.\"
|
|
.\" 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/>.
|
|
|
|
.TH scrut 1
|
|
|
|
.SH NAME
|
|
|
|
scrut \(en scrutinize file properties
|
|
|
|
.SH SYNOPSIS
|
|
|
|
scrut
|
|
.RB ( -bcdefgkprsuwxLS )
|
|
.RB [ file... ]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
Determine if files comply with requirements.
|
|
|
|
.SH OPTIONS
|
|
|
|
.B -L
|
|
.RS
|
|
Requires the given files to exist and be symbolic links.
|
|
.RE
|
|
|
|
.B -S
|
|
.RS
|
|
Requires the given files to exist and be sockets.
|
|
.RE
|
|
|
|
.B -b
|
|
.RS
|
|
Requires the given files to exist and be block special files.
|
|
.RE
|
|
|
|
.B -c
|
|
.RS
|
|
Requires the given files to exist and be character special files.
|
|
.RE
|
|
|
|
.B -d
|
|
.RS
|
|
Requires the given files to exist and be directories.
|
|
.RE
|
|
|
|
.B -e
|
|
.RS
|
|
Requires the given files to exist, and is redundant to any other option.
|
|
.RE
|
|
|
|
.B -e
|
|
.RS
|
|
Requires the given files to exist and be regular files.
|
|
.RE
|
|
|
|
.B -g
|
|
.RS
|
|
Requires the given files to exist and have their set group ID flags set.
|
|
.RE
|
|
|
|
.B -k
|
|
.RS
|
|
Requires the given files to exist and have their sticky bit set.
|
|
.RE
|
|
|
|
.B -p
|
|
.RS
|
|
Requires the given files to exist and be named pipes.
|
|
.RE
|
|
|
|
.B -r
|
|
.RS
|
|
Requires the given files to exist and be readable.
|
|
.RE
|
|
|
|
.B -u
|
|
.RS
|
|
Requires the given files to exist and have their set user ID flags set.
|
|
.RE
|
|
|
|
.B -w
|
|
.RS
|
|
Requires the given files to exist and be writable.
|
|
.RE
|
|
|
|
.B -x
|
|
.RS
|
|
Requires the given files to exist and be executable.
|
|
.RE
|
|
|
|
.SH EXIT STATUS
|
|
|
|
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 sysexits.h(3) error code.
|
|
|
|
.SH STANDARDS
|
|
|
|
The test(1p) utility contains functionality that was broken out into separate
|
|
programs. Thus, the scope of this program is narrower than it. Notably, the
|
|
.B -h
|
|
option is now invalid and therefore shows usage information instead of being an
|
|
alias to the modern
|
|
.B -L
|
|
option.
|
|
|
|
.SH AUTHOR
|
|
|
|
Written by DTB <trinity@trinity.moe>.
|
|
|
|
.SH COPYRIGHT
|
|
|
|
Copyright © 2024 DTB. License AGPLv3+: GNU AGPL version 3 or later
|
|
<https://gnu.org/licenses/agpl.html>.
|
|
|
|
.SH SEE ALSO
|
|
|
|
access(3p), lstat(3p), test(1p)
|