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 |
What does chmod do in linux?
How do you find files in Linux?
A file which is not deleted by normal user and also root (using rm), for that type of file how we delete it?
Explain grep command.
You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?
What command should you use to check your file system?
What is history command in linux?
what is the last file executed during the boot process?
What is the default number of shell commands saved in the history list of .cshrc file?
Linux system monitoring Tools?
Is cmake only for c++?
What do you mean by directory?