how to create a new file command

Answers were Sorted based on User's Feedback



how to create a new file command..

Answer / nandhini

cat > filename

Is This Answer Correct ?    0 Yes 0 No

how to create a new file command..

Answer / kushagra sharma

md command is new file create

Is This Answer Correct ?    0 Yes 1 No

how to create a new file command..

Answer / kushagra sharma

md filename enter

Is This Answer Correct ?    0 Yes 1 No

how to create a new file command..

Answer / madi.czadi@gmail.com

cat /dev/null > file

Is This Answer Correct ?    0 Yes 2 No

how to create a new file command..

Answer / vinayakkatkar

nano filename

Is This Answer Correct ?    5 Yes 8 No

how to create a new file command..

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

how to create a new file command..

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

Post New Answer

More Linux Commands Interview Questions

What is trusted/untrusted operating system?

8 Answers  


What is simple command?

0 Answers  


What is the difference between rmdir and rm r?

0 Answers  


What Command used to lock user password?

0 Answers  


How do I find command history in linux?

0 Answers  






What is command grouping?

0 Answers  


what is soft mount and hard mount? i have to make permanent nfs mount permanent what shall i do?

4 Answers   IBM,


How do I find hostname in linux?

0 Answers  


What does chmod 755 do?

0 Answers  


What is the difference between locating and locate command?

0 Answers  


Explain difference between nfs soft and hard mouniting points?

0 Answers  


hi friends how to reinstall the grub.conf file. once i delete the grub file in perminatle ofter how to get back that file. plz send me ans. regards. madhu.m

5 Answers  


Categories