Linux/Unix Commands





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
LINUX / UNIX cmd
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Introduction
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in A
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in B
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in C
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in D
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in E
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in F
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in G
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in H
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in I
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in J
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in K
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in L
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in M
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in N
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in P
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in R
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in S
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in T
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in U
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in W
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Commands in Y
Forums Ask your doubts
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example More about Linux
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Feedback
 





du Linux Commands


Tutorials Linux-commands

Topic

What is Linux du Command?



Explanation

du COMMAND:
     du command is used to report how much disk space a file or directory occupies.

SYNTAX:
  The Syntax is
     du [options] directories

OPTIONS:
     
-a Displays the usage of space that each file is taking up.
-k Write the files size in units of 1024 bytes, rather than the default 512-byte units.
-s Instead of the default output, report only the total sum for each of the specified files.
-L Process symbolic links by using the file or directory which the symbolic link references, rather than the link itself.
-x When evaluating file sizes, evaluate only those files that have the same device as the file specified by the file operand.



EXAMPLE:
     
  1. du -a images
    Output:
    12      images/daisy.jpg
    20      images/flo.gif
    76      images/CHILD.gif
    12      images/indigo.gif
    152     images/flower.gif
    12      images/sunflower.jpg
    12      images/tulip-flower-clipart5.gif
    12      images/flower.jpg
    8       images/thumbnail.aspx
    8       images/baby.jpg
    12      images/woodpecker.gif
    168     images/baby.gif
    8       images/thumbnail.jpg
    1012    images/house.bmp
    12      images/peacock.gif
    1544    images
    

    Displays the size of each file in the specified directory.

  2. du -s images
    Output:
    1544    images
    

    Displays the total disk space used by the specified directory.

  3. du -h
    Output:
    84K
    

    Displays the current folder capacity.

  4. du -h file1.php
    Output:
    8.0K file1.php
    

    Displays the storage capacity of file1.php.





A Note

Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


Other Links

web hosting

 

Free Hosting

Top Hosting Companies