File: stat.1

package info (click to toggle)
stat 1.1-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 88 kB
  • ctags: 12
  • sloc: ansic: 130; makefile: 43; sh: 17
file content (76 lines) | stat: -rw-r--r-- 1,662 bytes parent folder | download | duplicates (2)
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
.\" Copyright (c) 1997 Michael Meskes (meskes@topsystem.de), August 28, 1997
.\"
.\" 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 2.0.31" 
.SH NAME
stat \- display file status
.SH SYNOPSIS
.B stat
[
.I -l
] [
.I -v
] 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 -l
is identical to
.BR stat ,
only the link itself is stated, not the file that is obtained by tracing
the links.

.B stat -v
prints version information.
.SH DISPLAY
Both display the following information:
.PP
.TP
device number
.TP
inode number
.TP
access rights
.TP
number of hard links
.TP 
user ID (and name if available) of owner
.TP
group ID (and name if available) of owner
.TP
device type (if inode device)
.TP
total size, in bytes
.TP
number of blocks allocated
.TP
time of last access
.TP
time of last modification
.TP
time of last change

.PP
.SH BUGS
None known so far.
.LP
.SH AUTHORS
Completely written by Michael Meskes <meskes@debian.org>.
.LP
.SH "SEE ALSO"
.BR stat "(2)