例如,我们有目录结构:
根目录
- 目录 #1
- 子目录 #1
- 子目录 #2
- 子目录 #3
- 目录 #2
- 目录 #3
现在我正在使用df -h
它来检查磁盘使用情况,但是:
当我进入时,RootDirectory
我得到了所有空间Directory #N
:
[Paul@MyPC /RootDirectory]$ df -h ./*
Filesystem Size Used Avail Capacity Mounted on
RootDirectory 4.7T 33M 4.7T 0% /mnt/RootDirectory
/RootDirectory/Directory #1 6.9T 2.2T 4.7T 32% /mnt/RootDirectory/Directory #1
/RootDirectory/Directory #2 100G 10M 100G 0% /mnt/RootDirectory/Directory #2
/RootDirectory/Directory #3 4.7T 3.6M 4.7T 0% /mnt/RootDirectory/Directory #3
这是正确的,但是当我进入Directory #1
并尝试使用时Subdirectory #N
,我得到了这个父目录的三次:
[Paul@MyPC /RootDirectory/Directory #1]$ df -h ./*
Filesystem Size Used Avail Capacity Mounted on
RootDirectory/Directory #1 6.9T 2.2T 4.7T 32% /mnt/RootDirectory/Directory #1
RootDirectory/Directory #1 6.9T 2.2T 4.7T 32% /mnt/RootDirectory/Directory #1
RootDirectory/Directory #1 6.9T 2.2T 4.7T 32% /mnt/RootDirectory/Directory #1
有人能解释我为什么会得到这种效果吗?