---
name: "getino"
section: "1"
platform: "linux"
package: "util-linux"
version: "2.42.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/getino"
---

# getino(1)

print the unique inode number associated to a process file descriptor or namespace for a given PID

## 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)](/kill/1.md), 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)](/namespaces/7.md) for more details.

## OPTIONS

- **-p**, **--print-pid**

  Print both the PID and pidfd/namespace inode separated by a colon ':', in respective order. This format convention can be used to address processes in a race-free manner, e.g. for signalling with the [**kill**(1)](/kill/1.md) command.

- **--pidfs**

  Print the unique inode number for a process’s pidfs file descriptor.

- **--cgroupns**

  Print the unique cgroup namespace inode number. See [**cgroup\_namespaces**(7)](/cgroup_namespaces/7.md)

- **--ipcns**

  Print the unique ipc namespace inode number. See [**ipc\_namespaces**(7)](/ipc_namespaces/7.md)

- **--netns**

  Print the unique network namespace inode number. See [**network\_namespaces**(7)](/network_namespaces/7.md)

- **--mntns**

  Print the unique mount namespace inode number. See [**mount\_namespaces**(7)](/mount_namespaces/7.md)

- **--pidns**

  Print the unique pid namespace inode number. See [**pid\_namespaces**(7)](/pid_namespaces/7.md)

- **--timens**

  Print the unique time namespace inode number. See [**time\_namespaces**(7)](/time_namespaces/7.md)

- **--userns**

  Print the unique user namespace inode number. See [**user\_namespaces**(7)](/user_namespaces/7.md)

- **--utsns**

  Print the unique uts namespace inode number. See [**uts\_namespaces**(7)](/uts_namespaces/7.md)

- **-h**, **--help**

  Display help text and exit.

- **-V**, **--version**

  Display version and exit.

## EXIT STATUS

**getino** has the following exit status values:

**0**

success

**1**

unspecified failure

## 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

[**kill**(1)](/kill/1.md) **[pidfd\_open(2)](/pidfd_open/2.md)** **[namespaces(7)](/namespaces/7.md)**

## 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/\>.
