Hello friends, I am writing this blog which will let you know how to create a file using cat
command.
Using cat to create a file
cat is useful for creating a file. Enter the command cat
, followed by the > (the right chevron) character and the filename (for example, amuk):
$ cat > amuk
This is my new file in Ubuntu 14.04 LTS.
This file will create my new file.
[Ctrl-d]
$ _ Prompt returns
Press Enter to terminate the command. cat
will wait for user to enter input. Now enter your text and press Ctrl+d to tell the system that this is the eof. cat
is the command which is used to create, append and concatenate files.
I think this blog will be helpful to understand the basic concept of creating files using cat
command.
Thanks for reading the blog.
0 Comment(s)