Disk path¶
disk-path shows disk usage for a path with df -h. It is one of the
bundled functions you can use from a button as
it is.
- Runs:
df -h {{.path}} path(optional, default/): filesystem path to check
The function file
Because path is optional and has a default, a button can leave it out and
still work.
Use the default path or choose one
The first button runs df -h / and the second runs df -h /var.
Related¶
- Rules — how defaults and required values behave
- Custom functions — all five bundled examples
command— write a full command instead