You are on page 1of 3

CSCI 220 Operating Systems Lab Series #4

A screenshot of the df command is below:

Now adding the used and available blocks in the highlighted portion we get total as 4142444 +
5570576 = 9713020 blocks which are not equal to total available space 10253588.

The remaining space 540568 blocks are the reserved space for the root (privileged user) for the
critical processes to continue executing in spite of 100 % full of root file system. By default, 5%
of the space is reserved for the critical process but we can increase/decrease this amount based
on need. You can get a more human readable format of the above summary with the help of
command df -h
Screenshot of the terminal after running the command df –i

Observing the row /dev/sda1 i.e. the main partition we can see that Total inodes available are
655360 in which 140496 are used and 514864 are free.

Now we are going to create a text file random.txt with random contents in it.

Next, running the df-i command again,


Now we are going to append large number of characters into the random.txt file say more
than 1000 characters

After appending the characters and running the df -i command again we get,

After running the command we can see that a minute change in innodes occurs i.e. used innodes
changes from 140506 to 140509 only.

You might also like