How can we find the number of blocks occupied by a file from userspace ? Is there a command to do so or we need to access the inode structure and then fetch the information.
I have searched a lot on the internet but could not find a valid answer. Can you please let me know
Thanks.