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 |
How do I know my linux shell version?
What is dos and its commands?
What is free linux?
How can we increase disk read performance in single command?
can any one send me one project on linux ...?
Explain Backup Managment commands in Linux.
What does mkdir mean?
What is the command to see the installed rpm's in the linux system.
What are the basic commands for user management?
when i create SAMBA server it is ok but while i try for access from windows pc he ask me only first time smb password then i close samba login next time he can`t ask for passwd why.?
What are the 4 kinds of sentences with examples?
What is the best cpu stress test?