Linux named pipe example

mkfifo named_pipe
echo "Hi" > named_pipe &
cat named_pipe
The first command creates the pipe(an especial file type denoted by p in first character in ls -l)
The second command echo, writes simple string "Hi" to the pipe (blocking). The & puts this into the background so you can continue to type in the same shell. It will exit when the FIFO is emptied by the next command.
The last command cat reads from the pipe