Our Leadership team is attending CloudFest 2026, from Mar 22 - April 8. Schedule a Connect

Our Leadership team is attending CloudFest 2026, from Mar 22 - April 8.

Discuss MSP growth, DevOps excellence, and Cloud Transformation. Available for 1:1 meetings, Schedule a Connect

  • DevOps
    Case Study

    How we helped a development company rebuild DevOps for efficiency and scale.

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How a US hosting leader scaled with us!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    Enabling financial grade platforms through strategic cloud modernisation.

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Managed Services Overview
  • Kubernetes Consulting
  • DevOps as a Service
  • Infrastructure Monitoring
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Services
  • Managed Services

aws partneraws advanced partner
LinkedInFacebookXInstagramYouTube
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy
Use and examples of Named Pipes

Use and examples of Named Pipes

Author Profile
Anitta Jose
  • 3 min read
Use and examples of Named Pipes

Generating audio, please wait...

Pipe is a method for Inter Process Communication (IPC) which send output of one process to another process. As you know, pipes are of two types:

  • Unnamed Pipes

  • Named Pipes

Unnamed Pipe

An example of unnamed pipe is as follows:

$ ls | wc -l

Here output of first command is given as an input to the second command. On the command line, it is represented by a “|” symbol between two commands. This is a one way pipe which usually transfers data between parent and child process. This pipe vanishes when either of the process completes its execution or when they are closed. It is used for local communication and cannot be used over a network.

Named Pipe

The Named pipe is a method for passing information from one computer process to another using a pipe which is given a specific name. Unix and Windows, both have “Named pipes”, but they behave differently. On Unix, a named pipe is one-way street which typically has just one reader and one writer – the writer writes, and the reader reads, you get it? On Windows, the “Named pipe” is an IPC object more like a TCP socket – things can flow both ways and there is some metadata (You can obtain the credentials of the thing on the other end etc).

Named Pipe is also called FIFO, which stands for First In First Out. On older Linux system, named pipes are created using the command mknod whereas mkfifo is used in modern systems.

$ mkfifo pipe1 $ ls -l pipe1 prw-rw-r-- 1 user user 0 Dec 13 10:12 pipe1

Here, ‘p’ indicated that ‘pipe1’ is a pipe. Once created, you can use the pipe just like a normal file (open, close, write, read, etc).

The main difference between a regular file and a named pipe is that a named pipe is a special type of file which has no contents, but accessed as a part of the filesystem. It can be opened by multiple process for reading and writing. A named pipe is opened on both ends for reading at one and writing at another. It does not use CPU too. Consider the following example,

$ mkfifo /tmp/myfile.sock $ cd /home/user/documents $ t&r cvf - . | gzip > /tmp/myfile.sock & [2958]

Here, you should see the PID of the gzip process. In our example it is 2958. Now let’s check what this PID is doing using ps acommand.

$ ps u -P 2958 USER  PID  %CPU %MEM  VSZ   RSS   TTY   
STAT START TIME COMMAND user 2958  0.0   0.0  39276 7900 pts/4   S  00f08 0f00  bash

You will see that it is using no resources i.e, it has 0% CPU usage and  0% memory usage. Now lets verify the hunch regarding its file space usage:

$ du -h /tmp/myfile.sock 0 myfile.sock

And again 0, nothing. The myfile.sock could be used again if needed. Don’t forget to kill gzip using kill command and remove our named pipe using rm command:

$ kill -15 2958 $ rm /tmp/myfile.sock

  • Linux

“SED” Options and its usage

“SED”  Options and its usage
  • Howtos
  • Linux
logo

An Introduction to AWK

An Introduction to AWK
  • Linux
  • Training
logo

Configure Disk Quota on Ubuntu Server

Configure Disk Quota on Ubuntu Server
  • Linux
logo

How to check whether UDP connection is open or not?

How to check whether UDP connection is open or not?
  • Linux
logo

Posts by Anitta Jose

Anitta is systems engineer since 2015 and holds broad experience in Linux, WordPress, and cPanel systems administration. Her interest lies more in Cloud technologies (AWS). From 2016, she writes blogs to share her experiences with wider audience.