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 this command do? Cat food 1 > kitty
Enumerate some of the most commonly used network commands in unix?
What is the use of awk command in unix?
Which command should you use to find the remaining disk space in unix server?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is the use of the tee command?
What are the general commands in using unix os for a beginner?
What is a command and examples?
How do I run a bash script?
How do I open a port?
What are reported commands?
Explain the steps that a shell follows while processing a command.
Name the various commands that are used for the user information in unix.
What is updatedb?
Can you enlist some commonly used network commands?