---
title: "Linux Space Check"
canonical: "https://techwiki.co.uk/linux/linux-space-check"
author: "Adam Birds"
article_type: "documentation"
published: "2026-08-10T23:29:30.222Z"
updated: "2026-08-10T23:29:30.223Z"
categories: ["Linux"]
tags: []
---**To perform a space check on Linux for the largest directories use the following command replacing /home with the directory of your choice:**

```

du -h /home | grep '[0-9\.]\+G'

```

**To place this in a test file use the following:**

```

echo | du -h /home | grep '[0-9\.]\+G' > spacelist.txt

```

**You can also use the tool ncdu by using the following commands:**

```

yum install ncdu --enablerepo=epel
cd /
ncdu

```
