I applied for a job as a Junior RedHat Sysadmin this week and they asked me how I can see the Linux version running on a machine. I knew this by watching your video on regular devops interview questions, it's one of the questions you talked about. Just so you know, your videos are helping people out there in the real world! I am sure this video will also come in handy when actually running live environments. Thanks for doing this! :)
@scooby7877
2 жыл бұрын
What is that cat/etc/os?
@cc4405
2 жыл бұрын
@@scooby7877 assuming linux version means the kernel version, uname -r would be a better answer imo
@massmedia6516
Жыл бұрын
cat etc/os-release
@ywahab25
9 ай бұрын
cat /etc/redhat-release
@seannewcomb75943 жыл бұрын
I never knew about this, thanks for the walk through!
@martina85273 жыл бұрын
Love these! Thanks for your great work!
@jerweiyeoh70963 жыл бұрын
Just here to drop an appreciation for the explanation! Stay awesome!
@vijaiharihar94103 жыл бұрын
Very insightful! Thank you!
@Hackenbaker2 жыл бұрын
Thanks a lot for the easy to consume explanation!!! Easy to understand. Inodes was a question in my past working interview. Now, thanks to you I have a better answer for the next time somebody ask me about this. :)
@manny87173 жыл бұрын
Great video. Thank you! Only addition/correction in my opinion is at 2:48. You said the hard links count wasn’t shown with the ls -l command but it IS listed. It’s the second column after the file permissions. Says 1 for the files you listed.
@Flankymanga3 жыл бұрын
Huh... every video i see from you shows me how much i have to learn. Thank you for the explanation!
@HarryLowtonIT3 жыл бұрын
Thank you - Great video and explanation!
@vesok3 жыл бұрын
Thanks, great video! I'd really love it if you made a series on zfs too :D
@ruiztulio3 жыл бұрын
Great video man, I'm just playing with zfs and is great so far
@Toccobass132 жыл бұрын
literally amazing. thank you so much
@Nagashadow96693 жыл бұрын
Good to know that ZFS has more advantages than whats usually advertised. I knew about zfs and inodes but never connected this together
@Yerttle3 жыл бұрын
Loved this content!
@fhujf3 жыл бұрын
I already knew about inodes, but watched the video regardless :) Thanks for all the videos, especially the Linux administration playlist. I've always been a Windows guy, but a year ago I started watching these, installed Ubuntu on VM and guess what, on Monday I'm starting a job in Unix infrastructure administration :D This channel is where it all began. Can't wait for new challenges ahead.
@tutoriaLinux
3 жыл бұрын
That’s amazing to hear; congratulations! That’s literally why this channel exists. Appreciate it.
@j_thom
3 жыл бұрын
Migrating from Caladan to Arrakis, eh? Good luck... Careful tho.. it didnt go so smoothly the last time, erm..well..a time to come.
@keratishvili3 жыл бұрын
Great video thanks Dave
@wojt4spes2 жыл бұрын
Thanks, dude. Just starting a new year, new me, you know. Learning Unix, stuff.
@aleksandrshkraba50613 жыл бұрын
It was great! I was asked about inodes on my previous interview. And unfortunately I have some difficulties with explanation!( Now I can do it))) Thank you!
@ZTsarmadOne2 жыл бұрын
Thanks 😊, This video very Useful for me.
@humayunakhtar2116 Жыл бұрын
Thanks for great explanation
@tutoriaLinux3 жыл бұрын
0:00 Intro 1:47 Directories as filename-inode number pairs 2:30 How are inodes structured? 3:33 inspecting a real inode 3:42 what is a syscall? 4:57 practical inode-related Linux commands 5:24 common inode-related Linux problems and troubleshooting 6:30 how inodes are created in Linux (depends on filesystem)
@HP-sf1my
3 жыл бұрын
add the intro at 0:00 in the description to enable chapters in the video timeline
@tutoriaLinux
3 жыл бұрын
You are a genius; thank you!
@beron_the_colossus
3 жыл бұрын
Could you also update the description? Thank you for the video
@HP-sf1my
3 жыл бұрын
Yea, actually the description is what matters, not the comment :)
@tutoriaLinux
3 жыл бұрын
@@HP-sf1my lmao d'oh. I'm an engineer, not an SEO expert!
@Funnybone_FB2 жыл бұрын
Brilliant. Thank you
@MegaAadhar3 жыл бұрын
This was very simple and clear; thanks mate! ZFS Please!
@bowboycode21143 жыл бұрын
You make great video's!👍
@Felipe-53 Жыл бұрын
Awesome!
@Matthew-tl2ng2 жыл бұрын
Its crazy I just did a phone screen for a company and you touched on 2 of them in this video. Hard/soft links and syscalls.
@mhenimerzouki12853 жыл бұрын
great video, yes ZFS please :)
@DimaEvoc2 жыл бұрын
Thank you! I'm watching this video after a terrible interview ))
@tutoriaLinux
2 жыл бұрын
Hang in there! Some interviews just go badly no matter what. You’re probably dodging a bullet.
@aminebouaita92023 жыл бұрын
Thank you !!
@Achrononmaster Жыл бұрын
Searching your channel content there's no vdo on ZFS. @7:40 kinda' begs for a ZFS tutorial. There are RAM chew-up and licencing issues right?
@aussierule2 жыл бұрын
I installed Debian Bullseye on a fresh HDD , chose auto install with swap, and it chose the btrfs filesystem. I was just analyzing my disk in gparted after boot and noticed my hard drive is not mounted but instead my home directory is the only thing mounted called file system and when I view the path its a path to an inode which I assume is on the unmounted HDD. My question is if its not mounted how does it write the data and save in between powering it off? Does it write the files before shutdown?
@9Steff992 жыл бұрын
so are all the inodes created when the file system is installed or does it just allocate a fixed amount of memory for later storing inodes?
@TheGruselmops3 жыл бұрын
Thanks Dave, great explanation! I really missed this type of videos! btw. How do you like BtrFS?
@tutoriaLinux
3 жыл бұрын
Hey, good to see you here! I played with btrfs several years ago and it felt like an early beta. There were a ton of missing features and some unreliability (although it did engineer around a few zfs limitations). I haven’t really kept up with it especially because now there’s kernel support for openZFS in linux.
@TheGruselmops
3 жыл бұрын
@@tutoriaLinux Yeah, I'm really interested in both filesystems. I like BtrFS so far, haven't used ZFS yet. Maybe an Idea for a video?! Keep it up! Peace!
@owenstrange7630
3 жыл бұрын
@@tutoriaLinux dave sorry. Can you help me a little bit? I couldn't find system.log file. It's usual stay in inside /var/log/apt/history.log in Ubuntu But i couldn't find it anywhere in the same location in Centos 8 : cd /var/log cd dnf bash: cd: dnf: No such file or directory. thank.
@albertovillacorta80453 жыл бұрын
Hit me with that ZedFS knowledge! I just like how the British say it.
@david23583 ай бұрын
Subscribed 🎉
@qsmfouiАй бұрын
for my taste this was scratching a little bit on the surface. there is a little more to it to get a better understanding of the filesystem. i wish you would make a video with some visualized hierarchy of how the superblock, group descriptors and inodes work together with the memory blocks. anyways it was a great video
@VikasYadav-wi7zu2 жыл бұрын
I love you dude
@kocho42422 жыл бұрын
So that is basically flaw of the specific filesystem? If I understand correctly, architect of the filesystem didn't predict such case. I think it is something wrong with filesystem design if there is still a space on the storage, but inodes limit has been exceeded. Only ZFS is free it?
@tutoriaLinux
2 жыл бұрын
I wouldn’t necessarily call it a flaw, just a design tradeoff that was made, combined with poor defaults on most Linux distributions.
@programminginterviewsprepa77102 жыл бұрын
So it the data structure behind the file system would that explain it in one sentence?
@tutoriaLinux
2 жыл бұрын
Well, it’s part of the kernel data structure that represents individual nodes of the filesystem tree. I don’t know if there’s a one-sentence explanation that captures everything about the linux filesystem, including implementation details like inodes. Once you start digging, things get a bit complicated.
@venc0r3 жыл бұрын
Do you have any oppinion or advice, werther its good or rubbish to use zfs on vmware vmdks?
@tutoriaLinux
3 жыл бұрын
I'm not a storage expert -- maybe someone else can chime in?
@killaken20003 жыл бұрын
with `ls -l` the second column is the link count
@zorrzoor3 жыл бұрын
When working in ops, please! Always monitor inodes and not just used/free space. And please, always use a monitoring system! ;) information is power
@_sl3600
3 жыл бұрын
Heh, I once had to troubleshoot centreon (nagios) just dying on a friday - turns out it had run out of inodes due to some network equipment flooding it with traps. Of course, inodes on the monitoring server were not monitored ;) (or even... anywhere, now I think of it).
@mk-gc4fj2 жыл бұрын
if you're using a happy, lucky, wonderful, futuristic, filesystem like zfs *dance music starts*
@Leo_de_janeiro2 жыл бұрын
where is the filename stored ?
@berrywin Жыл бұрын
Very interesting and useful! I would push the like button if you turned of the music. So distracting, especially if you don't have English as your native language!
@karankhatter Жыл бұрын
real talk it happens
@inaciopaiva15363 жыл бұрын
I didn't understand why the system would run out of numbers as inodes before run out of storage.
@tutoriaLinux
3 жыл бұрын
If you have a system that gets filled up with tiny files, it can happen that you run out of inodes before you run out of disk space. Inodes are usually calculated from “average filesize” (or a default number like 4096bytes), divided into filesystem size. If, when the system is in production, you have a huge influx of files smaller than this “average” you can end up with inode exhaustion. The example in the video was of a hacked server hosting hundreds of static sites with lots of tiny files, which I’ve seen in the wild. I hope that helps!
@antoniabroscheta74702 жыл бұрын
i cant read blue on purple!
@islandcave87383 жыл бұрын
This inode exhaustion is the problem I just ran into.
@DineshKumarVellore2 жыл бұрын
Files having the inode number 9077
@IvanZupancic3 жыл бұрын
nice background music :) no really, .. it's fine
@GrandpasPlace3 жыл бұрын
I was wrong, trying to pull it from my memory of 30 years ago. (Removed so as not to confuse others)
@tutoriaLinux
3 жыл бұрын
Maybe I'm misunderstanding what you're saying, but aren't you describing block size? I think inodes are a fixed-size operating system datastructure (just a C struct, I think) that gets populated as needed. The file data itself isn't written into inodes, only a reference to the disk blocks that store the actual data. And the data written onto those blocks can be in whatever blocksize you specified when creating your filesystem.
@GrandpasPlace
3 жыл бұрын
@@tutoriaLinux You are right, I was thinking of block size and balancing the inodes for the smaller block size. That is what I get for trying to do it from 30 year memory. lol
@philspaghet3 жыл бұрын
5:45 LOL I nearly spat out my water XD
@davidwilliss55553 жыл бұрын
ls -l does tell you how many hard-links there are. It's between the permissions and the owner name.
@tutoriaLinux
3 жыл бұрын
In retrospect I honestly don't know how I missed that.
@luiscosme11543 жыл бұрын
Could you please re-upload this video without the music in the background?
@luiscosme1154
3 жыл бұрын
Oh great I just noticed that it stops at about 4 1/2 minutes, it was so distracting in the background that I couldn’t concentrate on what you were saying
@captainhaxs3 жыл бұрын
lol im checking all my machines now to make sure i didnt run out.
@catharperfect70368 ай бұрын
i-nodes? More like i-modes! L.O.L!
@pswalia2u3 жыл бұрын
Nice info. Why do you think, somebody will hack server for hosting porn site 😂?
@tutoriaLinux
3 жыл бұрын
I saw it a bunch of times when I was working in web security! Crazy things.
Пікірлер: 88
I applied for a job as a Junior RedHat Sysadmin this week and they asked me how I can see the Linux version running on a machine. I knew this by watching your video on regular devops interview questions, it's one of the questions you talked about. Just so you know, your videos are helping people out there in the real world! I am sure this video will also come in handy when actually running live environments. Thanks for doing this! :)
@scooby7877
2 жыл бұрын
What is that cat/etc/os?
@cc4405
2 жыл бұрын
@@scooby7877 assuming linux version means the kernel version, uname -r would be a better answer imo
@massmedia6516
Жыл бұрын
cat etc/os-release
@ywahab25
9 ай бұрын
cat /etc/redhat-release
I never knew about this, thanks for the walk through!
Love these! Thanks for your great work!
Just here to drop an appreciation for the explanation! Stay awesome!
Very insightful! Thank you!
Thanks a lot for the easy to consume explanation!!! Easy to understand. Inodes was a question in my past working interview. Now, thanks to you I have a better answer for the next time somebody ask me about this. :)
Great video. Thank you! Only addition/correction in my opinion is at 2:48. You said the hard links count wasn’t shown with the ls -l command but it IS listed. It’s the second column after the file permissions. Says 1 for the files you listed.
Huh... every video i see from you shows me how much i have to learn. Thank you for the explanation!
Thank you - Great video and explanation!
Thanks, great video! I'd really love it if you made a series on zfs too :D
Great video man, I'm just playing with zfs and is great so far
literally amazing. thank you so much
Good to know that ZFS has more advantages than whats usually advertised. I knew about zfs and inodes but never connected this together
Loved this content!
I already knew about inodes, but watched the video regardless :) Thanks for all the videos, especially the Linux administration playlist. I've always been a Windows guy, but a year ago I started watching these, installed Ubuntu on VM and guess what, on Monday I'm starting a job in Unix infrastructure administration :D This channel is where it all began. Can't wait for new challenges ahead.
@tutoriaLinux
3 жыл бұрын
That’s amazing to hear; congratulations! That’s literally why this channel exists. Appreciate it.
@j_thom
3 жыл бұрын
Migrating from Caladan to Arrakis, eh? Good luck... Careful tho.. it didnt go so smoothly the last time, erm..well..a time to come.
Great video thanks Dave
Thanks, dude. Just starting a new year, new me, you know. Learning Unix, stuff.
It was great! I was asked about inodes on my previous interview. And unfortunately I have some difficulties with explanation!( Now I can do it))) Thank you!
Thanks 😊, This video very Useful for me.
Thanks for great explanation
0:00 Intro 1:47 Directories as filename-inode number pairs 2:30 How are inodes structured? 3:33 inspecting a real inode 3:42 what is a syscall? 4:57 practical inode-related Linux commands 5:24 common inode-related Linux problems and troubleshooting 6:30 how inodes are created in Linux (depends on filesystem)
@HP-sf1my
3 жыл бұрын
add the intro at 0:00 in the description to enable chapters in the video timeline
@tutoriaLinux
3 жыл бұрын
You are a genius; thank you!
@beron_the_colossus
3 жыл бұрын
Could you also update the description? Thank you for the video
@HP-sf1my
3 жыл бұрын
Yea, actually the description is what matters, not the comment :)
@tutoriaLinux
3 жыл бұрын
@@HP-sf1my lmao d'oh. I'm an engineer, not an SEO expert!
Brilliant. Thank you
This was very simple and clear; thanks mate! ZFS Please!
You make great video's!👍
Awesome!
Its crazy I just did a phone screen for a company and you touched on 2 of them in this video. Hard/soft links and syscalls.
great video, yes ZFS please :)
Thank you! I'm watching this video after a terrible interview ))
@tutoriaLinux
2 жыл бұрын
Hang in there! Some interviews just go badly no matter what. You’re probably dodging a bullet.
Thank you !!
Searching your channel content there's no vdo on ZFS. @7:40 kinda' begs for a ZFS tutorial. There are RAM chew-up and licencing issues right?
I installed Debian Bullseye on a fresh HDD , chose auto install with swap, and it chose the btrfs filesystem. I was just analyzing my disk in gparted after boot and noticed my hard drive is not mounted but instead my home directory is the only thing mounted called file system and when I view the path its a path to an inode which I assume is on the unmounted HDD. My question is if its not mounted how does it write the data and save in between powering it off? Does it write the files before shutdown?
so are all the inodes created when the file system is installed or does it just allocate a fixed amount of memory for later storing inodes?
Thanks Dave, great explanation! I really missed this type of videos! btw. How do you like BtrFS?
@tutoriaLinux
3 жыл бұрын
Hey, good to see you here! I played with btrfs several years ago and it felt like an early beta. There were a ton of missing features and some unreliability (although it did engineer around a few zfs limitations). I haven’t really kept up with it especially because now there’s kernel support for openZFS in linux.
@TheGruselmops
3 жыл бұрын
@@tutoriaLinux Yeah, I'm really interested in both filesystems. I like BtrFS so far, haven't used ZFS yet. Maybe an Idea for a video?! Keep it up! Peace!
@owenstrange7630
3 жыл бұрын
@@tutoriaLinux dave sorry. Can you help me a little bit? I couldn't find system.log file. It's usual stay in inside /var/log/apt/history.log in Ubuntu But i couldn't find it anywhere in the same location in Centos 8 : cd /var/log cd dnf bash: cd: dnf: No such file or directory. thank.
Hit me with that ZedFS knowledge! I just like how the British say it.
Subscribed 🎉
for my taste this was scratching a little bit on the surface. there is a little more to it to get a better understanding of the filesystem. i wish you would make a video with some visualized hierarchy of how the superblock, group descriptors and inodes work together with the memory blocks. anyways it was a great video
I love you dude
So that is basically flaw of the specific filesystem? If I understand correctly, architect of the filesystem didn't predict such case. I think it is something wrong with filesystem design if there is still a space on the storage, but inodes limit has been exceeded. Only ZFS is free it?
@tutoriaLinux
2 жыл бұрын
I wouldn’t necessarily call it a flaw, just a design tradeoff that was made, combined with poor defaults on most Linux distributions.
So it the data structure behind the file system would that explain it in one sentence?
@tutoriaLinux
2 жыл бұрын
Well, it’s part of the kernel data structure that represents individual nodes of the filesystem tree. I don’t know if there’s a one-sentence explanation that captures everything about the linux filesystem, including implementation details like inodes. Once you start digging, things get a bit complicated.
Do you have any oppinion or advice, werther its good or rubbish to use zfs on vmware vmdks?
@tutoriaLinux
3 жыл бұрын
I'm not a storage expert -- maybe someone else can chime in?
with `ls -l` the second column is the link count
When working in ops, please! Always monitor inodes and not just used/free space. And please, always use a monitoring system! ;) information is power
@_sl3600
3 жыл бұрын
Heh, I once had to troubleshoot centreon (nagios) just dying on a friday - turns out it had run out of inodes due to some network equipment flooding it with traps. Of course, inodes on the monitoring server were not monitored ;) (or even... anywhere, now I think of it).
if you're using a happy, lucky, wonderful, futuristic, filesystem like zfs *dance music starts*
where is the filename stored ?
Very interesting and useful! I would push the like button if you turned of the music. So distracting, especially if you don't have English as your native language!
real talk it happens
I didn't understand why the system would run out of numbers as inodes before run out of storage.
@tutoriaLinux
3 жыл бұрын
If you have a system that gets filled up with tiny files, it can happen that you run out of inodes before you run out of disk space. Inodes are usually calculated from “average filesize” (or a default number like 4096bytes), divided into filesystem size. If, when the system is in production, you have a huge influx of files smaller than this “average” you can end up with inode exhaustion. The example in the video was of a hacked server hosting hundreds of static sites with lots of tiny files, which I’ve seen in the wild. I hope that helps!
i cant read blue on purple!
This inode exhaustion is the problem I just ran into.
Files having the inode number 9077
nice background music :) no really, .. it's fine
I was wrong, trying to pull it from my memory of 30 years ago. (Removed so as not to confuse others)
@tutoriaLinux
3 жыл бұрын
Maybe I'm misunderstanding what you're saying, but aren't you describing block size? I think inodes are a fixed-size operating system datastructure (just a C struct, I think) that gets populated as needed. The file data itself isn't written into inodes, only a reference to the disk blocks that store the actual data. And the data written onto those blocks can be in whatever blocksize you specified when creating your filesystem.
@GrandpasPlace
3 жыл бұрын
@@tutoriaLinux You are right, I was thinking of block size and balancing the inodes for the smaller block size. That is what I get for trying to do it from 30 year memory. lol
5:45 LOL I nearly spat out my water XD
ls -l does tell you how many hard-links there are. It's between the permissions and the owner name.
@tutoriaLinux
3 жыл бұрын
In retrospect I honestly don't know how I missed that.
Could you please re-upload this video without the music in the background?
@luiscosme1154
3 жыл бұрын
Oh great I just noticed that it stops at about 4 1/2 minutes, it was so distracting in the background that I couldn’t concentrate on what you were saying
lol im checking all my machines now to make sure i didnt run out.
i-nodes? More like i-modes! L.O.L!
Nice info. Why do you think, somebody will hack server for hosting porn site 😂?
@tutoriaLinux
3 жыл бұрын
I saw it a bunch of times when I was working in web security! Crazy things.