Standard input

From Linux Shell Scripting Tutorial - A Beginner's handbook
Jump to: navigation, search
← Input and OutputHomeStandard output →
  • Standard input is the default input method, which is used by all commands to read its input.
  • It is denoted by zero number (0).
  • Also known as stdin.
  • The default standard input is the keyboard.
  • < is input redirection symbol and syntax is:
 command < filename
cat < /etc/passwd
Input redirection done using file
sort < /etc/resolv.conf
← Input and OutputHomeStandard output →