# Linux 命令 -df

#### 1、

df 命令可以用来查看磁盘当前的使用情况，如下图所示：

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

﻿

## 评论 (1 条评论)

https://www.jamescoyle.net/knowledge/951-the-difference-between-a-tmpfs-and-ramfs-ram-disk

These two differences between ramfs and tmpfs make tmpfs much more manageable however this is one major drawback; tmpfs may use SWAP space. If your system runs out of physical RAM, files in your tmpfs partitions may be written to disk based SWAP partitions and will have to be read from disk when the file is next accessed. In some environments this can be seen as a benefit as you are less likely to get out of memory exceptions as you could with ramfs because more ‘memory’ is available to use

2020 年 05 月 30 日 22:29