How do you create a file in UNIX
Answer Posted / gramper
We can create empty file by using the command
$ touch filename
Adding contents to an empty file
$ cat >>filename
- writing any contents
-ctl + d
$ cat filename
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Which command is used to kill the last background job?
How does shebang work?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Who invented grep?
Write a command that will display files in the current directory, in a colored, long format.
What is the comma to show the space allocation of files?
What is the use of tee command?
What is the use of awk command in unix?
What are the differences among a system call, a library function, and a unix command?
Name the various commands that are used for the user information in unix.
What is the first character of the output in ls l command?
Name the unix command to find how many days the server has been up.
What do chown command do?
Why is it called a shebang?
What does the “echo” command do?