How can we create a empty file with the unix name -stuff.
It means the name start with -. I tried with touch -stuff but it didn't work.
|
|
|||||
|
|
In general, most utilities have options that begin with For more information about general conventions that many utilities follow, see Section 12: "Utility Conventions" of the Base Definitions Volume of the Single Unix Specification. Another way to create an empty file is by using the shell's redirection operator like so: |
|||||||||||||||
|
|
Also
What happens here: for "usual" filenames the current directory ( |
||||
|
|
|
You can also use:
|
|||||
|
|
As your question relates specifically to creating an empty file, be aware that To be certain that you end up with an empty file, you can use the
|
|||||
|
