Set the length of regular files using supported filesystem operations.
moonx cli/truncate -s 0 notes.txt
moonx cli/truncate -c -s 1M data.bin| Option | Description |
|---|---|
| -s VALUE, --size VALUE | Set a size or apply a signed adjustment. |
| -c, --no-create | Skip a missing file. |
| --help | Show help. |
| --version | Show the version. |
| -r VALUE, --reference VALUE | Use the length of a regular reference file. |
Install
Download zipSet the length of regular files using supported filesystem operations.