inode

All posts tagged inode by Linux Bash
  • Posted on
    Featured Image
    This blog explains how to overwrite a Linux file without changing its inode using the `sponge` command from `moreutils`. By absorbing input before rewriting, `sponge` allows content update without inode alteration. This is crucial for applications tracking files by inode numbers, ensuring changes like configuration updates don't require system restarts. Installation steps for `moreutils` are also provided.
  • Posted on
    Featured Image
    This article explores the differences between symbolic links (`ln -s`) and hard links in a Linux environment. Symbolic links offer flexibility by allowing links across filesystems and to directories but break if the target is moved. In contrast, hard links directly connect to the file data, maintaining the linkage even if the source file moves, but cannot link across filesystems or to directories. The piece highlights the benefits and practical use cases, aiding users in choosing the right type of link for their needs.