Answer Posted / v.balaviswanathan
$ cat > filename
to overwrite this we can use
$ cat >> filename
If we want to prevent accidental overwriting we use the command
$ set -o noclobber
and with
$ set +o noclobber
can be done to overwrite a file
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Is makefile a shell script?
What does bash stand for?
Which command is used to find what is in your home directory?
What does chmod 666 do?
How remove all files in a directory linux?
You want to know how many lines in the kickoff file contains ‘prize’. Which of the following commands will produce the desired results?
What is cat command in linux?
What does touch do in linux?
Which command is used to uncompress gzip files?
Who am I command in linux?
What is cpu in top command?
What is the command to see on which port which service is running? And what is the difference between /etc/services file and net stat command?
What is command grouping?
What is the difference between diff and cmp command in unix?
How do you run a command for a limited time?