The Linux Filesystem Explained | How Each Directory is Used

Поділитися
Вставка

КОМЕНТАРІ • 258

  • @whoguy4231
    @whoguy4231 2 роки тому +4

    This is something EVERY linux YT channel MUST cover !!! .... Thank You lovely lady

  • @k00bly26
    @k00bly26 Рік тому +25

    The best explanation of the Filesystem I've seen and by now. Thanks Veronica for explaining

  • @elddr2
    @elddr2 2 роки тому +52

    Wow! Just wow! This was amazingly explained! Will recommend this video 100%

  • @jaminoes_
    @jaminoes_ 2 роки тому +132

    NOTE: /home is more akin to C:\Users in Windows, rather than C:\Users\WHATEVER\Documents

  • @ramial-saadi3113
    @ramial-saadi3113 2 роки тому +7

    " I assure you that the original contents of /etc were the "et cetera" that didn't seem to fit elsewhere. Other variants might do their own etymologies differently. "
    " You can find references to "et cetera" in old Bell Labs UNIX manuals and so on - it's used for system configuration, but it used to be where all the stuff that didn't fit into other directories went. "

  • @threadtapwhisperer5136
    @threadtapwhisperer5136 2 роки тому +44

    Remember, pressing the TAB key will auto complete the most likely completion.
    Speed the file path entry in terminal by at least 30 percent.

    • @AndersJackson
      @AndersJackson 2 роки тому +1

      And shortcut keys are from Emacs.

    • @stephenweishaar9058
      @stephenweishaar9058 2 роки тому

      Been using Linux for nearly 15 years, and I literally only learned this ..... earlier this week! So useful!!!

    • @MasterHigure
      @MasterHigure 2 роки тому +1

      Depending on what shell you're using, but Bash and most other common shells will tab-autocomplete as far as it can autocomplete unambiguously, not to the most likely completion. There is a substantial difference between the two.

  • @salkjshaweoiuenvohvr
    @salkjshaweoiuenvohvr 2 роки тому +10

    Veronica is awesome! I've struggled to understand the file system every time I ever tried Linux and you explained it only once and now I finally understand it! Thank you!!!

    • @Alex-fl2yh
      @Alex-fl2yh 2 роки тому

      I agree. Does she have an own channel? edit it is linked, nevermind

    • @gg-gn3re
      @gg-gn3re 2 роки тому

      Just like windows, 90% of them aren't ever used by users

    • @mortenlund1418
      @mortenlund1418 2 роки тому

      She is awesome a lot

  • @asaskald
    @asaskald 2 роки тому +1

    Veronica's channel is so fun and wholesome and now she's on Linode's channel? Excellent! Thanks, Veronica!

    • @vwbond
      @vwbond 2 роки тому

      What is the name of her channel 🤔

    • @asaskald
      @asaskald 2 роки тому

      @@vwbond Veronica Explains it All.

  • @NuttachaiTipprasert
    @NuttachaiTipprasert 2 роки тому +18

    Comming from Windows, I found Linux's filesystem makes a lot more sense. I love how everything in Linux (or Unix, for that matter) is just a file. Everything is clear and I can easily find where my files are because there's no A, B, C, D, E.... Z directory or registry nonsense unlike in Windows.

    • @herrbonk3635
      @herrbonk3635 2 роки тому +3

      I tried that positive attitude with Unix in the 1980s (my employer had heard "it was the future"). Didn't work out well though, still hate most aspects of Unix and its rigid 1970s style conventions. (The Linux kernel that Linus wrote for the 386 is another thing.)

    • @Conenion
      @Conenion 2 роки тому

      Drive letters made (somewhat) sense back than, when computers had 1 or 2 floppy drives. Not much thereafter.

    • @herrbonk3635
      @herrbonk3635 2 роки тому

      @@Conenion To me, that CP/M heritage makes perfect sense even today, when you have various USB-sticks, memory cards, and external SSDs. It would be nice if the letters could be words though, i.e. a short description of the unit. (No, I'm no M$ fan by any means, just simple and practical.)

    • @Conenion
      @Conenion 2 роки тому +1

      @@herrbonk3635
      > makes perfect sense even today,
      Not so perfect then, since drive letters have length of 1 char only.
      > It would be nice if the letters could be words though,
      In Linux you label a partition. See mount -l, or lsblk. lsblk will show you
      /run/media//.
      And any decent GUI file manager will just show you the label. Like for example Nemo.
      (lsblk -o LABEL shows you only the labels.)

    • @herrbonk3635
      @herrbonk3635 2 роки тому

      @@Conenion That's not how it was in Unix, iirc. But a Windows shell (like Total Commander or other) could actually do the same. Because the connection between a drive letter and the id-string of an external SSD, other Nand-flash unit, or whatever, is known and visible via "the registry".

  • @Foulancer
    @Foulancer 2 роки тому +3

    As a configuration manager I have to say that the Linux file system to me looks like chaos. As if either a result of lack of discipline amongst the open source community or due to legacy. In any case, thanks for this informative video!

  • @bettyswunghole3310
    @bettyswunghole3310 3 місяці тому +1

    As someone who was schooled in the "opposition camp" (namely DOS/Windows) and has only recently started getting into Linux/UNIX, the Linux file system was pretty overwhelming...vids like this help to make it less scary, though! 😁

  • @ZekeLawl
    @ZekeLawl 7 місяців тому +1

    I’m not a sysadmin but as a new Linux user just to replace windows this is very helpful. Thank you

  • @GeorgeGzirishvili
    @GeorgeGzirishvili Рік тому +2

    3:30: Your second device has no partitions there. Partitions are ones that end with _p_ followed by a number.
    11:00: _USR_ stands for _"Unix System Resource",_ not _"user"._

  • @MikeWood
    @MikeWood 2 роки тому +1

    For some reason I never saw this when it was first posted. Really good info which I had in one spot when I was first learning Linux. Nicely done.

  • @thedarkknight4243
    @thedarkknight4243 Рік тому +3

    Thank you so much Linode and especially Veronica for explaining Linux System. Please do more videos on the Linux system and Linux Server Administration, much appreciated. Thanks

  • @blackchristiangeek
    @blackchristiangeek 2 роки тому +2

    Thanks for the tutorial. I have taken a lot of notes and I clearly have a lot more to learn about Linux basics :-) Also, it was interesting to see someone (you) for the first time that I have been listening to for a long time. Thus, I listen to far more podcasts than I watch UA-cam videos.
    Again, thanks and God bless

  • @Michael201078
    @Michael201078 2 роки тому +1

    The best explanation of Linux folders. Just great!

  • @Joe-km1vs
    @Joe-km1vs 7 місяців тому

    I’m new to Linux, this is only the second video of yours that I’ve seen, and I think your videos teaching Linux are some of the best I’ve seen! Very clear explanations where I’m able to understand, and your funny sometimes 😂❤
    Sincere gratitude and thanks for explaining this foreign OS to an average self/taught Windows user like myself 🙏🏾✌🏾

  • @crevanizekil
    @crevanizekil Рік тому +1

    Finally, a lady explaining linux. Thank you, this is very helpful. Good stuff.

  • @JarrodMcKitterick
    @JarrodMcKitterick 2 роки тому +1

    Thank you, Veronica. Will be sharing your Linux filesystem explanation to all my newbie Linux friends. This video is Awesome and so are you!

  • @jimbojimberson9934
    @jimbojimberson9934 2 роки тому +8

    I love the Unix / directory! I remember switching to MacOS and Linux exclusively and falling in love with the simplicity. This is an awesome guide to all of them!

    • @linuxstreamer8910
      @linuxstreamer8910 2 роки тому

      true after coming from windows it is so easy on windows i had some problems when i unplugged & plugged in a external hdd it changed letters I had some games installed on it it broke so much now i don't have to worry about that anymore ALL HAIL LINUX

    • @birusingh7820
      @birusingh7820 2 роки тому

      @@linuxstreamer8910 the

    • @linuxstreamer8910
      @linuxstreamer8910 2 роки тому

      @@birusingh7820 who cares

  • @MartinJaszczuk
    @MartinJaszczuk 2 роки тому +2

    This is an excellent and concise video. Some previous knowledge required, but NICE!

  • @TonyGonzales
    @TonyGonzales 2 роки тому +2

    Veronica is awesome, and so are you! And Linux!

  • @joojay328
    @joojay328 7 місяців тому

    The best video explaining the filesystem, breaking it down. THANK YOU!

  • @atreusduvelll600
    @atreusduvelll600 2 роки тому +15

    Great to see you on this channel Veronica! I always love your videos, especially the ones where you demystify some big topics like this. 👍

  • @bornsonoran
    @bornsonoran Рік тому +1

    This is my 4th time watching. I absolutely love how you breakdown the file system. You make learning Linux very understandable for me.

  • @chswin
    @chswin 2 роки тому

    This is very well done. She’s a pro communicator!

  • @mrd4233
    @mrd4233 2 роки тому

    I think this one is the best linux quality explanation on yt!!

  • @Appalling68
    @Appalling68 2 роки тому +1

    1:17 Kernel 4.18. Kernel 4.18? Like wow! LOL! Thank you SO MUCH for such an informative video. You rock, Linux lady!

  • @pfloydphanatic
    @pfloydphanatic 2 роки тому +2

    Thanks for the fun and helpful video! I just took a Linux class and wow what a lot of information. Have like a 30+ page word doc of all commands and another one for all of the directories. It will be a while until I take my Linux+ exam! I told the instructor that I think I know more about the Linux system than Windows now. He's my scripting teacher too for the summer. Think this one's going to be rough...

  • @OMNS777
    @OMNS777 2 роки тому

    Proud linode customer. Love your services :).

  • @CeliniaGava
    @CeliniaGava 2 роки тому +7

    I hope you will expand beyond Linode, you are WONDERFUL at explaining linux

  • @josephkelly4893
    @josephkelly4893 2 роки тому +1

    Nice work with the Linode gig Veronica!!!

  • @hudsonriverlee
    @hudsonriverlee 11 місяців тому

    Incredibly informative video. Wow. I am stunned at how little I know and knew and now feel my eyes opened... my Linux Mint machine is only for Ham radio use .. so very few programs other than Ham radio related programs will be required.. knowing the how and where is a huge help. Well lit videos with good audio and a confident presenter are key ! Well done !!

  • @lecomtegaetan8120
    @lecomtegaetan8120 2 роки тому

    ... Thank you so much T_T .I had always been looking for THIS content somewhere about the filesystem but explained that way with important things added while in the stream just enough to keep looking for informations more deeply.

  • @andrespasso8511
    @andrespasso8511 2 роки тому +1

    loved that gameboy on the background !

  • @zameerpashablr
    @zameerpashablr 2 роки тому

    Thank you so much for explaining in detail, I have been learning for the past 1 year , I regularly follow Learn Linux TV....he always speaks about Linode, I wanted to learn a lot about Linux Distros. Thank you so much once again.

  • @jeremycoleman3282
    @jeremycoleman3282 2 роки тому

    Veronica is my new favorite Linode developer advocate

  • @GPEART1
    @GPEART1 Рік тому

    The symbolic links information was great to learn, thank you!

  • @davidinmichael
    @davidinmichael Місяць тому

    You made this for me, right? Thank you 🎉

  • @BilalHeuser1
    @BilalHeuser1 2 роки тому +2

    I like to use the -F option when I use the ls command. Using this option, it will classify each entry and indicate what kind of file it is.

  • @androth1502
    @androth1502 2 роки тому +2

    i've noticed in the home folder, there is a .config folder where *most apps store their user-defined configuration files in their respective folders. however there are some like bash and x11 that dump their configs right in the user folder. is this some kind of legacy thing? it would be nice if all the programs obeyed the .config/ convention.

    • @wsippel
      @wsippel 2 роки тому

      Yeah, the .config folder is related to the relatively new (as far as standard adoption goes) freedesktop XDG base directory specification. Not all programs follow freedesktop standards, and especially legacy applications sometimes don't adopt such changes for compatibility reasons.

  • @rafalg87
    @rafalg87 2 роки тому +2

    There's some flexibility and some legacy stuff which is fine, but where it gets messy from my point of view is in the /usr/local directory which starts its own duplicated structure, e.g. it can have bin, lib or etc subdirectories. I'm looking at a certain project that uses containers and one of them has configuration in /etc/php while another has it in /usr/local/etc/php. I never know where to look first.

  • @pac-sjwepnic8131
    @pac-sjwepnic8131 2 роки тому

    I really appreciate this video. the basics explanation is enough to get started. Helps me think in the right direction when something happens. Thanks Veronica.

  • @sinzies
    @sinzies 2 роки тому +2

    Cool intro for someone new to Linux helps demystify any confusion. Loved the /etc pronunciation never heard it that way :) been using e.t.c.

  • @dumbllama8495
    @dumbllama8495 2 роки тому +3

    I loved it. it's concise and fast paced, which is great for learning starter concepts in any field.

  • @alanjrobertson
    @alanjrobertson 2 роки тому

    Great video, thanks. Also loved you addressing the elephant in the room around the pronunciation of /etc 😂🐘👍

  • @cbbcbb6803
    @cbbcbb6803 2 роки тому

    You work with COBOL? I love it. I will subscribe.
    What COBOL do you work with?

  • @Therealbrez
    @Therealbrez 11 місяців тому

    I can not imagine anyone ever calling it etsy instead of E T C, there is a correct way of pronoucning it and it is the one I grew up using

  • @nelsonrobertomiranda7329
    @nelsonrobertomiranda7329 2 роки тому +1

    Amazing video! about the usr directory, some would call it "unix system resources", hence the name

  • @davidmoore573
    @davidmoore573 Рік тому

    Woot! Bonus Veronica Explains

  • @BG-qb6dq
    @BG-qb6dq 2 роки тому +1

    The second drive is actually not partitioned. "n1" is the namespace.

  • @stucatz1130
    @stucatz1130 2 роки тому

    What is the keyboard you are using? Looks like a 65%er ? Thank you for the vid

  • @umarhussain9334
    @umarhussain9334 2 роки тому +3

    Thanks for these videos really helpful

  • @FGB64
    @FGB64 2 роки тому +3

    Most (all?) of these directory names were inherited from Unix. I believe usr stood for Unix System Resources.

    • @lucyinchat
      @lucyinchat 2 роки тому +1

      That might be apocryphal, it might just be a shortening of user.

    • @VeronicaExplains
      @VeronicaExplains 2 роки тому

      @@lucyinchat That's my understanding as well- it didn't stand for anything other than "user" as in "user-land resources" as opposed to "system-land resources" found in the other directories.

  • @beethreeLIVE
    @beethreeLIVE 2 роки тому

    Love all these cameos on Linode!

  • @mohammadkhan8712
    @mohammadkhan8712 2 роки тому

    That was very descriptive on the Linux file system!!

  • @send2gl
    @send2gl 2 роки тому +5

    Well presented, used Linux for ages but nice to get clarification on some folder uses.

  • @andy_3_913
    @andy_3_913 2 роки тому +1

    You're explaining, but not where I was expecting...confused lol. But excellent job all the same :)

  • @dragonek_gnu_linux_pl
    @dragonek_gnu_linux_pl 2 роки тому

    finally i found a video where is expleied all i man ALL linux filesystem directories not only some and /srv /run /sys skipped almost at all tutorials

  • @TheLazyJAK
    @TheLazyJAK 2 роки тому +1

    I'm pretty sure /usr stands for universal system resources or something like that

  • @lucyinchat
    @lucyinchat 2 роки тому

    Neat! Linode is doing a thing.

  • @casuallybad
    @casuallybad 2 роки тому

    Nice! You gave me GM vibes. Very informative.

  • @Hagar921
    @Hagar921 5 місяців тому

    Just learned a lot. Thank you Veronica!

  • @terminalreset7659
    @terminalreset7659 2 роки тому

    Excellent video! Thanks! Made it easy to get a good understanding of the file system.

  • @SatishKumar-ut4pu
    @SatishKumar-ut4pu 2 роки тому

    Please want to learn more about file system types, EXT3 , 4 LVM, XFS how to extended them when we augment additional disk space, also role of /etc/fstab

  • @taidee
    @taidee 2 роки тому

    Ok, Veronica, I've finally subscribed 🤣

  • @TheVexinator
    @TheVexinator 2 роки тому +11

    Flexibility is not always your friend. Flexibility means there are multiple possible causes when something goes wrong, increasing complexity of troubleshooting. That said, good introduction!

  • @davey820051
    @davey820051 9 місяців тому

    Linux is awesome-and so is Veronica!

  • @StrikerEureka85
    @StrikerEureka85 2 роки тому

    i do some development with Coldfusion and when installing on Linux, it usually goes by default in the /opt directory

  • @Babbili
    @Babbili 6 місяців тому

    this is one of the best Linux filesystem vids, wonder why she's not anymore in Linode

  • @nytfire3870
    @nytfire3870 2 роки тому +1

    Well explained! Keep it up ma'am 👍

  • @TheBoxyBear
    @TheBoxyBear 2 роки тому

    I worked with windows software that often use the temp folder to avoid corruption when writing files. The stream would write to the temporary file then that file would be moved to the right location, overwriting the original. Is that a way the same directory is often used on Linux?

  • @asdf51501
    @asdf51501 2 роки тому

    Good info, well presented. Thanks for the video!

  • @frankwalder3608
    @frankwalder3608 2 роки тому +6

    I think it would be nice to see a video on the differences between ext2, ext3, and ext4. Including information about journaling would also be nice.

    • @nganlinux3313
      @nganlinux3313 2 роки тому

      0jS

    • @SM-1010
      @SM-1010 Рік тому +1

      The Second Extended File System (ext2) is one of the oldest Linux file systems still available.
      ext2 stores data in a standard directory and file hierarchy.
      The maximum file size supported is 2 TB.
      An ext2 volume can be up to 4 TB in size.
      File names can be up to 255 characters long.
      Linux users, groups, and permissions are supported.
      ex2 does not use journaling (which is used in most modern file systems). As a result, ext2 takes a long time to recover if the system shuts down abruptly.
      The Third Extended File System (ext3) is an updated version of ext2 that supports journaling.
      Before committing a transaction to a storage device, the ext3 file system records the transaction to the journal and marks it as incomplete. After the disk transaction is complete, the file system marks the transaction as complete in the journal. By doing this, ext3 can keep track of the most recent file transactions and whether or not they were completed. This allows ext3 to recover much more quickly than ext2 in the event of an unclean system shutdown.
      ext4 (most common) is the fourth generation file system in the ext file system family. ext4 includes all of the features found with ext2 and ext3 with the addition of the following features:
      Support for file sizes up to 16 TB and disk sizes up to 1 exabyte (EB).
      Supports up to four billion files in the file system.
      Uses checksums to verify the integrity of the journal file itself.
      Checksums help improve the overall reliability of the system because the journal file is the most heavily used file of the disk.

  • @eddiedantes7732
    @eddiedantes7732 Рік тому

    Thank you for explaining in a way a moron like me can understand. This is how my mom used to talk to me when I was five, and I greatly appreciate it.

  • @ManontheBroadcast
    @ManontheBroadcast 2 роки тому

    A Users and Permissions Tutorial would be a great follow-up ...

  • @GVlis
    @GVlis 9 місяців тому

    Greeting from Greece! very nice 🙏

  • @intriguing24
    @intriguing24 2 роки тому

    You are amazing....I have been looking for someone who will cut down linux into piece for me and I must say....today I found you and I am convinced you are sent. Thank you. I will subscribe and pls I hope you reply and answer my questions.

  • @gavinkneale2707
    @gavinkneale2707 2 роки тому

    👋 Hi Veronica. Real Thanks.
    Do you know where I can find Clippy ?

  • @nickconstantine6308
    @nickconstantine6308 2 роки тому +5

    This video was very concise thank you! I have been deploying sites with a recipe for a while and I wanted to learn more about linux.
    I would really like to see proper mern stack deployment tutorials that utilize things like s3 comparable object storage and node balancers. Maybe something similar with Wordpress installs too would be pretty helpful. I feel like this would help me go from beginner to intermediate.

  • @KnutBluetooth
    @KnutBluetooth 2 роки тому

    Correction: Historically before the big /usr merge, a lot of programs in both /bin and /sbin were statically linked. The /sbin directory was used for programs that a normal user shouldn't use. Typically programs that require root. It's not recommended to download files in /tmp because other regular users or system accounts could access them if the permissions aren't set right and other shenanigans. Some Linux distros have a temporary directory in /run that is private to the user because of this.

    • @herrbonk3635
      @herrbonk3635 2 роки тому

      I agree on the static linking. But who cares about "other users" in 2022? Eveyone has got their own personal computer for 30-40 years now (i.e. where you download things, so not talking about payroll or security systems).

    • @KnutBluetooth
      @KnutBluetooth 2 роки тому

      @@herrbonk3635 What is it that you do not understand about the word "Historically" ?

    • @herrbonk3635
      @herrbonk3635 2 роки тому

      @@KnutBluetooth Nothing dude. _"It's not recommended to download files in /tmp because [...]"_ sounded like present tense to me.

    • @KnutBluetooth
      @KnutBluetooth 2 роки тому

      @@herrbonk3635 Oh that. But the point still stands. Thought you were talking about /sbin. There are plenty of system user accounts (network daemons with their own user accounts) who could access the files in /tmp if they don't have proper permissions and there is also all the file/directory creation race condition shenanigans which is why mktemp exists. These network daemons should be sandboxed with restricted filesystem access on systemd systems, but many still aren't and most non-systemd distros have no sandboxing at all. Private temp dirs in /run are not just decoration. Also these days /tmp is more often than not a tmpfs which is going to be a problem for some downloads.

  • @koekkoeksklak
    @koekkoeksklak 2 роки тому

    What keyboard is that with split spacebar in the background?

    • @VeronicaExplains
      @VeronicaExplains 2 роки тому

      System76 Launch Keyboard! I love the split spacebar.

  • @andreslb151
    @andreslb151 Рік тому

    4:45 Not exactly. The /home dir equivalent in Windows is \Users (or \Documents and Settings for older versions).

  • @MitchSiripanya
    @MitchSiripanya 9 місяців тому

    Thank you; it's very educational.

  • @joel6471
    @joel6471 2 роки тому

    Well Explained. Thank you for your efforts.

  • @shanearchibald7940
    @shanearchibald7940 2 роки тому

    This was great and Infromative. Thank you very much.

  • @squ34ky
    @squ34ky 2 роки тому

    4:40 Isn't the Windows analogue (at least Win 7 onwards) to the Linux home directory C:\Users?
    Linux (/home//) == Windows (C:\Users\

  • @giuzp95
    @giuzp95 2 роки тому

    Just what I needed!

  • @donstamps
    @donstamps 2 роки тому

    Great overview! Thank you!

  • @guysmith1134
    @guysmith1134 2 роки тому

    That was cool, very calm and clear. I would like a video on - If I have one Linux system on my home home network, can I access the word documents on my Network storage.

    • @Phasma6969
      @Phasma6969 2 роки тому

      Yes just make the folder a share in Windows and mount it on Linux. You can google MULTIPLE methods.

  • @MHarvey-tp5km
    @MHarvey-tp5km Рік тому +1

    "etc" is literally pronounced "ETCETERA" according to its creator Dennis Richie. It's not a mystery.

  • @datag1199
    @datag1199 Рік тому

    Great video - thank you! Subscribed

  • @kevinrobertandrews
    @kevinrobertandrews 2 роки тому

    That was a lot, but very well explained!!! Thank you.

  • @ShariqueFaizan
    @ShariqueFaizan 2 роки тому

    Very nice explanation.. Thanks

  • @kychemclass5850
    @kychemclass5850 2 роки тому

    Fantastic Video. Thank youuuuuuu !

  • @hudsonriverlee
    @hudsonriverlee 11 місяців тому

    How to locate and assign internal sound cards or devices %% .. recently on my Linux Mint machine I installed a creative lab sound card.. however the machine does not see it % when I plug in a C-media usb sound card it sees this right away -- hmmm .. no clue here...

  • @AmirHamzah_MAHBAR
    @AmirHamzah_MAHBAR Рік тому

    Wait the minute, this is not from Veronica channel 😂
    But this is good video!

  • @CurtisFairlie
    @CurtisFairlie 2 роки тому

    Great explaination 😁

  • @wedrownysowianin9387
    @wedrownysowianin9387 Рік тому

    Very good explanations as /run seems kind of new and I rarely hear about /sys at all.
    However /opt still seems to have a lot of use. The Brave browser places nearly all of its files there, as do some commercial VPNs, along with my current distro (Sparky Linux) placing a lot of its wallpapers there.