#!/bin/bash
#                       /usr/local/bin/limits
#  http://crystalfaeries.net/posix/bin/limits
# celeste:crystalfaery 2017-07-11 06:05:00+00:00
# limits displays the limit settings controlling the fullness of various partitions:
# Filesystem                1024-blocks  Used       Available  Capacity  Mounted_on
# /dev/mapper/fey--vg-home  53209448     44482500   5994304    89%       /home
# /dev/mapper/fey--vg-var   4969984      3845592    852216     82%       /var

# display existing partition fullness:
df --full

# display where backups live:
ls -Flad /var/cache/{dar,rsnapshot} /home/downloads

# display the limits:
find /etc -maxdepth 1 -name '*limit' -type f -print0 -exec head -n 1 {} \; | sed 's/limit./limit:	/'

exit	0


syntax highlighted by Code2HTML, v. 0.9.1