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_partitions()
Examples
ps_disk_usage()
#> # A data frame: 6 × 5
#> mountpoint total used available capacity
#> <chr> <dbl> <dbl> <dbl> <dbl>
#> 1 / 89297309696 59008065536 30306021376 0.661
#> 2 /snap/core20/2015 66584576 66584576 0 1
#> 3 /snap/snapd/20290 42860544 42860544 0 1
#> 4 /snap/lxd/24322 117440512 117440512 0 1
#> 5 /boot/efi 109422592 6333952 103088640 0.0579
#> 6 /mnt 67316002816 7747645440 63021002752 0.109