how to create a new file command
Answers were Sorted based on User's Feedback
Answer / googler
there are many ways to create new file , out of these two are.
1. create file and write simultanesly using
cat >> "file name" , this command will create file with name
" file name" and allowing you to enter text there itself.
2. create file now , and write in it later using
touch "file name" , this command simply create one file
named " file name" , but laert not prompt you to enter data
there
itself.
| Is This Answer Correct ? | 3 Yes | 6 No |
Answer / 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 |
You have a tab delimited file called phonenos and want to change each tab to four spaces. What command can you use to accomplish this?
How will you suspend a running process and put it in the background?
i am prepairing for 2+ yrs exp in oracle/unix production support, which topics should i cover in unix/linux and sql plz help
How use more command in linux?
What is devops model?
what is ldd?
7 Answers IBM, Magnum, TCS, Tech Mahindra,
What is the command can be used to check for file corruption?
What is the difference between find and locate command in linux?
What the command used for search file or files for specific text?
What is ulimit in linux?
Does cp overwrite?
What is gnu in linux?