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
Why is shebang used?
Why is it called a shebang?
What happens when we execute a unix command?
Can you enlist some commonly used network commands?
What is the first character of the output in ls l command?
Which command is used to kill the last background job?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
Explain command to display different lines that are found when compare two files?
What do chgrp command do?
What is command statement?
What do know about tee command?
What are the differences among a system call, a library function, and a unix command?
Is ‘du’ a command? If so, what is its use?
How do I run a whois command?
What are filter commands in unix?