File: stat.1

package info (click to toggle)
stat 2.2-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 68 kB
  • ctags: 30
  • sloc: ansic: 276; makefile: 51
file content (119 lines) | stat: -rw-r--r-- 2,239 bytes parent folder | download
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
.\" Copyright (c) 1997-1999 Michael Meskes (meskes@debian.org)
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.TH STAT 1 "28 August 1997" "Linux" 
.SH NAME
stat \- display file or filesystem status
.SH SYNOPSIS
.B stat 
[\fI-l\fR] [\fI-f\fR] [\fI-v\fR] [\fI-t\fR] 
file-name [file-name]... 
.SH DESCRIPTION
.PP
This command displays information about the specified file(s).  You do
not need any access rights to the file to get this information but you
need search rights to all directories named in the path leading to the
file.
.PP
.B stat
stats the file pointed to by 
.I file-name

.B stat
.I -l
is identical to
.BR stat ,
only that for links information about the files that are obtained by tracing
the links is displayed.

.B stat
.I -f 
does not stat the file itself but instead stats the filesystem where
.I file-name
is located.

.B stat
.I -v
prints version information.

.B stat
.I -t 
prints the information in terse form, suitable for parsing by other 
programs

.SH DISPLAY
.B stat 
and
.B stat
.I -l
both display the following information:
.PP

Fevice number

Inode number

Access rights

Number of hard links
 
User ID (and name if available) of owner

Group ID (and name if available) of owner

Device type (if inode device)

Total size, in bytes

Number of blocks allocated

Time of last access

Time of last modification

Time of last change


If
.I -f
is specified the following information is displayed:
.PP

Filesystem type

Block size of the filesystem

Total blocks in the filesystem

Free blocks

Free blocks for non-root user(s)

Total inodes

Free inodes

Maximum length of filenames

.PP
.SH BUGS
None known so far.
.LP
.SH AUTHORS
Written by Michael Meskes <meskes@debian.org>, 
.I -f 
added from 
.BR statfs 
by
Radovan Garabik <garabik@melkor.dnp.fmph.uniba.sk>
.LP
.SH "SEE ALSO"
.BR stat "(2),
.BR statfs "(2)