Answer Posted / kesava swamy pindi
Yes, we can use 'cat' command as an editor.
Ex: cat > names.txt
hai
hello
ctrl+c
Here, iam creating a file called 'names.txt'. If this file
already exists, the old contents of the file will be
overwritten; else new empty file is created and data is
placed in this file.
Also, we can append new content to existing file using cat
command.
Ex: cat >> names.txt
bye
crtl+c
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What does the command '$ls | wc –l > file1' do?
What is the behavioural difference between cmp and diff commands?
What is “chmod” command?
How do I search for a file in unix command?
Which command should you use to find the remaining disk space in unix server?
What do chmod command do?
Which command is used to find whether the system is 32 bit or 64 bit?
How can you see the command line history?
Name the unix command to find how many days the server has been up.
What is nr in awk command?
Explain ‘system calls’ with respect to unix commands?
What is ctrl d?
What is the use of cut command in unix?
What is the size of time_t?
Which command is used to create a directory?