The output is similar to the Unix df
command.
Usage
ps_disk_usage(paths = ps_disk_partitions()$mountpoint)
Arguments
- paths
The mounted file systems to list. By default all file systems returned by
ps_disk_partitions()
is listed.
Details
Note that on Unix a small percentage of the disk space (5% typically)
is reserved for the superuser. ps_disk_usage()
returns the space
available to the calling user.
See also
Other disk functions:
ps_disk_io_counters()
,
ps_disk_partitions()
Examples
ps_disk_usage()
#> # A data frame: 4 × 5
#> mountpoint total used available capacity
#> <chr> <dbl> <dbl> <dbl> <dbl>
#> 1 / 76887154688 49139314688 27764617216 0.639
#> 2 /boot 923156480 126013440 861786112 0.128
#> 3 /boot/efi 109395456 6395392 103000064 0.0585
#> 4 /mnt 78673350656 8338202624 74378350592 0.101