ps (version 1.5.0)

ps_disk_usage: Disk usage statistics, per partition

Description

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.

Value

A data frame with columns mountpoint, total, used, available and capacity.

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

Run this code
# NOT RUN {
ps_disk_usage()
# }

Run the code above in your browser using DataLab