Differentiate touch and truncate

This commit is contained in:
Gregory Chamberlain 2020-08-09 13:30:02 +01:00
parent d744927f52
commit d55ad023d4

View file

@ -502,9 +502,9 @@ $ count ~/Pictures/*.jpg
64
```
## Create an empty file
## Create or truncate a file
Alternative to `touch`.
Alternative to `truncate -s0`.
```shell
:>file
@ -513,6 +513,17 @@ Alternative to `touch`.
>file
```
## Create or update modification time of a file
Alternative to `touch`.
```shell
:>>file
# OR (shellcheck warns for this)
>>file
```
# FILE PATHS
## Get the directory name of a file path