Unix file system : Inodes

The administrative infomation is stored in the inode. It contains information such as how long it is, where the contents of the file are stored on disc etc.
System’s internal name for a file is its i-number.

$ ls -lut
$ ls -lct
$ ls -i
$ ls -ict

‘rm’ command is for removing a file. ‘mv’ command is for moving and renaming the files.

$ rm filename1 filename2
$ mv filename1 filename2

The -ut lists the file in order of usage time. -ct lists the files in the order of inode change time. The ‘-i’ option is for listing the i-numbers of the directories contents. ‘-ict’ lists inode number in order of the modifications in the inode (most recently first).

Unknown's avatar

Author: Abhilash

Hi, Iโ€™m Abhilash! A seasoned web developer with 15 years of experience specializing in Ruby and Ruby on Rails. Since 2010, Iโ€™ve built scalable, robust web applications and worked with frameworks like Angular, Sinatra, Laravel, Node.js, Vue and React. Passionate about clean, maintainable code and continuous learning, I share insights, tutorials, and experiences here. Letโ€™s explore the ever-evolving world of web development together!

Leave a comment