cat command is used to create a file.
$ cat >text1
It will allow you to add contents into text1 file.
press ctrl+C to save you added content into text1 file.
Create file with echo command
echo is also used to create a file
echo “This is a test” >test1
This will create a file named test1.