Standard input
From Linux Shell Scripting Tutorial - A Beginner's handbook
- 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
- For example, you can run cat command as follows to display /etc/passwd on screen:
cat < /etc/passwd
- To sort /etc/resolv.conf file, enter:
sort < /etc/resolv.conf
