IO - Standard Input (stdin)

Card Puncher Data Processing

IO - Standard Input (stdin)

About

Standard Input is a standard stream that reads:

  • from the keyboard
  • or from a redirection such as the pipe.

How to print the file name of the terminal connected to standard input.

On Linux, you use the tty command.

tty





Discover More
Card Puncher Data Processing
Shell Data Processing - Standard Input Stream (Stdin)

in a shell cat will start a standard input session You can redirect it to a file. If your command needs plain input without terminal emulation you can use input redirection with a pipe like:...



Share this page:
Follow us:
Task Runner