# Simple Guide to Get the Size of a Directory in Linux – Linux Tutorial

By | August 4, 2021

In this tutorial, we will introduce how to get the size of a directory in linux, we will use linux du command to implement it. You can learn how to do.

## How to get the size of a directory in linux?

Here is an example:

[appadmin@t0-sys06 speak-recognition]\$ du -sh

You may get this result: 12G.

It means we will get the size of directory speak-recognition.

If we want to other directory, how to do?

For example, we want to get the size of /home/appadmin. We can do as follows:

du -sh /home/appadmin

You may get this result:

169G	/home/appadmin