touch Command
touch Command
Section titled “touch Command”In linux world, touch
command is used to change file timestamps. It is a simple command that can be used to create an empty file or update the access and modification times of a file.
iza touch DATABASE/COLLECTION...
If value for the database is empty, then it will be added to test database. If the database doesn’t exist, then it will be created. If the collection already exists, then it will not be created or modified. You can provide multiple arguments to create multiple collections at once.
For example: iza touch demoDb/demoCollection01 testCollection02 sampleDb/sampleCollection03
It will create three collections:
- demoCollection01 in the demoDb,
- testCollection02 in the test database,
- and sampleCollection03 in the sampleDb.