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

  • @mahdizarepoor8964
    @mahdizarepoor896411 ай бұрын

    10 years ago ... but right now I enjoy watching it . this is called a greate content

  • @theurbanpenguin

    @theurbanpenguin

    11 ай бұрын

    Thank you

  • @bobaktadjalli6516
    @bobaktadjalli65164 сағат бұрын

    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!!

  • @stevencoto834
    @stevencoto8347 жыл бұрын

    i was more amazed on the use of "!"

  • @keithpetrino

    @keithpetrino

    5 жыл бұрын

    yeah that's bash history expansion

  • @jonassteinberg3779

    @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

    @VictorGarcia-si8wy

    4 жыл бұрын

    Lol me too. I paused the video and went on a rabbit hole about shell events.

  • @manjeetswt

    @manjeetswt

    4 жыл бұрын

    same here ... i new abt Ctrl + r then type last command

  • @danwest9900

    @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.

  • @insomniac3334
    @insomniac333410 жыл бұрын

    used this to cram for an operating systems quiz at the last second, it's fantastic!

  • @TajviaWillis
    @TajviaWillis8 жыл бұрын

    Best explanation I've seen of a pretty complex topic. Thanks!

  • @jasons1856
    @jasons18566 жыл бұрын

    This video is amazing! We were looking for something like this to keep configuration management.

  • @nuclearpsyche
    @nuclearpsyche6 жыл бұрын

    Excellent tutorial and clear explanation! Thank you! I didn’t know you could search for files by inode number 👍

  • @theurbanpenguin

    @theurbanpenguin

    6 жыл бұрын

    Thanks for your comment

  • @tansolomon1170
    @tansolomon11708 жыл бұрын

    A very well done video! Thanks a million for this. :)

  • @chanlapming
    @chanlapming9 жыл бұрын

    Thanks. First clear explanation on inode for me today

  • @gowthamanv8740
    @gowthamanv87405 жыл бұрын

    Great video, crystal clear explanation. Do more videos sir

  • @andrejgorskolepov
    @andrejgorskolepov9 жыл бұрын

    Man that was strait to the point ! Tums up

  • @saadnaeem8139
    @saadnaeem81399 жыл бұрын

    very good explanation with examples. Thanks for sharing

  • @itsmelostfox
    @itsmelostfox8 жыл бұрын

    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!

  • @yroken
    @yroken7 жыл бұрын

    This was a great lesson. I plan on checking out your website and hopefully subscribing soon.

  • @rfrancoi
    @rfrancoi7 жыл бұрын

    Excellent video. Thank you.

  • @busdriver1261
    @busdriver12614 жыл бұрын

    I'm a Linux newbie and found it easy to understand. Thanks!

  • @theurbanpenguin

    @theurbanpenguin

    4 жыл бұрын

    Thank you :)

  • @jonassteinberg3779
    @jonassteinberg37795 жыл бұрын

    very nice introduction to a firmly misunderstood / unknown topic

  • @codextreme7756
    @codextreme77565 жыл бұрын

    very clean and clear explanation

  • @vovaonfire
    @vovaonfire10 жыл бұрын

    Thanks! That's a great lecture :)

  • @theurbanpenguin

    @theurbanpenguin

    10 жыл бұрын

    Thank you

  • @pramodashnal
    @pramodashnal8 жыл бұрын

    Very easy to understand ! Thanks

  • @bungaloebill4433
    @bungaloebill44339 жыл бұрын

    Thank you! I subscribed and WILL be checking out your other videos.

  • @FilipMakaroni_xD
    @FilipMakaroni_xD4 жыл бұрын

    Love it when you say changed

  • @theurbanpenguin

    @theurbanpenguin

    4 жыл бұрын

    :)

  • @chanmanalac2927
    @chanmanalac292711 жыл бұрын

    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. :)

  • @jesusosorio7205
    @jesusosorio72059 жыл бұрын

    NICE! you are my hero!

  • @srb1855
    @srb18553 жыл бұрын

    Excellent thank you! ❤️

  • @ChandraSekhar-ur1so
    @ChandraSekhar-ur1so8 жыл бұрын

    Thanks !! , ur a genius !!!!. This helped a lot.

  • @balajisundarrajan9684
    @balajisundarrajan96847 жыл бұрын

    Thank you , great lecture

  • @avneeshdwivedi5116
    @avneeshdwivedi511610 жыл бұрын

    thank you very much sir u make my study easy

  • @santidev_
    @santidev_5 жыл бұрын

    Thanks, pretty clear!

  • @alpenwasser6869
    @alpenwasser686911 жыл бұрын

    Excellent video, dear sir! :)

  • @SFSoulCrooner
    @SFSoulCrooner7 жыл бұрын

    great series tux!

  • @carlitodizon9667
    @carlitodizon966711 жыл бұрын

    thank you for the knowledge

  • @CharlesBarret
    @CharlesBarret5 жыл бұрын

    Excellent. Pure class!

  • @theurbanpenguin

    @theurbanpenguin

    5 жыл бұрын

    Thank you

  • @AndreKhan716
    @AndreKhan7167 жыл бұрын

    Excellent, thanks!

  • @rajeswarimoorthy2392
    @rajeswarimoorthy23926 жыл бұрын

    Great Video. Thanks :)

  • @ganeshkumarsiva176
    @ganeshkumarsiva1762 жыл бұрын

    Excellent video

  • @nahbruhwhat
    @nahbruhwhat6 жыл бұрын

    Great! Thank you.

  • @aleksandariricanin849
    @aleksandariricanin8492 жыл бұрын

    This was Great!

  • @afsarabenazir8558
    @afsarabenazir85585 жыл бұрын

    thanks! very well explained. subscribed!

  • @theurbanpenguin

    @theurbanpenguin

    5 жыл бұрын

    Thank you so much

  • @ricezhang5299
    @ricezhang52999 жыл бұрын

    Excellent.

  • @dharmeshsingh9050
    @dharmeshsingh90505 жыл бұрын

    using the iNode number to alleviate the absurd file names is a very good method.

  • @edsonteixeira6057
    @edsonteixeira60575 жыл бұрын

    brilhante meu querido. brilhante !! brilhante !!!

  • @theurbanpenguin

    @theurbanpenguin

    5 жыл бұрын

    Obrigado

  • @b1ueocean
    @b1ueocean Жыл бұрын

    Excellent 👍

  • @cr3ativemind92
    @cr3ativemind9211 ай бұрын

    gr8 explanation

  • @greghimself3814
    @greghimself38142 жыл бұрын

    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

    @theurbanpenguin

    2 жыл бұрын

    Awsome

  • @Suresh1426
    @Suresh14268 жыл бұрын

    thanks!

  • @asadmoosvi
    @asadmoosvi8 жыл бұрын

    Brilliant.

  • @mpereztwomx
    @mpereztwomx5 жыл бұрын

    Thank you

  • @diddi62
    @diddi626 жыл бұрын

    very much cool indeed !!!

  • @squidiebah
    @squidiebah4 жыл бұрын

    Good explanation!

  • @theurbanpenguin

    @theurbanpenguin

    4 жыл бұрын

    Thanks

  • @huanliu1394
    @huanliu13947 жыл бұрын

    Thanks!

  • @p1r0574n
    @p1r0574n9 жыл бұрын

    Great Video Thanks a lot!!!

  • @manjunathkotabal
    @manjunathkotabal2 жыл бұрын

    great work

  • @theurbanpenguin

    @theurbanpenguin

    2 жыл бұрын

    Thank you so much

  • @craign3766
    @craign37663 жыл бұрын

    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

    @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.

  • @springautumn2993
    @springautumn29938 жыл бұрын

    Respect!

  • @thomascarlsen8097
    @thomascarlsen80974 жыл бұрын

    Good vid

  • @DearDextra
    @DearDextra5 жыл бұрын

    just got asked this in an interview :( Lost my chance at 90K job.

  • @VictorGarcia-si8wy

    @VictorGarcia-si8wy

    4 жыл бұрын

    Hey I hope you have found something better man! Never settle.

  • @dhhsncnd6107
    @dhhsncnd610710 жыл бұрын

    Is there any reason why rm 'ab' doesn't remove the inode ?

  • @NoajmIsMyName
    @NoajmIsMyName5 жыл бұрын

    Can you share your bash for the history!

  • @mlfconv
    @mlfconv7 жыл бұрын

    who did the Animation ?

  • @The_Nova_Glow
    @The_Nova_Glow8 жыл бұрын

    PLEASE MAKE MORE VIDEOS

  • @Freegreentealeaf
    @Freegreentealeaf11 жыл бұрын

    :) thanks4the vid, that joke made me laugh4two days ;) Mayb that is just me hehehe

  • @GNU_Linux_for_good
    @GNU_Linux_for_good5 ай бұрын

    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

    @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

    @GNU_Linux_for_good

    5 ай бұрын

    @@theurbanpenguin_point taken - thanks urbanpenguin_

  • @orkish2844
    @orkish28448 жыл бұрын

    What is the point of having an automated hand slowly "writing out" text?

  • @PENDANTturnips

    @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.

  • @gaiaendeavors
    @gaiaendeavors4 жыл бұрын

    Jesus please tell me you got a better mic since this video?

  • @tetonicsheldor
    @tetonicsheldor3 жыл бұрын

    where's the click? CLICK BAIT LOL!

  • @kennethcarvalho3684
    @kennethcarvalho36843 жыл бұрын

    I prefer the village penguin