Linuxcat

. Create a File with Cat Command We will create a file called test2 file with the below command.

cat >test2

Awaits input from the user, type desired text, **and press CTRL+D **(hold down Ctrl key and type ‘d‘) to exit. The text will be written in the test2 file. You can see the content of the file with the following cat command.

cat test2

hello everyone, how do you do?