Understanding Linux and UNIX inodes and file metadata
Do you need a greater understanding of Linux inodes and file metadata?
Here we take a tour to make sure that we do truly understand inodes in Linux and what they do and contain. Firstly they do not contain the file name. This is stored separately and the file name is linked via the inode number to the inode. The inode itself contains the metadata about the file: the mode, ownership, size etc. Keeping the filename separate to the file metadata does mean that we can have then hard links, multiple file names that point to the one file by way of the inode. We will take a look at the ls command with the -i option along with stat and find -inum ; all of these command line tools help you gain knowledge and use inodes effectively in your system
Пікірлер: 90
10 years ago ... but right now I enjoy watching it . this is called a greate content
@theurbanpenguin
11 ай бұрын
Thank you
Wow!! What a great explanation. I couldn't know what INode is from recent videos, but after I watched your video which is from 11 years ago, I totally understand it. Thank you!!
i was more amazed on the use of "!"
@keithpetrino
5 жыл бұрын
yeah that's bash history expansion
@jonassteinberg3779
5 жыл бұрын
a developer I was working with one day was using it a year or two ago and I looked up and asked "...what's that syntax you're using?" and they explained; the nooks within crannies and crannies within nooks...
@VictorGarcia-si8wy
4 жыл бұрын
Lol me too. I paused the video and went on a rabbit hole about shell events.
@manjeetswt
4 жыл бұрын
same here ... i new abt Ctrl + r then type last command
@danwest9900
4 жыл бұрын
I learn something new every day about the bash shell. Try this one in your terminal: echo $? It will show the exit status of your last command run in the shell. Exit status 0 means the command ran without errors. Anything other than a 0 indicates an error. Try doing: ping -c 1 foo.bar.coolness (or whatever fake net domain name you want to use). You should get an error. Then run the echo $? command and see what status you get. The shell is so fun and powerful.
used this to cram for an operating systems quiz at the last second, it's fantastic!
Best explanation I've seen of a pretty complex topic. Thanks!
This video is amazing! We were looking for something like this to keep configuration management.
Excellent tutorial and clear explanation! Thank you! I didn’t know you could search for files by inode number 👍
@theurbanpenguin
6 жыл бұрын
Thanks for your comment
A very well done video! Thanks a million for this. :)
Thanks. First clear explanation on inode for me today
Great video, crystal clear explanation. Do more videos sir
Man that was strait to the point ! Tums up
very good explanation with examples. Thanks for sharing
took a midterm test today and one of the questions was "what is an inode", got it right! apparently, but thought I should take a look and boom, here I am!. watched a few of your videos so far and subscribed. keep up the good work!
This was a great lesson. I plan on checking out your website and hopefully subscribing soon.
Excellent video. Thank you.
I'm a Linux newbie and found it easy to understand. Thanks!
@theurbanpenguin
4 жыл бұрын
Thank you :)
very nice introduction to a firmly misunderstood / unknown topic
very clean and clear explanation
Thanks! That's a great lecture :)
@theurbanpenguin
10 жыл бұрын
Thank you
Very easy to understand ! Thanks
Thank you! I subscribed and WILL be checking out your other videos.
Love it when you say changed
@theurbanpenguin
4 жыл бұрын
:)
very clear explanation. i havent' been even halfway the video, but i already liked this video because the explanation is such easy to grasp. Although i find it a little bit distracting when looking at that writing hand. :)
NICE! you are my hero!
Excellent thank you! ❤️
Thanks !! , ur a genius !!!!. This helped a lot.
Thank you , great lecture
thank you very much sir u make my study easy
Thanks, pretty clear!
Excellent video, dear sir! :)
great series tux!
thank you for the knowledge
Excellent. Pure class!
@theurbanpenguin
5 жыл бұрын
Thank you
Excellent, thanks!
Great Video. Thanks :)
Excellent video
Great! Thank you.
This was Great!
thanks! very well explained. subscribed!
@theurbanpenguin
5 жыл бұрын
Thank you so much
Excellent.
using the iNode number to alleviate the absurd file names is a very good method.
brilhante meu querido. brilhante !! brilhante !!!
@theurbanpenguin
5 жыл бұрын
Obrigado
Excellent 👍
gr8 explanation
The last part of this video allowed me to get rid of a file named -O (messed up a wget command around 2016) that I had had for years and had given up on dealing with
@theurbanpenguin
2 жыл бұрын
Awsome
thanks!
Brilliant.
Thank you
very much cool indeed !!!
Good explanation!
@theurbanpenguin
4 жыл бұрын
Thanks
Thanks!
Great Video Thanks a lot!!!
great work
@theurbanpenguin
2 жыл бұрын
Thank you so much
Thanks for this. One question I have though, in your delete example of the "ab* file at the end, you deleted it using the inode number. If you had more than one file linked to that then I assume it would delete every linked file associated with that inode?
@ProdEBy
11 ай бұрын
If you delete a file, then it depends on what kind of link it is. If it is a soft link, then no, but any access to that soft link results in “File not found”. Whereas if it’s a hard link, then that will still be able to open up the contents as the inode doesn’t get deleted. But if you delete an inode, then the hard link should get deleted, and the soft link remains as a dangling link, until you create another file with the same name, in which case, the soft link links to that file again.
Respect!
Good vid
just got asked this in an interview :( Lost my chance at 90K job.
@VictorGarcia-si8wy
4 жыл бұрын
Hey I hope you have found something better man! Never settle.
Is there any reason why rm 'ab' doesn't remove the inode ?
Can you share your bash for the history!
who did the Animation ?
PLEASE MAKE MORE VIDEOS
:) thanks4the vid, that joke made me laugh4two days ;) Mayb that is just me hehehe
but if I _vim 131135_ the bloody editor starts a whole new file, although I just wanted to edit bloody inode. What th f.... happened here? I wanna inspect the inode itself with surgical precision!
@theurbanpenguin
5 ай бұрын
The inode is the metadata. It uses not a file. Editing the metadata is supported with tools such as chmod , chown and touch.
@GNU_Linux_for_good
5 ай бұрын
@@theurbanpenguin_point taken - thanks urbanpenguin_
What is the point of having an automated hand slowly "writing out" text?
@PENDANTturnips
6 жыл бұрын
Orkish I guess the main reason is that it makes the video more engaging, resembling a university lecture or a higher budget video with animations. This can engage more of your brain since most people like to see stuff moving, I think we're more evolved to absorb information like this than talking over still images. Other benefits are that information is more gradually displayed to you, giving you time to process what each part represents. I personally like it, more interesting than the other OS lectures out there from uni profs who talk over still PowerPoints.
Jesus please tell me you got a better mic since this video?
where's the click? CLICK BAIT LOL!
I prefer the village penguin