Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Hi guys, I am working in MNC from 1 and half year as Software Engg but not in programming, its in Information Security. Now I am doing RHEL 5(Red Hat certification) to move into Linux Admin. Can anyone please give me the future scope of this field and please send me the interview questions or links to get the idea. Thanks, Sushant.

2 Answers  


Explain about chmod options filename?

0 Answers  


What is make command in linux?

0 Answers  


What is umask in linux?

0 Answers  


What does pwd mean in linux?

0 Answers  






what is major and minor?

2 Answers   IBM,


If the programmer wishes to execute an instruction at the specified time. Which command is used?

0 Answers  


What does curl command do in linux?

0 Answers  


What does rmdir do in linux?

0 Answers  


Explain about refer?

0 Answers  


What is the command to see all the processes are working in the last 30 days?

9 Answers  


How do I navigate in cmd?

0 Answers  






Categories