cat
is a command that says
In this operation example, the cat
command was launched without a filename, so the operation is the former.
No redirect, so the standard input is a keyboard and the standard output is a screen.
That's why I'm performing the operation of "printing the input directly from the keyboard onto the screen."
To get EOF
from the keyboard ctrl-D
on Linux ctrl-Z
on Windows
This time ctrl-C
is given, so it is not terminated normally, but forced to stop.
The cat
command is a concatenation of the contents of the text file specified in the argument.
By default, one or more existing files are often run with arguments.
$cat FILE1.txt
$ cat FILE1.txt FILE2.txt
In the example run, no file was specified for the argument, so it is waiting to be entered.
The characters that you typed themselves are displayed on the screen.
It's not bash.On the first line, run the cat
command, which prints the characters exactly as they are entered.The termination of the input is recognized by the Ctrl+D
key.
© 2024 OneMinuteCode. All rights reserved.