Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linux du command source code

Tags:

c

linux

kernel

Where I can find the source code for du and other Linux utilities?

like image 284
Arpit Avatar asked Jul 16 '10 12:07

Arpit


People also ask

What is du in Linux command?

The du command is a standard Linux/Unix command that allows a user to gain disk usage information quickly. It is best applied to specific directories and allows many variations for customizing the output to meet your needs. As with most commands, the user can take advantage of many options or flags.

What is coreutils Linux?

The GNU Core Utilities or coreutils is a package of GNU software containing implementations for many of the basic tools, such as cat, ls, and rm, which are used on Unix-like operating systems.

What is du in terminal?

du stands for “Disk Usage”. It is a standard command used to estimate space usage (meaning, in the terminal we can find the exact size each directory and file takes up). There are multiple ways we can generate various types of output in Terminal using the 'du' command with various options.

What is the default block size used by du?

In most cases these days, the default block size is 1024 bytes, so you are effectively looking at all the sizes reported in kilobytes, but to make sure it's always the case I advise you to use -k parameter which overrides you Unix flavour default block size and sets it to 1024 bytes: root@ubuntu# du -k 4 ./.


1 Answers

It is with the GNU CoreUtils package.

like image 106
David Pratte Avatar answered Nov 16 '22 01:11

David Pratte