Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

inode

How do I count all the files recursively through directories

August 11, 2022 by Magenaut

I want to see how many files are in subdirectories to find out where all the inode usage is on the system. Kind of like I would do this for space usage

Categories Q&A, Unix & Linux Tags disk-usage, inode, recursive Leave a comment

Find where inodes are being used

August 11, 2022 by Magenaut

So I received a warning from our monitoring system on one of our boxes that the number of free inodes on a filesystem was getting low.

Categories Q&A, Unix & Linux Tags filesystems, inode Leave a comment

Why do the directories /home, /usr, /var, etc. all have the same inode number (2)?

August 11, 2022 by Magenaut

I find that under my root directory, there are some directories that have the same inode number:

Categories Q&A, Unix & Linux Tags filesystems, inode, linux Leave a comment

List all files with the same inode number?

August 10, 2022 by Magenaut

Let’s say when I do ls -li inside a directory, I get this:

Categories Q&A, Unix & Linux Tags inode, ls Leave a comment

Can I run out of disk space by creating a very large number of empty files?

August 10, 2022 by Magenaut

It is well-known that empty text files have zero bytes:

Categories Q&A, Unix & Linux Tags disk-usage, file-metadata, inode Leave a comment

Why does a software package run just fine even when it is being upgraded?

August 9, 2022 by Magenaut

Say I am running a software, and then I run package manager to upgrade the software, I notice that Linux does not bring down the running process for package upgrade – it is still running fine. How does Linux do this?

Categories Q&A, Unix & Linux Tags files, inode, linux Leave a comment

Is it possible to rename a file or directory using the inode?

August 8, 2022 by Magenaut

I changed the /home directory to a different partition and couldn’t access the files from it, something I have been able to solve from this question – How do you access the contents of a previous mount after switching to a different the partition?.

Categories Q&A, Unix & Linux Tags inode, rename Leave a comment

size of directory reported by ls

August 7, 2022 by Magenaut

I understand the size reported by ls corresponds with number of inodes inside the directory, not their actual size. I have noticed peculiar behavior, when displaying directory size with ls. Here is how to quickly reproduce it: first create empty directory, the size reported by ls is 4096 (as expected) mkdir test ll -d test/ … Read more

Categories Q&A, Unix & Linux Tags directory, inode, ls Leave a comment

Where are my inodes going?

August 7, 2022 by Magenaut

My root filesystem is running out of inodes. If this were an issue of disk space, I’d use du -s to get a top-level overview of where the space is going, then head down the directory tree to find particular offenders. Is there an equivalent option for inodes?

Categories Q&A, Unix & Linux Tags disk-usage, filesystems, inode Leave a comment

“mv” file with garbled name by inode number?

August 7, 2022 by Magenaut

I have several files with encoding issues in their file names (German umlauts, burned on CD with Windows, read by Windows and synced to Linux with Seafile. Something, somewhere went wrong…).
Bash and zsh only show “?” instead of umlauts, stat shows something like

Categories Q&A, Unix & Linux Tags character-encoding, inode, mv, rename, shell Leave a comment
Older posts
Page1 Page2 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress