> Source: [sk152872](https://support.checkpoint.com/results/sk/sk152872)

# sk152872 - df and du commands show different outputs

| Property | Value |
|----------|-------|
| Solution ID | sk152872 |
| Date Created | 2019-05-01 |
| Last Modified | 2019-05-05 |
| Technical Level | Advanced |
| Products | Security Gateway, Security Management Server |
| Versions | R82.10, R82, R81.20, R82.10, R82, R81.20, R82.x, R82.20 |
| OS | Gaia |

## Symptoms

- The output of the *df* and *du* commands show different directory sizes.  

For example:  

1

```
[Expert@gw:0]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_splat-lv_current
                      197G  146G   42G  78% /
```

2

```
[Expert@gw:0]# du -x --max-depth=1 / | sort -n -r | more
25530957        /
20646796        /var
3641604 /opt
```

In output 1, can see that the root partition has 146G of used space. However, in output 2 (size in KB's) the size of the partition is 25GB.

## Cause

If a path given to 'df' / 'du' contains a secondary file system, mounted on top of a primary file system, and the primary file system contains files which are now hidden, the output will be different.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
