The Linux Filesystem Explained | How Each Directory is Used

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 มิ.ย. 2024
  • This video will give you an overview of the top-level directories found on most Linux systems. We'll go over how some of the common top-level directories are used, and explain their specific purposes within Linux.
    Chapters:
    0:00 - Intro
    0:44 - Linux Filesystem Explained
    2:06 - /bin/
    2:35 - /boot/
    2:54 - /dev/
    3:52 - /etc/
    4:35 - /home/
    5:25 - /lib/
    6:07 - /lost+found/
    6:18 - /media/
    6:52 - /mnt/
    7:19 - /opt/
    7:42 - /proc/
    8:27 - /root/
    8:46 - /run/
    9:04 - /sbin/
    9:38 - /srv/
    10:11 - /sys/
    10:36 - /tmp/
    11:00 - /usr/
    12:12 - /var/
    12:48 - Further Information
    13:39 - Outro
    New to Cloud Computing? Get started here with a $100 credit → www.linode.com/lp/youtube-vie...
    Read the doc for more information on getting started with Linode→ www.linode.com/docs/guides/ge...
    Subscribe to get notified of new episodes as they come out → th-cam.com/users/linode?sub_co...
    #Linode #Linux #CommandLine #FileStructure
    Product: Linode, Linux, Directories; @VeronicaExplains;
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 253

  • @k00bly26
    @k00bly26 11 หลายเดือนก่อน +16

    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%

  • @whoguy4231
    @whoguy4231 ปีที่แล้ว +2

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

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

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

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

  • @salkjshaweoiuenvohvr
    @salkjshaweoiuenvohvr 2 ปีที่แล้ว +9

    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

  • @MartinJaszczuk
    @MartinJaszczuk 2 ปีที่แล้ว +2

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

  • @threadtapwhisperer5136
    @threadtapwhisperer5136 2 ปีที่แล้ว +42

    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 ปีที่แล้ว +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.

  • @pac-sjwepnic8131
    @pac-sjwepnic8131 ปีที่แล้ว

    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.

  • @Michael201078
    @Michael201078 2 ปีที่แล้ว +1

    The best explanation of Linux folders. Just great!

  • @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 TH-cam videos.
    Again, thanks and God bless

  • @joojay328
    @joojay328 2 หลายเดือนก่อน

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

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

  • @atreusduvelll600
    @atreusduvelll600 2 ปีที่แล้ว +14

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

  • @terminalreset7659
    @terminalreset7659 2 ปีที่แล้ว

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

  • @jaminoes_
    @jaminoes_ 2 ปีที่แล้ว +123

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

    • @DominicDeligann
      @DominicDeligann 2 ปีที่แล้ว +7

      yeah, i was about to comment this too.

    • @TheTransporter007
      @TheTransporter007 2 ปีที่แล้ว +4

      Yeah, it's a painfully horrendous error.

    • @leonidas14775
      @leonidas14775 ปีที่แล้ว +1

      "C:\Documents and Settings\account\My Documents\"

    • @DistrosProjects
      @DistrosProjects ปีที่แล้ว +2

      @@leonidas14775 not since XP afaik, they changed it

    • @monikagaikwad7303
      @monikagaikwad7303 ปีที่แล้ว

      @@leonidas14775 1
      G1

  • @thedarkknight4243
    @thedarkknight4243 ปีที่แล้ว +2

    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

  • @lecomtegaetan8120
    @lecomtegaetan8120 ปีที่แล้ว

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

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

  • @ZekeLawl
    @ZekeLawl หลายเดือนก่อน

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

  • @GPEART1
    @GPEART1 7 หลายเดือนก่อน

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

  • @hudsonriverlee
    @hudsonriverlee 5 หลายเดือนก่อน

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

  • @andrespasso8511
    @andrespasso8511 2 ปีที่แล้ว +1

    loved that gameboy on the background !

  • @umarhussain9334
    @umarhussain9334 2 ปีที่แล้ว +3

    Thanks for these videos really helpful

  • @asdf51501
    @asdf51501 2 ปีที่แล้ว

    Good info, well presented. Thanks for the video!

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

  • @mrd4233
    @mrd4233 2 ปีที่แล้ว

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

  • @CeliniaGava
    @CeliniaGava 2 ปีที่แล้ว +7

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

  • @joel6471
    @joel6471 2 ปีที่แล้ว

    Well Explained. Thank you for your efforts.

  • @Joe-km1vs
    @Joe-km1vs หลายเดือนก่อน

    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 🙏🏾✌🏾

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

  • @chswin
    @chswin 2 ปีที่แล้ว

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

  • @TonyGonzales
    @TonyGonzales 2 ปีที่แล้ว +1

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

  • @donstamps
    @donstamps 2 ปีที่แล้ว

    Great overview! Thank you!

  • @josephkelly4893
    @josephkelly4893 2 ปีที่แล้ว +1

    Nice work with the Linode gig Veronica!!!

  • @user-cx5rl9qg1b
    @user-cx5rl9qg1b 4 หลายเดือนก่อน

    Thank you; it's very educational.

  • @shanearchibald7940
    @shanearchibald7940 2 ปีที่แล้ว

    This was great and Infromative. Thank you very much.

  • @dumbllama8495
    @dumbllama8495 2 ปีที่แล้ว +3

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

  • @synthmania7275
    @synthmania7275 2 ปีที่แล้ว

    Proud linode customer. Love your services :).

  • @lukaszmatuszewski
    @lukaszmatuszewski 2 ปีที่แล้ว +5

    /usr actually stands for Unix System Resources which perfectly makes sense.

  • @mohammadkhan8712
    @mohammadkhan8712 ปีที่แล้ว

    That was very descriptive on the Linux file system!!

  • @kevinrobertandrews
    @kevinrobertandrews 2 ปีที่แล้ว

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

  • @zameerpashablr
    @zameerpashablr ปีที่แล้ว

    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.

  • @datag1199
    @datag1199 11 หลายเดือนก่อน

    Great video - thank you! Subscribed

  • @nytfire3870
    @nytfire3870 2 ปีที่แล้ว +1

    Well explained! Keep it up ma'am 👍

  • @_BeastRein
    @_BeastRein 2 ปีที่แล้ว

    Despite already knowing most of this, it was still quite interesting to watch.

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

  • @guildpilotone
    @guildpilotone 2 ปีที่แล้ว

    Really well done! Thanks!

  • @DeadDad1
    @DeadDad1 2 ปีที่แล้ว

    Excellent video, thank you!

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

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

  • @ShariqueFaizan
    @ShariqueFaizan 2 ปีที่แล้ว

    Very nice explanation.. Thanks

  • @davidmoore573
    @davidmoore573 7 หลายเดือนก่อน

    Woot! Bonus Veronica Explains

  • @nicolycrispi3134
    @nicolycrispi3134 ปีที่แล้ว

    This is amazing, thank you so much;

  • @tpasi2020UG
    @tpasi2020UG 2 ปีที่แล้ว

    Awesome! Great tutorial thank you.

  • @jeremycoleman3282
    @jeremycoleman3282 2 ปีที่แล้ว

    Veronica is my new favorite Linode developer advocate

  • @send2gl
    @send2gl 2 ปีที่แล้ว +5

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

  • @beethreeLIVE
    @beethreeLIVE 2 ปีที่แล้ว

    Love all these cameos on Linode!

  • @MrJoegotbored
    @MrJoegotbored ปีที่แล้ว

    Thanks for the tutorial!

  • @giuzp95
    @giuzp95 ปีที่แล้ว

    Just what I needed!

  • @cbbcbb6803
    @cbbcbb6803 2 ปีที่แล้ว

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

  • @CurtisFairlie
    @CurtisFairlie ปีที่แล้ว

    Great explaination 😁

  • @NuttachaiTipprasert
    @NuttachaiTipprasert 2 ปีที่แล้ว +17

    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 ปีที่แล้ว

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

  • @alanjrobertson
    @alanjrobertson 2 ปีที่แล้ว

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

  • @kychemclass5850
    @kychemclass5850 2 ปีที่แล้ว

    Fantastic Video. Thank youuuuuuu !

  • @Pindrop22
    @Pindrop22 2 ปีที่แล้ว

    That was great! Thank you so much

  • @abdallahkhamis881
    @abdallahkhamis881 4 หลายเดือนก่อน

    Awesome .. love it.. thanks alot

  • @GeorgeGzirishvili
    @GeorgeGzirishvili 8 หลายเดือนก่อน +1

    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"._

  • @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 :)

  • @nelsonrobertomiranda7329
    @nelsonrobertomiranda7329 2 ปีที่แล้ว +1

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

  • @user-rr7im5og7k
    @user-rr7im5og7k 2 ปีที่แล้ว

    Great Explanation!

  • @Babbili
    @Babbili 17 วันที่ผ่านมา

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

  • @GVlis
    @GVlis 3 หลายเดือนก่อน

    Greeting from Greece! very nice 🙏

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

  • @casuallybad
    @casuallybad 2 ปีที่แล้ว

    Nice! You gave me GM vibes. Very informative.

  • @stucatz1130
    @stucatz1130 2 ปีที่แล้ว

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

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

  • @rafalg87
    @rafalg87 2 ปีที่แล้ว +1

    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.

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

  • @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?

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

  • @alexbrezny6108
    @alexbrezny6108 6 หลายเดือนก่อน

    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

  • @nicholashughes8214
    @nicholashughes8214 2 ปีที่แล้ว

    Very helpful Thank you

  • @StrikerEureka85
    @StrikerEureka85 2 ปีที่แล้ว

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

  • @orsonc.badger7421
    @orsonc.badger7421 2 ปีที่แล้ว

    Great video!!

  • @lucyinchat
    @lucyinchat 2 ปีที่แล้ว

    Neat! Linode is doing a thing.

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

  • @johnsanders1728
    @johnsanders1728 2 ปีที่แล้ว

    Nice Presentation

  • @vidhuran4414
    @vidhuran4414 2 ปีที่แล้ว

    I loved it really learned something

  • @eddiedantes7732
    @eddiedantes7732 8 หลายเดือนก่อน

    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.

  • @andreashuber332
    @andreashuber332 2 ปีที่แล้ว

    Wow great explanation

  • @Firoz900
    @Firoz900 2 ปีที่แล้ว

    Love your videos.

  • @lorjoo
    @lorjoo 2 ปีที่แล้ว

    Thank you!

  • @ManontheBroadcast
    @ManontheBroadcast 2 ปีที่แล้ว

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

  • @taidee
    @taidee 2 ปีที่แล้ว

    Ok, Veronica, I've finally subscribed 🤣

  • @JonathanSteadman2003
    @JonathanSteadman2003 2 ปีที่แล้ว

    Love you guys. :-)

  • @justinnewton7366
    @justinnewton7366 ปีที่แล้ว

    Thanks for the help... I'm still trying to learn the system...

  • @TomGeewhiskeytango15511meterDX
    @TomGeewhiskeytango15511meterDX 2 ปีที่แล้ว

    Good video for sure 👌

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