what are the different commands used to create files?

Answers were Sorted based on User's Feedback



what are the different commands used to create files?..

Answer / sudam

We can use the below commands for creating a file
touch, cat, vi, vim, pico
A) touch: touch <file name>
B) cat: cat > <file name>
C) vi: vi <file name>
D) vim: vim <file name>
E) pico: pico <file name>

Is This Answer Correct ?    8 Yes 0 No

what are the different commands used to create files?..

Answer / ravindran m

1.touch - to create empty files (e.g) - touch <filename>
2.vi <filename>

Is This Answer Correct ?    3 Yes 0 No

what are the different commands used to create files?..

Answer / subbareddy kake

1.touch <file name>
2.cat > filename
3.> file name
4.by using editors like vi
5.echo > file name
6.tee file name
7.vim file name

Is This Answer Correct ?    1 Yes 1 No

what are the different commands used to create files?..

Answer / abani_mahana

touch, cat, vi, vim, pico
A) touch: touch <file name>
B) cat: cat > <file name>
C) vi: vi <file name>
D) vim: vim <file name>
E) pico: pico <file name>

Is This Answer Correct ?    0 Yes 0 No

what are the different commands used to create files?..

Answer / blakwolph

cat

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Unix Commands Interview Questions

Name the various commands that are used for the user information in unix.

1 Answers  


What is in grep command?

1 Answers  


How can you copy files or directories?

1 Answers  


What are filter commands in unix?

1 Answers  


What is difference between grep and find command in unix?

1 Answers  


Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.

8 Answers   Concentrix, IBM, Symantec, TCS,


what is the command to find out which shell you are running?

14 Answers  


what do you understand bythe term 'de-mountable volumes'?

2 Answers   Infosys,


Why is awk called awk?

1 Answers  


If we want to see first 35 lines of a file which command we have to use?

8 Answers  


How will you know who are the users logged in to the system before 15 minutes?

4 Answers   Amazon,


What is the output of : $ ps-e $ ps-a commands

5 Answers   IBM,


Categories