cat command to Create & Update Files in Linux - 12 useful and advance Examples:
cat file1
Display the content of the file1 as read-only
Create new file2 and open it in edit mode in terminal
Open the file named file2 in append mode
cat file1 file2
Display contents of multiple files file1, file2 as read-only
cat –n file1
Display the line number with the content of the file1
Copy the contents of the file1 to file3 as new file
Append the contents of file1 to file2
Copy contents of file1, file2, file3 to file4.
Append file1, file2 to file3.
cat –e file1
Display $ at the end of every line in file1 contents
Display contents of large file with
Cat -T file1
Display the contents of file1 with each line tab separated