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 is difference between $@ and $* in UNIX Shell script
You read an article that lists the following command: dd if=/dev/fdo bs=512 of=/new what does this accomplish?
The command ‘umask -S’
What is chainloading?
What is lsof command in linux?
What does bash stand for?
What is the symbol of linux?
I want to built a fire wall using iptables. My condition is " inbound to 192.168.0.2 with a port of 80 from 172.168.0.1 should accept"
If the programmer wishes to execute an instruction at the specified time. Which command is used?
Enlist some linux networking and troubleshooting commands?
You issue the command head * what would the resulting output be?
How do I run multiple commands in linux?