User Tools

Site Tools


unix_commands:cat

cat - concatenate and print files

Concatenate, or cat, is one of the most frequently used Linux and Unix-like system commands. It lists, combines, and writes file content to the standard output. To run the cat command, type cat followed by the file name.

$ cat filename.txt

1. To create a new file, type as listed below:

$ cat > filename.txt

2. The following command will merge filename1.txt AND filename2.txt and will save the output in filename3.txt

$ cat filename1.txt filename2.txt > filename3.txt
unix_commands/cat.txt ยท Last modified: 2023/01/16 04:48 by admin

CIFNet is a leading hosting solution provider, offering a wide range of services including IP bandwidth, co-location, VMware and KVM hosting.
Host Your Site with CIFNet!