UNIX
Programming and Technical
Programming
Technical
Why do we use touch command in UNIX?
[1] to create an empty file
[2] to rename a file
[3] both
[4] none
Read Solution (Total 7)
-
- 1 -to create an empty file
- 8 years agoHelpfull: Yes(3) No(0)
- touch command is used for creating an empty file.
The syntax for creating an empty file using touch command is as follows:
touch filename.extension
OR
touch filenaame
eg.
touch data.txt
touch new_file
touch printf_usage.C etc - 8 years agoHelpfull: Yes(0) No(0)
- touch command is used to creƤte two or more empty files
- 8 years agoHelpfull: Yes(0) No(0)
- #touch file1 file2
Touch command used multiple files - 8 years agoHelpfull: Yes(0) No(0)
- 4) NONE
touch is a standard Unix command-line interface program which is used to update the access date and / or modification date of a file or directory. In its default usage, it is the equivalent of creating or opening a file and saving it without any change to the file contents - 8 years agoHelpfull: Yes(0) No(0)
- As per the options the answer is [1] to create an empty file
but "TOUCH" is not just to create a file, it is used to create, change and modify timestamps of a file.
Here is the link for it:-
https://www.tecmint.com/8-pratical-examples-of-linux-touch-command/
Also you can see manuals of TOUCH if on unix based system by typing
man touch - 7 years agoHelpfull: Yes(0) No(0)
- 1)touch command is used to create the empty file.
- 5 years agoHelpfull: Yes(0) No(0)
UNIX Other Question