![]() ![]() If you want to check show the total size of a file in units of 1,048,576 bytes then you need to use -BM option with du command as shown below. Example 4: How to Show Total Size in specified size unit If you are looking to check the total size of all the files and directories then you need to use -c option with du command as shown in below example. Example 3: How to Show the Total Size of all the Files a : write counts for all files, not just directories. If you want to check the write counts for all files and directories then you need to use -a option du command as shown in below illustration. Example 2: How to Show write counts for all Files and Directories in Linux Written by Torbjörn Granlund, David MacKenzie, Paul Eggert,Īnd Jim Meyering. There is NO WARRANTY, to the extent permitted by law. This is free software: you are free to change and redistribute it. ![]() License GPLv3+: GNU GPL version 3 or later. ~]# du -version du (GNU coreutils) 8.22Ĭopyright (C) 2013 Free Software Foundation, Inc. ![]() As you can see from below output, current version is 8.22. To check du command version you need to use du -version command as shown below. Linux du command examples to Check File Space UsageĪlso Read: 12 Practical and Useful free command examples in Linux(RHEL/CentOS 7/8) Example 1: How to Check du command version We will go through the usage of du command in detail with the help of examples. It is one of the most popular tool available to check and track the files and directories usage in the Server. In this article, we will look into 12 Best Linux du command examples to Check File Space Usage. ![]()
0 Comments
Leave a Reply. |