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 grep v do?
What is awk command used for?
What is grep and how do you use it?
How do you repeat a command in terminal?
What do chown command do?
What is the search command in unix?
What is the comma to show the space allocation of files?
Which command is used to kill the last background job?
What are the general commands in using unix os for a beginner?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Explain how to use grep command to list find the records of a file containing 10 different strings?
Which command is used to restrict incoming messages?
How can you see the command line history?
How do you grep a case insensitive?
What is the difference between cat command and more command?