what are the different commands used to create files?
Answers were Sorted based on User's Feedback
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 |
Answer / ravindran m
1.touch - to create empty files (e.g) - touch <filename>
2.vi <filename>
| Is This Answer Correct ? | 3 Yes | 0 No |
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 |
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 |
Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.
How would you change all occurrences of a value using VI?
How do you find which version and name of unix you are using at the command prompt?
What is the command to find maximum memory taking process on the server?
what does the 'tee' command do?
what will this do $cat > file.c ?(file.c is a file in current directory)
What is the difference between udp and tcp?
How do you list the files in an UNIX directory while also showing hidden files?
How do you copy a directory with many files and folders into another directory?
what is the default signal kill in unix?
What is the use of find command in unix?
What is the use of finger command?