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 is the comma to display different lines that are found when compare two files?
What is the functionality of a top command?
Explain command to show the space allocation of files?
What is the use of finger command?
What is $0 bash?
Does cp command overwrite files?
What is the use of tee command?
What does 'mkdir' command do in UNIX?
What are the general commands in using unix os for a beginner?
What is the use of egrep command in unix?
How to find $ai_serual resolved path by using unix
What does pipe () return?
What does touch command do in unix?
Write a command that will display files in the current directory, in a colored, long format.
What do chgrp command do?