aboutsummaryrefslogtreecommitdiff
path: root/ja_JP.eucJP/man/man1/df.1
blob: df0aca5a05d18306d0a93b45b5b6f9b7285f9761 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
.\" Copyright (c) 1989, 1990, 1993
.\"	The Regents of the University of California.  All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"     @(#)df.1	8.3 (Berkeley) 5/8/95
.\"	%Id: domainname.1,v 1.6 1998/05/13 07:37:23 charnier Exp %
.\" jpman %Id: df.1,v 1.2 1997/04/07 05:31:08 mutoh Stab %
.\"
.Dd May 8, 1995
.Dt DF 1
.Os BSD 4
.Sh 名称
.Nm df
.Nd ディスクの空き領域等の表示
.Sh 書式
.Nm df
.Op Fl ikn
.Op Fl t Ar type
.Op Ar file | Ar filesystem ...
.Sh 解説
.Nm
は、
.Ar file_system
で指定したファイルシステム、
もしくは
.Ar file
で指定したファイルが実際に格納されているファイルシステムの空きディスク容量の
表示を行います。
ディスク容量は、512 バイトを 1 ブロックとしたブロック数で表示
します。
.Nm
の引数として、
.Ar file_system
も
.Ar file
も指定されなかった場合は、マウントされているすべてのファイ
ルシステムについての情報を表示します。
ただし、
.Fl t
オプションによって、表示するファイルタイプの指示が可能です。
.Pp
オプションとしては以下のものがあります:
.Bl -tag -width Ds
.It Fl i
フリーな i ノードの情報も表示します。
.It Fl k
デフォルトの 512 バイトではなく、 1024 バイト (1K バイト)
を 1 ブロックとしてディスク容量を表示します。
このオプションは、環境変数
.Ev BLOCKSIZE
の指示を無効にします。
.It Fl n
.Fl n
オプションが指定されると、
.Nm
は、ファイルシステムから以前に得た情報を返します。
情報の問い合わせに長い時間を要するおそれのあるファイルシステムに対して
用いるオプションです。
このオプションを指定すると、
.Nm
はファイルシステムに新しい情報を問い合わせず、
以前に取得しておいた最新ではない可能性のある情報を表示します。
.It Fl t
指示されたタイプのファイルシステムに関する情報のみ
を表示します。
複数のタイプをコンマで区切ってリスト指定可能です。
リスト中のファイルシステムタイプの前に
.Dq no
を付けて、そのファイルシステムタイプに対しては動作
.Em しない
ように指定可能です。
例えば、
.Nm
コマンド:
.Bd -literal -offset indent
df -t nonfs,mfs
.Ed
.Pp
は
.Tn NFS
および
.Tn MFS
以外の全ファイルシステムを表示します。
システム上で利用可能なファイルシステムタイプは
.Xr sysctl 8
コマンドを使用して調べられます:
.Bd -literal -offset indent
sysctl vfs
.Ed
.El
.Sh 環境変数
.Bl -tag -width BLOCKSIZE
.It Ev BLOCKSIZE
環境変数
.Ev BLOCKSIZE
が設定されていれば、指定された値をブロックサイズとしてブロック数を表示します。
.El
.Sh バグ
.Ar file_system
または
.Ar file
が指示されてた場合は、
.Fl n
オプションと
.Fl t
オプションは
無効になります。
.Sh 関連項目
.Xr quota 1 ,
.Xr fstatfs 2 ,
.Xr getfsstat 2 ,
.Xr statfs 2 ,
.Xr getmntinfo 3 ,
.Xr fstab 5 ,
.Xr mount 8 ,
.Xr quot 8 ,
.Xr sysctl 8
.Sh 歴史
.Nm
ユーティリティは
.At v1
から登場しています。