2017-03-07 11:33:50 +09:00
|
|
|
.\" Copyright 2017 Red Hat, Inc.
|
|
|
|
.\"
|
|
|
|
.\" This file may be copied under the terms of the GNU Public License.
|
|
|
|
.TH FINCORE 1 "March 2017" "util-linux" "User Commands"
|
|
|
|
.SH NAME
|
|
|
|
fincore \- count pages of file contents in core
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B fincore
|
|
|
|
[options]
|
|
|
|
.I file ...
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B fincore
|
|
|
|
counts pages of file contents being resident in memory(in core), and
|
|
|
|
reports the numbers. An output line has 3 columns: the number of
|
2017-03-23 14:09:20 +01:00
|
|
|
pages in core, a file size, and a file name. If an error
|
|
|
|
occurs during counting, then an error message is printed to the stderr and
|
2017-03-07 11:33:50 +09:00
|
|
|
.B fincore
|
|
|
|
continues processing the rest of files listed in a command line.
|
2017-03-23 14:27:42 +01:00
|
|
|
|
|
|
|
The default output is subject to change. So whenever possible, you should
|
|
|
|
avoid using default outputs in your scripts. Always explicitly define expected
|
|
|
|
columns by using
|
|
|
|
.B \-\-output
|
|
|
|
.I columns-list
|
|
|
|
in environments where a stable output is required.
|
2017-03-07 11:33:50 +09:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2017-03-23 14:17:46 +01:00
|
|
|
.BR \-n , " \-\-noheadings"
|
|
|
|
Do not print a header line in status output.
|
|
|
|
.TP
|
|
|
|
.BR \-b , " \-\-bytes"
|
|
|
|
Print the SIZE column in bytes rather than in a human-readable format.
|
|
|
|
.TP
|
2017-03-23 14:27:42 +01:00
|
|
|
.BR \-o , " \-\-output \fIlist\fP"
|
|
|
|
Define output columns. See the \fB\-\-help\fP output to get a list of the
|
|
|
|
currently supported columns. The default list of columns may be extended if \fIlist\fP is
|
|
|
|
specified in the format \fI+list\fP.
|
|
|
|
.TP
|
2017-03-07 11:33:50 +09:00
|
|
|
\fB\-V\fR, \fB\-\-version\fR
|
|
|
|
Display version information and exit.
|
|
|
|
.TP
|
|
|
|
\fB\-h\fR, \fB\-\-help\fR
|
|
|
|
Display help text and exit.
|
|
|
|
.SH AUTHORS
|
|
|
|
.MT yamato@\:redhat.com
|
|
|
|
Masatake YAMATO
|
|
|
|
.ME
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR mincore (2),
|
|
|
|
.BR getpagesize (2),
|
|
|
|
.BR getconf (1)
|
|
|
|
.SH AVAILABILITY
|
|
|
|
The example command is part of the util-linux package and is available from
|
|
|
|
.UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
|
|
|
|
Linux Kernel Archive
|
|
|
|
.UE .
|