| GETINO(1) | User Commands | GETINO(1) |
NAME
getino - print the unique inode number associated to a process file descriptor or namespace for a given PID
SYNOPSIS
getino [--pidfs|--cgroupns|--ipcns|--netns|--mntns|--pidns|--timens|--userns|--utsns] [--print-pid|-p] PID[:inode]...
getino [--print-pid|-p] PID[:inode]...
getino PID[:inode]...
DESCRIPTION
getino is a simple command that prints the inode numbers associated with the process file descriptor (pidfd) or namespace for all PIDs passed to it as arguments.
The kernel guarantees that the inode number associated with a process’s file descriptor is exempt from reuse during the current boot cycle; therefore, a process can be uniquely identified by its PID and the inode number, conveniently so with the format 'PID:inode'. As an example, this enables race-free signalling of processes with kill(1), which accepts the aforementioned PID format.
Inode numbers associated with a namespace for a given process are essentially namespace IDs, identical to the inode number reported by /proc/pid/ns/nstype, see namespaces(7) for more details.
OPTIONS
-p, --print-pid
--pidfs
--cgroupns
--ipcns
--netns
--mntns
--pidns
--timens
--userns
--utsns
-h, --help
-V, --version
EXIT STATUS
getino has the following exit status values:
0
1
NOTES
getino requires support for the pidfs pseudo-filesystem (introduced in Linux version 6.9), to retrieve a valid inode for a process file descriptor.
AUTHORS
Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
SEE ALSO
REPORTING BUGS
For bug reports, use the issue tracker https://github.com/util-linux/util-linux/issues.
AVAILABILITY
The getino command is part of the util-linux package which can be downloaded from Linux Kernel Archive https://www.kernel.org/pub/linux/utils/util-linux/.
| 2026-04-01 | util-linux 2.42 |