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 are vim commands?
What daemon is used for scheduling of the commands?
How can I check the exit status of my previous command in Linux operating system?
0 Answers SwanSoft Technologies,
What is the command can be run to remove all the rules in an iptable table?
Which command is used to find what is in your home directory?
what is soft mount and hard mount? i have to make permanent nfs mount permanent what shall i do?
To move /home/ben/memos dir in /home/bob/memos, what is the result by mv /home/ben/memos /home/bob
How can we increase disk read performance in single command in Linux?
What is ls command and what it does?
I want to kill zombie process, but with using kill 9 i cannot kill that process? can u tell other commands?
What is grep command?
1.I want to change runlevel but the Users shall not be disturbed?how? 2.Disk have 5gb disk utilization even though files unable to create, why? 3.what are the internal and external command in linux? 4.sar command o/p? 5.how list the open files? 6.what is kernel compiling? 7.How do u See complete configuration in ur system? 8.how will u make a daily updates with cron daily? 9.which port is associated with ttys0? 10.specific some problems linux admin(if u are linux admin)faced and how did u overcome it?
10 Answers IBM, TCS,