summaryrefslogtreecommitdiff
path: root/static/v10/man1/stat.1
blob: bf9d6c4f18517a64492093ebf93b030d5b89e28a (plain)
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
.TH STAT 1
.SH NAME
stat \- file statistics and labels
.SH SYNOPSIS
.B stat
.I file ...
.SH DESCRIPTION
.I Stat
places facts about the named
.I files
on the standard output.
Successive output lines show
.IP
The file name.
.IP
Inode number, mode, link count, owner,
group, and size displayed like output from
.IR ls (1)
with options
.LR lidL .
For device files, the size is replaced by major and minor
device numbers separated by a comma.
.IP
The major and minor device numbers of this inode's file system
and the file mode in octal.
.IP
Modification, access, and change times, each on a separate line.
.IP
The security label (of the destination, if a symbolic link)
is given in the style of
.IR labtoa (3).
.IP
If the file can be opened and corresponding data
differ for the opened file, similar
information for the opened file follows.
.IP
If the file is a symbolic link, the link destination is given,
marked by
.LR -> .
.PP
.I Stat
has nocheck capability; a superuser with nocheck license can
use it to examine any file.
.SH EXAMPLES
.EX
/dev/tty:
	0 crwxrwxrwx 0 root 0 0,0
	255,255 020777
	Jun 22 22:52:30 1988
	Jun 22 22:52:30 1988
	Jun 22 22:52:30 1988
	------ ------CY 0000 0000 ...
	974  rw-rw-r-- 0 reeds other 0
	255,255 0100664
	------ ------R  0000 0000 ...
/usr/spool/man:
	9926 lrwxrwxrwx 1 doug bin 23
	7,66 0120777
	Oct 17 21:21:21 1987
	Jun 22 22:52:14 1988
	Oct 17 21:21:21 1987
	------ ------C  0000 0000 ...
	-> /n/bowell/usr/spool/man
.EE
.SH DIAGNOSTICS
Diagnostics appear on the standard output.
.SH SEE ALSO
.IR stat (2),
.IR ls (1),
.IR getlab (1)