Tag Info

New answers tagged


The used space reported by df is reserved space. This reserved space is used by ext filesystems to prevent data fragmentation as well as to allow critical applications such as syslog to continue functioning when the disk is "full". You can view information about the reserved space using the tune2fs command: # tune2fs -l /dev/mapper/newvg-root tune2fs ...


It should be fine to delete files in /usr/share/doc on Debian-based systems. The Debian policy explicitly specifies in section 12.3: Packages must not require the existence of any files in /usr/share/doc/ in order to function. [...] The system administrator should be able to delete files in /usr/share/doc/ without causing any programs to break. ...


Interfering with the Debian package manager by deleting files that are under its control is always a dangerous thing to do. Hence the inclusion of this paragraph in the documentation of localepurge: Please note, that this tool is a hack which is not integrated with Debian's package management system and therefore is not for the faint of heart. This ...


clamav on at least Debian (you don't mention what distro you're using) doesn't contain the database. For that clamav has a dependency on clamav-freshclam | clamav-data so make sure that both of those are also purged.


Ah-ah... I had a scheduled backup script that was propagating to /media/external-hdd but the script appears to be failing in it's check of whether the drive is mounted, causing it to use the actual mounting point as the target, filling up the root filesystem.


The second column is the total capacity of each filesystem. Older versions of Unix used 512-byte blocks in the filesystem, and that's the (undocumented) unit that df used - it showed the number of free blocks (V7 df man page). When Berkeley changed the block size in the filesystem to 1024 bytes, df (4BSD df source code) still showed the sizes in terms of ...


The 1K-blocks header is the total space available, measured in 1kB units. Historically, and according to the POSIX standard, df should report the space in units of 512-byte blocks; you can get that output by doing: POSIXLY_CORRECT=1 df The "block" here is simply the unit used for the amounts, it is not related to the file system blocksize (or cluster ...


Sum all files in a directory: OSX: find dir ! -type d -print0 | xargs -0 stat -f '%z' | awk '{sum += $1} END{print sum}' Linux: find dir ! -type d -printf "%s\n" | awk '{sum += $1} END{print sum}'

Top 50 recent answers are included