Name | Type | Required | Default | Hint |
file | string | true | File to create | |
force | boolean | false | false | If forced, then file will be recreated even if it exists |
open | boolean | false | false | Open the file after creating it |
Create a new file according to its name if it does not exist. If it exists, modify its last updated date and time to now.
touch file.txtUse the open parameter to open the file in your default editor after creating it
touch index.cfm --openUse the force parameter to overwrite the contents of the file to be empty even if it exists.
touch file.txt --force