1. 程式人生 > >centos下檢視磁碟使用空間:

centos下檢視磁碟使用空間:

centos下檢視磁碟使用空間

1.df命令:

NAME
       df - report file system disk space usage

DESCRIPTION
       This  manual page documents the GNU version of df.  df displays the amount of disk space
       available on the file system containing each file name argument.  If  no  file  name  is
       given,  the
space available on all currently mounted file systems is shown. Disk space is shown in 1K blocks by default, unless the environment variable POSIXLY_CORRECT is set, in which case 512-byte blocks are used. If an argument is the absolute file name of a disk device node containing a mounted file
system, df shows the space available on that file system rather than on the file system containing the device node (which is always the root file system). This version of df cannot show the space available on unmounted file systems, because on most kinds of systems doing so requires very nonportable intimate knowledge of
file system structures.

2.檢視硬碟的分割槽fdisk
3.檢視每個檔案的佔用空間:du
4.檢視被程序開啟的檔案:lsof【list open files】根本目的是為了系統級的監控、診斷工具。