unix cat command code example

Example 1: cat command

# cat command be used to show, create and redirect the contents of file
# create file called test.txt and ask for input
cat >test.txt
# show command 
cat text.txt
# Combinint multiple files into single files
cat text text2 text3 > text3

Example 2: cat meaning linux

$ cat file.txt #cat shows contents of file
This is the content of file.txt

Example 3: cat command in linux with examples

$  cat example.txt

Example 4: cat command in linux

cat command allows us to 
create single or multiple files,view contain of file, concatenate files and redirect output in terminal or files.