Статьи / Linux


Размер жесткого диска в линукс

df -h

Команда показывает размер жесткого диска в человекочитаемом виде

-a, --all include dummy file systems.
-B, --block-size=SIZE scale sizes by SIZE before printing them. E.g., '-BM' печатает размер в единицах измерения 1,048,576 байт. Смотри "SIZE Format" чтобы получить больше информации
--total display a grand total.
-h, --human-readable печатает размер в читабельном формате (e.g., 1K 234M 2G)
-H, --si same as -h, but use powers of 1000 instead of 1024.
-i, --inodes list inode information instead of block usage.
-k like --block-size=1K.
-l, --local limit listing to local file systems
--no-sync do not invoke a sync before getting usage info (This is the default).
-P, --portability use the POSIX output format.
--sync invoke a sync before getting usage info.
-t, --type=TYPE limit listing to file systems of type TYPE.
-T, --print-type print file system type.
-x, --exclude-type=TYPE limit listing to file systems not of type TYPE.
-v (ignored; included for compatibility reasons.)
--help display a help message and exit.
--version output version information and exit.