How to Find Named Pipes (FIFOs) in Ubuntu (find -type p)

The Data Pipeline

In Ubuntu Linux, developers frequently use “Named Pipes” (also known as FIFOs – First In, First Out) to allow two completely independent background applications to talk to each other. A named pipe looks exactly like a normal text file on your hard drive, but it doesn’t actually store any data. Instead, it acts as a funnel: when Application A pours data into the pipe, the data sits there frozen until Application B opens the pipe and drinks it out. If Application B crashes, the pipe becomes clogged, and Application A will freeze forever waiting for the pipe to empty. To debug these complex server stalls, you must find exactly where these invisible pipelines are located on your disk.

Using the find Command with -type p

The Linux find command utilizes the highly specific -type p flag (lowercase P for “pipe”) to ignore all standard text files, directories, and hardware devices, returning only active or dead named pipes.

  1. Open your Terminal application (Ctrl + Alt + T) or log into your server via SSH.
  2. To scan the entire server starting from the root directory to locate every single named pipe, type the following command exactly:
  3. sudo find / -type p
  4. Press Enter and provide your administrator password.

Clearing the Blockage

The command will output the absolute path to every named pipe on your system (for example, /tmp/my_data_pipe). Once you locate the pipe associated with your frozen application, you can simply delete it using the standard rm /tmp/my_data_pipe command. When you restart the application, it will usually recreate a fresh, clean pipe and resume functioning normally.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.