OSDN Git Service

util-linux 2.38: 翻訳予約。
[linuxjm/jm.git] / manual / util-linux / original / man1 / mountpoint.1
1 '\" t
2 .\"     Title: mountpoint
3 .\"    Author: [see the "AUTHOR(S)" section]
4 .\" Generator: Asciidoctor 2.0.15
5 .\"      Date: 2022-02-17
6 .\"    Manual: User Commands
7 .\"    Source: util-linux 2.38
8 .\"  Language: English
9 .\"
10 .TH "MOUNTPOINT" "1" "2022-02-17" "util\-linux 2.38" "User Commands"
11 .ie \n(.g .ds Aq \(aq
12 .el       .ds Aq '
13 .ss \n[.ss] 0
14 .nh
15 .ad l
16 .de URL
17 \fI\\$2\fP <\\$1>\\$3
18 ..
19 .als MTO URL
20 .if \n[.g] \{\
21 .  mso www.tmac
22 .  am URL
23 .    ad l
24 .  .
25 .  am MTO
26 .    ad l
27 .  .
28 .  LINKSTYLE blue R < >
29 .\}
30 .SH "NAME"
31 mountpoint \- see if a directory or file is a mountpoint
32 .SH "SYNOPSIS"
33 .sp
34 \fBmountpoint\fP [\fB\-d\fP|\fB\-q\fP] \fIdirectory\fP|\fIfile\fP
35 .sp
36 \fBmountpoint\fP \fB\-x\fP \fIdevice\fP
37 .SH "DESCRIPTION"
38 .sp
39 \fBmountpoint\fP checks whether the given \fIdirectory\fP or \fIfile\fP is mentioned in the \fI/proc/self/mountinfo\fP file.
40 .SH "OPTIONS"
41 .sp
42 \fB\-d\fP, \fB\-\-fs\-devno\fP
43 .RS 4
44 Show the major/minor numbers of the device that is mounted on the given directory.
45 .RE
46 .sp
47 \fB\-q\fP, \fB\-\-quiet\fP
48 .RS 4
49 Be quiet \- don\(cqt print anything.
50 .RE
51 .sp
52 \fB\-\-nofollow\fP
53 .RS 4
54 Do not follow symbolic link if it the last element of the \fIdirectory\fP path.
55 .RE
56 .sp
57 \fB\-x\fP, \fB\-\-devno\fP
58 .RS 4
59 Show the major/minor numbers of the given blockdevice on standard output.
60 .RE
61 .sp
62 \fB\-h\fP, \fB\-\-help\fP
63 .RS 4
64 Display help text and exit.
65 .RE
66 .sp
67 \fB\-V\fP, \fB\-\-version\fP
68 .RS 4
69 Print version and exit.
70 .RE
71 .SH "EXIT STATUS"
72 .sp
73 \fBmountpoint\fP has the following exit status values:
74 .sp
75 \fB0\fP
76 .RS 4
77 success; the directory is a mountpoint, or device is block device on \fB\-\-devno\fP
78 .RE
79 .sp
80 \fB1\fP
81 .RS 4
82 failure; incorrect invocation, permissions or system error
83 .RE
84 .sp
85 \fB32\fP
86 .RS 4
87 failure; the directory is not a mountpoint, or device is not a block device on \fB\-\-devno\fP
88 .RE
89 .SH "ENVIRONMENT"
90 .sp
91 \fBLIBMOUNT_DEBUG\fP=all
92 .RS 4
93 enables libmount debug output.
94 .RE
95 .SH "NOTES"
96 .sp
97 The util\-linux \fBmountpoint\fP implementation was written from scratch for libmount. The original version for sysvinit suite was written by Miquel van Smoorenburg.
98 .SH "AUTHORS"
99 .sp
100 .MTO "kzak\(atredhat.com" "Karel Zak" ""
101 .SH "SEE ALSO"
102 .sp
103 \fBmount\fP(8)
104 .SH "REPORTING BUGS"
105 .sp
106 For bug reports, use the issue tracker at \c
107 .URL "https://github.com/util\-linux/util\-linux/issues" "" "."
108 .SH "AVAILABILITY"
109 .sp
110 The \fBmountpoint\fP command is part of the util\-linux package which can be downloaded from \c
111 .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."