Wednesday 9 August 2017

What is inode in Linux and IF You are Out of It (solution) | Linux

inode is basically a count of total number of files in directories of a user account in *nix systems.

similar to a unique identification of individuals in a country.

inode is data structure , it contains:
size,
user id,
group id
device id,
mode and access
protection
timestamps
links
points
etc.
except file name, and contents. 




A file system can run out of space if all the inodes are consumed.

solution:
find those small files and delete them if possible.
$ for i in /*; do echo $i; find $i |wc -l; done
$ for i in /home/*; do echo $i; find $i |wc -l; done

to delete:
$ rm -rf /home/user/filedirectory_name

No comments:

Post a Comment