Linux File System/Structure Explained!

Sdílet
Vložit
  • čas přidán 15. 05. 2024
  • Ever get confused where to find things in Linux and where programs get installed? I'll explain what all the folders are for, and what's in them! (CLICK \/ SHOW MORE! \/ )
    If you're interested in what Linux is in general, along with how you use it and its components, check out my video "What is Linux?" : • What is Linux? - Linux...
    00:00 Start
    02:35 /bin
    02:50 /sbin
    03:22 /boot
    03:31 /cdrom
    03:38 /dev
    04:14 /etc
    05:12 /lib, /lib32, /lib64
    05:28 /mnt, /media
    06:31 /opt
    06:59 /proc
    08:08 /root
    08:31 /run
    08:53 /snap
    09:08 /srv
    09:28 /sys
    09:51 /tmp
    10:34 /usr
    11:48 /var
    12:15 /home
    My Patreon : / doriandotslash
    Music by MrGamer (@AndreasRohdin): / gamermachine
    How and Where to backup your files : • Backups in Linux - HOW...
    NOTES : For MacOS and BSD, I know MacOS's history involved a lot more such as NeXTSTEP/Mach OS/BSD/Darwin etc, but I only mentioned BSD because more people have heard of it and I didn't want to get into the whole evolution of Mac to keep the video shorter.
    I hope you enjoy this video on Linux Directories and File Structure Explained!
    Thanks for watching!
    #Linux #Linuxfilestructure #Linuxfilesystem
  • Věda a technologie

Komentáře • 3,4K

  • @dimitriouchemistry2215
    @dimitriouchemistry2215 Před 5 lety +5462

    I always thought that the linux file system was confusing. Now I know that it is confusing!

    • @Doriandotslash
      @Doriandotslash  Před 5 lety +238

      Haha, yes, but it's not that bad ;)

    • @dimitriouchemistry2215
      @dimitriouchemistry2215 Před 5 lety +128

      @@Doriandotslash Yeah, I guess I just have to start using it more. It just doesn't feel familiar. I like how everything is in inside of C:/, I wish Linux had a folder like that. It's like the beginning of the yellow brick road.

    • @Doriandotslash
      @Doriandotslash  Před 5 lety +255

      Well, the root folder is where everything is. Like, everything! Including devices and any drives mounted in the system. A lot of those folders are only there for the OS to use. Don’t worry, the more you use it, the more you’ll feel comfortable with it.

    • @dimitriouchemistry2215
      @dimitriouchemistry2215 Před 5 lety +53

      @@Doriandotslash That helps, thanks!

    • @cokeforever
      @cokeforever Před 5 lety +102

      @@Doriandotslash it is really non-practical for _user_; likewise Win created abstractions like Users, %appdata%, Program Files making those abstract of DOS heritage (drive volumes)... Linux should too, it will never have a noteable part of desktop market without this and precompiled binaries. Period. p.s. "C" or "D" is much simpler for user to remember than "/mnt/sda1"... *nixes were always sysadmin/netradmin oriented, they should really think of users.

  • @QualityDoggo
    @QualityDoggo Před 3 lety +2159

    User: "where is the system located?" Linux: Yes

    • @Doriandotslash
      @Doriandotslash  Před 3 lety +167

      Pretty much sums it up lol

    • @ErrorNoInternet
      @ErrorNoInternet Před 3 lety +94

      Windows: you need space? Delete system 32!

    • @Doriandotslash
      @Doriandotslash  Před 3 lety +121

      @@ErrorNoInternet Why not the whole partition? ;)

    • @slajacz9238
      @slajacz9238 Před 3 lety +6

      @@Doriandotslash what is the name of this distro ? or theme look

    • @Yetipfote
      @Yetipfote Před 3 lety +3

      @@ErrorNoInternet That's what flamethrowers are for

  • @lilrex2015
    @lilrex2015 Před 2 lety +140

    I love how this is only 15 minutes long, no sponsor spot, and there is not a single wasted word.

    • @JaxVideos
      @JaxVideos Před 3 měsíci +3

      Too wordy! Study how the original 'man' pages were written. Short koans, short enough to memorize while their full meaning dawned on you over several weeks of field experience.

  • @shimmeringreflection
    @shimmeringreflection Před 3 lety +237

    For anybody who has moved from Windows to Linux, this video is essential viewing. Extremely comprehensive, logical, great voice and easy to follow

    • @louiseyvette2261
      @louiseyvette2261 Před 3 měsíci +1

      Great video!! Thanks

    • @cybernit3
      @cybernit3 Před 13 dny

      Ya, I find this video a good summary to get you started or familiarized.

  • @abloogywoogywoo
    @abloogywoogywoo Před 4 lety +1178

    The Linux 2 golden commandments:-
    1. Here are lots of folders.
    2. Don't go messing with any of them.

    • @boemlauw
      @boemlauw Před 4 lety +7

      This guy doesn't enforce SElinux :P

    • @Chris-tb7jh
      @Chris-tb7jh Před 4 lety +35

      @@boemlauw I find selinux to be like having a huge mansion full of hundreds of rooms, except in front of every doorway is a huge bouncer in a bad mood.

    • @hermask815
      @hermask815 Před 4 lety +7

      Deon Denis if you know what you are doing and know how to deal with the consequences you’re free to do anything, even in real life. Else be careful.

    • @Kashifhussainvlogss
      @Kashifhussainvlogss Před 3 lety +1

      Your pc will die

    • @Nunya58294
      @Nunya58294 Před 3 lety +1

      @Deon Denis yes absolutely

  • @MrMMohsen
    @MrMMohsen Před 5 lety +2775

    /bin 02:35
    /sbin 02:50
    /boot 03:22
    /cdrom 03:31
    /dev 03:38
    /etc 04:14
    /lib, /lib32, /lib64 05:12
    /mnt, /media 05:28
    /opt 06:31
    /proc 06:59
    /root 08:08
    /run 08:31
    /snap 08:53
    /srv 09:08
    /sys 09:28
    /tmp 09:51
    /usr 10:34
    /var 11:48
    /home 12:15

  • @anythingtornadicnet
    @anythingtornadicnet Před 4 měsíci +73

    5 years old and still one of the most important entry level linux videos I have come across.

    • @MaxOakland
      @MaxOakland Před 3 měsíci +12

      You’re writing very well for a 5 year old!

    • @anythingtornadicnet
      @anythingtornadicnet Před 3 měsíci +11

      @@MaxOakland thanks boss I am trying

  • @hyojinkyoma9620
    @hyojinkyoma9620 Před 3 lety +91

    Been using Linux for years and I’ve never seen anyone explain directories so thoroughly. Always something more to learn. Thank you.

  • @rikka0_059
    @rikka0_059 Před 4 lety +1181

    etc - Registry, Local Machine
    boot - The boot partition
    bin and sbin - Windows and system32
    lib - system32
    opt and some bin - Program Files
    dev and proc has no corresponding windows directories
    home and root - Users
    media, mnt and cdrom - drive letters assigned by windows, but ntfs allows you to mount a partition to a folder like in linux

    • @JonSnow-yf1ze
      @JonSnow-yf1ze Před 4 lety +7

      Thanks

    • @goldweb6304
      @goldweb6304 Před 4 lety +21

      fck u
      / = not like dump \
      etc = cfg
      boot = boot
      bin = binary compilated
      lib = library for bin
      opt = other shit
      var = tmp shit
      root = god
      usr = multi shit
      home = hamster shit
      dev = device
      dd if=/dev/randomshit of=/yourbrain

    • @TheDragShot
      @TheDragShot Před 4 lety +40

      *bin* and *sbin* - system32 and any directories listed in the PATH variable
      *dev* - This PC, Device Manager
      *proc* - Task Manager > Details, dxdiag.exe
      *run* - That one app you use to allocate space in RAM for use as volatile, high-speed storage

    • @deniskhakimov
      @deniskhakimov Před 4 lety +3

      Dude, you just saved me 15 minutes of life!

    • @victornikolov537
      @victornikolov537 Před 4 lety +1

      @@TheDragShot , in /proc you can write also which you can't do in Task Manager.

  • @davidclifford4536
    @davidclifford4536 Před 5 lety +1152

    I'm teaching my 14 year old grandson the Linux OS and Python programming on the Raspberry pi.
    He is a willing student and this is the best introduction to the Linux file system I've found.
    Your work will help launch him on what I'm sure will be a rewarding career.
    Thank you

    • @Doriandotslash
      @Doriandotslash  Před 5 lety +95

      That’s awesome to hear David and I’m glad this helped you out! I wish him all the best! Thank you 😁

    • @arthemis1039
      @arthemis1039 Před 5 lety +203

      Best grandfather

    • @kjn5991
      @kjn5991 Před 5 lety +48

      At least you have this the easy way.... I am 24 and i might have to teach Linux OS for my granparents if their Windows dies..... And they are the sort of people who think that everything is gone and untraceable after you put it to Trash bin.....

    • @RamkrishanYT
      @RamkrishanYT Před 5 lety +13

      I'm glad that you're doing it with python instead of something like C

    • @Kasiarzynka
      @Kasiarzynka Před 4 lety +21

      I kinda envy him. I'm 22 and only starting to get to know Linux, I used to use Windows everywhere: home, school, now at work (unless I have to do something on a Linux server which is extremely rare or have to deal with something like crashed ESXi host - ESXi is based on Unix/Linux/whatever but follows the same ideas). Since I'm a lazy person (which is why I usually try to automate as much as possible), it's kinda discouraging. That's why I now installed a Ubuntu server at home for my website project and didn't install a GUI for it 😏. Now I simply have to deal with the CLI. Even though I access it over SSH from my Windows laptop 😅.

  • @internetsnacks150
    @internetsnacks150 Před 3 lety +240

    I am 60, and about 4 years ago I threw Windows under the bus for Linux, and I am now a happy computer user.
    Although I mastered the most important basics of the system, your video came to give further insights into that!
    Thank you very much!

    • @progamerbufovi
      @progamerbufovi Před 3 lety +19

      Dude why would you throw windows under the bus it took people time to make it so you can look outside

    • @internetsnacks150
      @internetsnacks150 Před 3 lety +22

      @@progamerbufovi
      Ha ha ha ha
      I appreciate your sense of humor.
      Melinda Gates just threw Bill Gates under the bus.
      Does that ring a bell?
      If you throw Gates under the bus, how would you access your mansion?

    • @progamerbufovi
      @progamerbufovi Před 3 lety +3

      @@internetsnacks150 hahahaah

    • @progamerbufovi
      @progamerbufovi Před 3 lety +5

      @@internetsnacks150 I will drink wine to this one

    • @internetsnacks150
      @internetsnacks150 Před 3 lety +10

      @@progamerbufovi
      Yeah, but Wine is very limited under Linux. Not all .EXE files work properly.
      I'd rather drink whisky. 😂😂

  • @AceTrainerBanjo
    @AceTrainerBanjo Před 3 dny

    In true Linux fashion, a community member on the internet has been more insightful with their explanation than my college professor. Thank you!

  • @thankarezos
    @thankarezos Před 5 lety +820

    "next is boot, this is a folder you dont want to play around with"
    me: plays with the grub folder like there is no tommorow

    • @Doriandotslash
      @Doriandotslash  Před 5 lety +83

      Haha well, you shouldn’t if you don’t know what you’re doing. If you know what you’re doing then all is fair game 😎

    • @catlord69
      @catlord69 Před 4 lety +14

      make sure to use timeshift :)

    • @thankarezos
      @thankarezos Před 4 lety +13

      @@Doriandotslash I mostly know. But even if i make a mistake as long i dont lose any important files its ok.

    • @krozareq
      @krozareq Před 4 lety +18

      Doesn't hurt to keep a backup of your root partition. But if you break something, load up the live USB, mount it and chroot on over. Hard to break anything if you know what you're doing or willing to research and learn. Most anything you want to configure for GRUB is going to be in /etc/grub.d/ anyways unless you're themeing it. In that case, carry on and keep a backup :D

    • @AndersJackson
      @AndersJackson Před 4 lety +6

      if you are a beginner, you shouldn't change that unless you are prepared to learn how to fix it and might even reinstall the OS.
      Then a separate partition for /home is a good thing. :-)

  • @rock3tcatU233
    @rock3tcatU233 Před 5 lety +386

    I seem to have stumbled upon a golden nugget with this video.

    • @Doriandotslash
      @Doriandotslash  Před 5 lety +7

      Thank you :)

    • @atlas6397
      @atlas6397 Před 4 lety +1

      azul

    • @dexd.5971
      @dexd.5971 Před 4 lety

      @@atlas6397 makaynch chi 7aja smteha Azul

    • @dexd.5971
      @dexd.5971 Před 4 lety

      @@atlas6397 hhh wakha mnhdarch al7a9i9a maghadich tebadal kab9a l7a9i9a hia hia Azul satazul surtt m3a l3ilm DNA gal anaho barbar 9lal f chamal afri9ia

    • @atlas6397
      @atlas6397 Před 4 lety +1

      @@dexd.5971 dna taygol anna ga3 nnas d chamal ifriqia barbar, sir tqawwad, mal dil mmok m7achach

  • @ppt31788
    @ppt31788 Před 4 lety +149

    This was incredibly useful. I've owned and used computers since 1978, starting with a Commodore PET, and been a programmer etc but never messed with Linux much. I just started setting up a virtual Linux server on AWS and this folder structure overview was exactly what I was looking for, very well done explanation - thank you again.

    • @solar9137
      @solar9137 Před rokem +1

      wow that's cool

    • @andrewhancock2451
      @andrewhancock2451 Před rokem

      I remember the PET! I also remember using punch cards in highschool.

  • @slowheat4651
    @slowheat4651 Před 3 lety +5

    You are teaching me much more than my instructor has in 5 months in 16 mins without myself getting confused. Seriously though thanks for this!

  • @binaryrain5297
    @binaryrain5297 Před 5 lety +813

    This is one of the best explanations I have seen

    • @Salcay
      @Salcay Před 5 lety +2

      This video is indeed not bad, however, it only covers the basics. There is a lot more to know about it.

    • @stargazer7644
      @stargazer7644 Před 5 lety +1

      It isn’t this simple unless you use only one distro. And the made up backronyms for etc and usr are ridiculous. You have to understand the history of Unix for the filesystem layout to make sense. There is no history here.

    • @wisteela
      @wisteela Před 5 lety +4

      @@Salcay No it's excellent. It covers what people need to know.

    • @wisteela
      @wisteela Před 5 lety +3

      @@stargazer7644 Does that really matter?

    • @Salcay
      @Salcay Před 5 lety

      @@wisteela No. There is a lot more to know about it, and this only covers the basics. As a former Linux instructor myself, please let me know what I am saying!

  • @eugenewii
    @eugenewii Před 4 lety +29

    I remember for the first few years, i had no idea what was where. The most I learned about linux was "Well, I know not to delete/change that file/folder. Time to reinstall from scratch.".

  • @robertd1965
    @robertd1965 Před 4 lety +8

    I've been using (and in many cases) perplexed by the file system in multiple flavors of Linux over the years (honestly, I don't know what every single file/folder in Windows does either), but this short video increased my comfort level greatly. Thanks for putting it up!

  • @MrMikey1703
    @MrMikey1703 Před 2 lety +9

    Thanks so much man. This has helped me immensely! I’ve been an IT professional supporting Windows environments for over 20 years and am only just getting serious about Linux at home now.
    The tutorial is terrific at giving an overview without being daunting. Well done and now I don’t feel overwhelmed at the idea of installing a non GUI distro. Cent OS here I come!

  • @fahadfarooq155
    @fahadfarooq155 Před 5 lety +276

    looking for the C drive [scary music]
    had me laughing so hard...

    • @Doriandotslash
      @Doriandotslash  Před 5 lety +14

      :D

    • @HappyBeezerStudios
      @HappyBeezerStudios Před 4 lety +2

      if someone really, really, really wants to, they could probably mount it to a folder "C" somewhere in their home directory and call it a day.

    • @karimm.elsayad9539
      @karimm.elsayad9539 Před 3 lety +1

      Anyone knows the name of that music?

    • @seamac2537
      @seamac2537 Před 3 lety +2

      @@karimm.elsayad9539 Classic Horror Movie ... it has become a trope. czcams.com/video/Me-VhC9ieh0/video.html It is from an Alfred Hitchcock movie called "Psycho"

    • @charliekahn4205
      @charliekahn4205 Před 3 lety

      C is mounted to /

  • @flyhouseoftruth470
    @flyhouseoftruth470 Před 4 lety +383

    Create an OS and call it "DOORS" .. Are you tired of just looking out of Windows?, Try walking through DOORS, Information worldwide within your grasp. Opening up a new world to it's users.

  • @anthonynunyabizness9989
    @anthonynunyabizness9989 Před 3 lety +33

    I really appreciated this video my man. It's a daunting task for an absolute novice with computers to learn linux. I needed to start somewhere and this was a great start by learning wtf my directories are for. Your explanations were clear and concise, no clutter, no confusion. Thank you.

  • @prestonashworthmusic
    @prestonashworthmusic Před rokem +3

    This was a pretty good breakdown, striking a good balance of context while maintaining the focus on each topic. Well done and very useful!

  • @TaiViinikka
    @TaiViinikka Před 4 lety +48

    Thanks Dorian. I really, really needed this! Unfortunately I needed it in 1994. But that's not your fault! Well done.

    • @Doriandotslash
      @Doriandotslash  Před 4 lety +8

      Haha yes I would have also liked knowing this in the 90’s lol

  • @20thcenturyfoxyoutube
    @20thcenturyfoxyoutube Před 5 lety +271

    ugh thank god, an explanation in plain, non-research scientist, language. 8:21

    • @andrew_koala2974
      @andrew_koala2974 Před 4 lety

      Well please explain what god is?
      god is absolutely NOT the same thing as God.
      Besides which Jesus never heard of the word God and never used it.

    • @nilleftw
      @nilleftw Před 4 lety +1

      @@andrew_koala2974 Who cares

    • @herrbonk3635
      @herrbonk3635 Před 4 lety +3

      @@andrew_koala2974 Well, please explain what "Jesus" is... (or, on second thought - dont!)

    • @thanhvinhnguyento7069
      @thanhvinhnguyento7069 Před 3 lety

      Relatable. Technical people love using their own language instead of plain english

  • @fejimush
    @fejimush Před rokem

    Nicely done! Hands down one of the best and accurate Linux directory structure walkthroughs I’ve watched. Coming from a long time Linux user.

  • @emv2280
    @emv2280 Před rokem +4

    This a goldmine of a video! Especially for a student, this takes the boring lectures to a fun and interactive level that makes it easier to learn. The graphics and explaining are great, and a bonus point for humor 😁 especially in the beginning. 10/10

  • @sacha6dh
    @sacha6dh Před 4 lety +57

    Thank you so much for this! It was rather intimidating to think that I was going to force myself to learn what seems like an absolute mess, but it's so simple, efficient and makes sense now!

  • @nibblrrr7124
    @nibblrrr7124 Před 5 lety +19

    10:35 *usr* is better thought of as *universal system resources.* The connection to "user" is mostly historic (used to contain user home directories like _/home/_ does now.) Nowadays, It's shared by all users, generally isn't user-writeable, and should only be modified via the package manager. (Custom apps belong in _/usr/local/bin/_ ; users can install into _~/.local/bin/_ )
    In some distros like Arch, _/bin/_ & _/sbin/_ are just symlinked to _/usr/bin/_ , as specified in *file-hierarchy.7* for systemd.

    • @Doriandotslash
      @Doriandotslash  Před 5 lety +4

      Yep, some historical references have still stuck around though. And many have made up their own versions of what they stand for, which have also stuck around. Regardless of what they actually stand for, what's important is that you know what's inside :). As for the Arch thing (also Manjaro, Antergos etc), yes they made changes, which is what I mentioned at the beginning of the video. Cheers!

    •  Před 4 lety +1

      Usr move is pretty standard now. Systemd revised some old concepts by bringing new concepts from solaris. @@Doriandotslash

  • @xyntak8270
    @xyntak8270 Před 2 lety +1

    Thank you for this concise breakdown. Always wanted to have this information in a video that isn't super long winded and complex. Much appreciation, good sir!

  • @johnsheikh3831
    @johnsheikh3831 Před 11 měsíci

    New to Linux and just started a Dev internship. Thank you so much helped me conceptualize everything easier

  • @setheheart4911
    @setheheart4911 Před 2 lety +6

    Love this style of teaching. Tangible applicable examples and direct to the point communication. Thanks a ton mate!

  • @tye3791
    @tye3791 Před 4 lety +343

    You've covered more things than my teacher had in 2 semesters. Sub and liked!

    • @Doriandotslash
      @Doriandotslash  Před 4 lety +14

      Thanks so much!

    • @zorojuro5106
      @zorojuro5106 Před 4 lety +17

      u proves another factor we don't need universities any more

    • @wahabfiles6260
      @wahabfiles6260 Před 4 lety

      10 bucky?

    • @andrew_koala2974
      @andrew_koala2974 Před 4 lety +5

      It is unfortunate that your teacher failed to teach you the correct usage of the English language and say 'You have' and not You've.
      What you speak is Sv=immon Street English, the language of peasants.
      A modern-day peasant, but a peasant none-the-less.
      Your best skill is to Bastardize the English Language.

    • @Alan_is_here
      @Alan_is_here Před 4 lety +62

      @@andrew_koala2974 here is a modern day language:
      Fuck off.

  • @icesystem7
    @icesystem7 Před měsícem

    finally! some common sense!
    no ranting, no useless info, no slowed down video, straight to the point and informative!
    dude, thanks!
    ps. would be nice to have a printable cheat sheet with this info!

  • @zeromusreal
    @zeromusreal Před 3 lety +12

    I like how he is still actively reading comments to this day

    • @Doriandotslash
      @Doriandotslash  Před 3 lety +4

      Thanks for noticing! Yes I do read all my comments and try hard to reply to every one. Although sometimes there are too many and the odd one slips past me 🙂 Cheers and thanks for the comment! 👍

  • @sweetpoodle
    @sweetpoodle Před 5 lety +10

    I have not came across a better explanation of Linux than what you have put on your channel. Thank you for explaining this in a way that even a beginner like myself can learn. Some videos I’ve seen just jump into the terminal and you’re left bewildered, trying to understand another language at times. I hope you come out with more content because you are definitely doing the world some good.

  • @jaxparrow1794
    @jaxparrow1794 Před 4 lety +7

    Man, this is one of THE MOST USEFUL videos i have ever seen.
    Thank you!
    Cheers!

  • @RamjetX
    @RamjetX Před 2 lety

    This is brilliant. Cleared up so many confusions I had and can relate to the scripts I've been blindly following in tutorials and guides

  • @AnthonyWest
    @AnthonyWest Před 4 lety +66

    Me: Plays around with directories until things break, then restores snapshot.

    • @szabolcsmate5254
      @szabolcsmate5254 Před 2 lety

      ... until you break your ability to restoer a snapshot. ;)

  • @arun6106
    @arun6106 Před 4 lety +22

    Very well explained indeed!
    Can see the hard work you've put in into the making of this video!
    Thumbs up!
    Subscribed.

  • @BillyLongshot
    @BillyLongshot Před 20 dny

    thanks. watched it at half speed and took notes on each folder. great primer

  • @RobertoTorres-xd3hs
    @RobertoTorres-xd3hs Před 8 měsíci

    Thank you very much for taking your time to break down all the files the way you did. I like how you have the pop up at the beginning of each.

  • @edwinchen7729
    @edwinchen7729 Před 5 lety +29

    Awesome informative tutorial for a new Linux user, thanks!!

  • @indikaUO
    @indikaUO Před 4 lety +5

    Network Admin and Security college student here. Thank you very much for your contribution. This video is now stored in my "Tutorials" folder for future reference. Also Subscribed. Thank you so much for this explanation!!

  • @ericapelz260
    @ericapelz260 Před 2 lety

    This is the best explanation of the Linux file system I have seen. I'm not a noob, but definitely not entirely comfortable in Linux either. I learned a lot. Thank you!

  • @Cairnsbite
    @Cairnsbite Před 10 dny

    Amazing short and to the point vid on Linux file system and structure, thanks.

  • @billfisk3323
    @billfisk3323 Před 5 lety +5

    Excellent presentation and very informative. I've used Linux for a few years now but never really learned about this. You did a great job explaining all the different folders that to a Windows guy were a bit confusing. Thank you so much. I really was well done. I learned a lot.

    • @Doriandotslash
      @Doriandotslash  Před 5 lety

      Thanks Bill! My entire channel is dedicated to helping new Linux users as well as veterans alike. I also try to keep it somewhat easy to understand while being informative. Thanks for watching!

  • @StaticReplication
    @StaticReplication Před 4 lety +5

    Awesome!!! I'v been using Linux for years and had yet to learn all of that.

  • @rolingpingu
    @rolingpingu Před rokem

    Good lord, a million thanks for this video. It was so clear, I've been using linux for 10 years and I have never taken the time to understand this before!

  • @traewatkins931
    @traewatkins931 Před 3 měsíci

    Im a dev and spent most of my career in working in windows and have been able to "get around" in linux just enough to do my job or tweak things ... but this really has cleared a lot for me.
    THANK YOU

  • @mikejzx
    @mikejzx Před 5 lety +4

    Excellent video. Very informative and clearly explained in a simplistic way.

  • @DamienSawyer
    @DamienSawyer Před 4 lety +9

    You've shone a light on something which has confused me for years! Thank you!

  • @jmrah
    @jmrah Před 3 lety

    Wonderful overview. Your "for example" explanation for each directory was very helpful. Thanks for putting in the effort to go that extra step.

  • @ceebs648
    @ceebs648 Před 3 měsíci +1

    So “simple” and elegant! I’m new to Linux and this really helped, thanks.

  • @GooogleGoglee
    @GooogleGoglee Před 5 lety +5

    Amazing video! Thank you! Cannot wait for the next one

  • @afterhours39
    @afterhours39 Před 4 lety +3

    Wow! This is fantastic! Just what I needed. I'm a mid-range (not a newbie, but not an expert either). While I had discovered some of this info by trial-and-error, this video just answered A LOT of questions. Great video. Thank you.

  • @chuckdevdevdev
    @chuckdevdevdev Před 8 měsíci +2

    This is one of the best explanation of linux file system i've seen so far, thanks you so much!

  •  Před 2 lety

    Started using Linux a month ago, this tutorial is very good. Many useful info in an easy to understand way.

  • @oldrandomcomputing6247
    @oldrandomcomputing6247 Před 5 lety +44

    Thanks for appearing in my recommended.

  • @AndersJackson
    @AndersJackson Před 4 lety +4

    I would install my own programs in /usr/local/bin (and lib man etc), as that is early in the list of directories to look for programs (the environment variable PATH).
    Actually, /usr/local is made for system admins to install programs for every user.
    Great explanation for beginners though, thanks. I might reference this for my courses.

  • @arrenwu
    @arrenwu Před 2 lety

    This is really a nice introduction to Linux file system. Thank you, Dorian!

  • @MarvinTurner
    @MarvinTurner Před 4 lety

    I've been using *nix for more than 5 years and a lot of this was new to me. Thanks, I really appreciate it.

  • @costa200
    @costa200 Před 3 lety +9

    Got interested in Linux recently (after using a live CD to do some recovering on a windows PC). Watching this I can understand now why programmers often use it. Everything is much more accessible on a level that would require specific tools on Windows. However, this also explains why Linux can't get a break on normal desktop user market. Windows is just a lot simpler and does everything for you and you forget it exists. As an OS should do with an end user that just wants to use their computer without having to actually learn things above a certain level!

    • @mandrakethemadcoder
      @mandrakethemadcoder Před 3 měsíci

      Windows has gotten to a level where it actively gets in your way for a lot of people. It gets worse as the version numbers climb.

  • @abyssstrider2547
    @abyssstrider2547 Před 4 lety +36

    I actually knew that bin was program files, mostly through android file exploration

  • @tommythompson4371
    @tommythompson4371 Před 4 lety

    Hey Man. I took Unix classes and DOS command line classes ages ago ovwr 20 yeats and needed a refresher..I've started a couple of books: crap, tried to watch several other people's videos: shit, weeded through forums and picked up a bunch of random refreshig but it just wasn't coming together until I watched your videos. So very well done Sir. Thanks!

  • @ElliotFlowers
    @ElliotFlowers Před 3 lety

    I like the way you can go to the breaks in the timeline and flick through each directory, and it has in big letters at the bottom the folder name. Very clear.

  • @TheUmopepisdn
    @TheUmopepisdn Před 4 lety +3

    1:00 my first computer ... the Kaypro ][ ran CP/M, a precursor to MS-DOS. The keyboard had a handle on the underside and latches to the base to make a BIG ASS SUITCASE

  • @all4myutube
    @all4myutube Před 4 lety +8

    Thanks for the refresher, it’s been almost two decades since I’ve messed with Linux, I used to use Unix at my job and now I want to get into it again on my new laptop because I hate windows.

  • @ramprasanthudhayabaskar8073

    Wow, this video is my reference from now on about the Linux File System. Great job, and thank you for making this.

  • @waynestewart1919
    @waynestewart1919 Před 3 lety +2

    You've earned my subscription. I've been wondering about this since I navigated to the root directory of my first Android phone. Thank you for that huge 10 mile hike's worth of leg work. You're making newbie Linux users such as myself feel more at ~/

  • @herrbonk3635
    @herrbonk3635 Před 4 lety +8

    In DOS and Mac, the hierarchical (nested) folders were like a benefit and tool for the end user. They were free to organize as we pleased and as they suited us. In UNIX/Linux, it's the other way round. The user being a slave under some random rigid structure created by hairy hackers in the 70/80s. That's the impression I always get from these tutorials.

    • @SergeantExtreme
      @SergeantExtreme Před 2 lety +1

      ^^^ This is the only honest comment in this entire video's comment section.

    • @cj.wijtmans
      @cj.wijtmans Před rokem

      You sound retarded and clueless.

  • @dowskivisionmagicaloracle8593

    6:30 /opt is where any software not managed by your package manager and not compliant with FHS is installed. if it's not managed by your package manager but is FHS compliant then it goes into /usr/local. Doesn't matter if it's vendor software, homebrew, or old UNIX applications other than the fact that these tend not to be compliant with FHS.

  • @epicureand1948
    @epicureand1948 Před rokem +2

    I just did the jump from Windows to Pop_OS and, while being a little overwhelmed by all the new things to master, old habits to forget, etc. I must say that I am really impressed by the level of customization and overall control that a user can get on Linux. After so many years as a Windows user, understanding the file system structure was a struggle until I stumbled upon this Incredibly useful video.
    From a Dorian to another, many thanks!

  • @zantax31
    @zantax31 Před 2 lety

    You know I found this to be one of the best videos to describe the mess of folders I see every time I attempt to use Linux. I honestly feel like I could never use Linux as my daily drive as I find it so difficult to do things, however maybe that is because of my age now, BUT I have never had an understanding of the file structure, thank you for that. I don't think I could switch to Linux based on how games orientated I am personally but also my daily job is IT in a Windows only environment. Regardless great vid.

  • @hhdhpublic
    @hhdhpublic Před 3 měsíci +2

    After some 15 years of using linux I guess its as good time as any to actually learn the linux file system structure :D

  • @patrickdark3077
    @patrickdark3077 Před 4 lety +82

    Well, now I finally know what “bin” means after ~20 years of seeing it.

    • @Doriandotslash
      @Doriandotslash  Před 4 lety +4

      :D

    • @danavram8437
      @danavram8437 Před 4 lety +23

      What did you think it was? Trash bin?

    • @wahabfiles6260
      @wahabfiles6260 Před 4 lety +5

      lol, i always though it was something related to recycle bin!

    • @newwavex8665
      @newwavex8665 Před 4 lety +1

      It's still confusing, you never need to use now /usr/bin or /usr/local/bin/

    • @herrbonk3635
      @herrbonk3635 Před 4 lety +1

      It should have been named exe (executable) though. All files are binary, not just the executable ones.

  • @raver14
    @raver14 Před 4 lety +1

    Very good explanation! Simple, easy to understand and well thought out.

  • @Rangerman9404
    @Rangerman9404 Před 6 měsíci

    I'm brand new to Linux, so videos like this one are very helpful. Since I'm a "learn by doing" person, I'll be rewatching this, and other videos like it on my main (Windows) PC while I have one of my Linux based laptops set up and running. My Linux "drug of choice" right now is Mint, so anyone who can point me to videos geared toward that distro, feel free to comment on this and steer me in the right general direction.

  • @davidnotonstinnett
    @davidnotonstinnett Před 4 lety +28

    0:20
    That feel is real.

  • @jimboelterdotcomm9153

    Excellent - short, to the point, way more understandable to the newbie than most of the Linux and Unit stuff out there. Thank you!

  • @TheKahim
    @TheKahim Před 6 lety +5

    you deserve more subscribers, great channel contents.

  • @Sengyizhe
    @Sengyizhe Před 3 měsíci

    Super useful. Been trying to get into linux for a while now and always easy confused by the file structure

  • @jean.haller
    @jean.haller Před 3 lety

    This is gourmet for a beginner. And the structuring of the video timeline is perfect.. *-*

  • @stroggwars
    @stroggwars Před 5 lety +6

    thnx good tutorial, i'm playing around with linux these days i see this very informative

    • @Doriandotslash
      @Doriandotslash  Před 5 lety

      Thank you, I'm glad you found it informative. Be sure to check out the rest of my channel! :)

  • @saulo13184
    @saulo13184 Před 5 lety +11

    Very good explanation. Thanks a lot.

  • @Nitramynot
    @Nitramynot Před 2 lety

    Every once in a while I end up watching this video. Man this is gold!

  • @paulwest9782
    @paulwest9782 Před rokem

    Best presentation on this subject I have every seen. good job!

  • @k.chriscaldwell4141
    @k.chriscaldwell4141 Před 5 lety +37

    Superb. I give Linux a try every year, and abandon it at the first, _"You enable/fix that with the following 16 long lines of mysterious text and commands,"_ but have always wondered about the file system's structure. Thanks.
    _"I'm sorry Noob, I can't do that from a click. You will need to find the 6 esoteric commands and their obscure switches needed to make me do that"_

    • @Doriandotslash
      @Doriandotslash  Před 5 lety +8

      Issues are often common and many users will get a given error based on their hardware, or some kind of failure. This means that googling that error usually leads you straight to a solution which is often something you can just copy and paste into your terminal 😎

    • @bobbybologna3029
      @bobbybologna3029 Před 4 lety +6

      @@Doriandotslash the problem is some of those "Solutions" will take you all afternoon to solve, and believe it or not people will put up with Win10 forced updates instead lol you still end up having to punch in line after line after line still completely unsure of what the heck you're doing.

    • @Doriandotslash
      @Doriandotslash  Před 4 lety +9

      @@bobbybologna3029 Sounds like you guys are using the wrong distro... Try something else. You know the definition of insanity right?

    • @seraphina985
      @seraphina985 Před 4 lety +7

      @@Doriandotslash Also there is the simple fact that explaining the procedure to fix the problem as open terminal and enter this command is often much easier than writing out step by step directions to handhold the user through the GUI to do the same. Lets face it if you gave most users the option of being guided through a complex multi step process or just pasting some magic words that make the problem go away they are going to pick the latter, most users just want the problem to go away they really don't care to get more involved than that.

    • @Corodius
      @Corodius Před 4 lety +2

      Perhaps OpenSUSE might be worth a look for you? A lot of the esoteric commands and terminal based configs are consolidated in a GUI interface through YaST

  • @TheBenJiles
    @TheBenJiles Před 4 lety +42

    Great video! Thank goodness for random CZcams Recommendations... they always know what I want lol

  • @joshpilla7909
    @joshpilla7909 Před 9 měsíci

    This is still relevant years later im happy i stubbled across this tbh it doesnt seem so complicated im used to making directories in windows and over time found how the file structure works (kinda) in some ways i feel like linux is better than windows probably just depends on your application either way thank you for this video its very valuable even 5 years later and as someone who enjoys messing around with different things (and often breaking them) i really appreciate it.

  • @arashvermahmood7961
    @arashvermahmood7961 Před rokem

    Thank you - Great Tutorial - Totally recommend this for those needing a quick intro.

  • @user-or4ut2qi3q
    @user-or4ut2qi3q Před 3 lety +3

    usr is not short for user, but Unix system resources and it is for system-wide read-only files. The distinction between /bin/ and /usr/bin/ is a relic from the past. (Before /home/ and when usr really was short for user.) Actually on my system, /bin/ is a symbolic link to /usr/bin/. You shouldn't mess with /usr/.
    /usr/local/ should be pretty much empty when you install Linux and that's where your system-wide read-only files should go. There is also ~/.local/ which is your personal /usr/local/ for resources other users don't need to be able to access. Great video by the way!

    • @mattsadventureswithart5764
      @mattsadventureswithart5764 Před 5 měsíci

      There's a unix promo video from at&t where Brian Kernighan is talking about the system and refers to, and pronounces, this directory as user. Given that he was there right at the very start of unix, working with Ken Thompson, I'm going to continue listening to him.

    • @user-or4ut2qi3q
      @user-or4ut2qi3q Před 5 měsíci

      @@mattsadventureswithart5764 yes, usr originally stood for user. Now it stands for user system resources. User directories are now stored in /home/.

    • @user-or4ut2qi3q
      @user-or4ut2qi3q Před 5 měsíci

      @@mattsadventureswithart5764 Google it, check the Linux documentation, do what you need to do brother

  • @batchampa
    @batchampa Před rokem +3

    The NTFS file system is actually case sensitive like *nix, but the tools in windows default to it being case sensitive. It means things can get confusing if you dual boot and create two files with the same name with different cases

  • @martinwilkinson2344
    @martinwilkinson2344 Před rokem

    This was great, a quick refresher gallop around Linux for a techie who hasn't touched it/Unix for 30 years! This is the video equivalent of 'C' - succinct, efficient and needs some familiarity to get everything out of it!

  • @GabrielSoares-mt5il
    @GabrielSoares-mt5il Před 2 měsíci

    Thanks for the video! I made another searches, but I hadn't understood the FHS like in your explanation.

  • @itumelengseeletsa6910
    @itumelengseeletsa6910 Před 5 lety +4

    Well explained. To me, it sounds like it's well crafted.

  • @StormyHotwolf88
    @StormyHotwolf88 Před 5 lety +5

    Wow, thanks for this explanation. It's kinda crazy how accessible damaging files are in Linux compared to Windows.

    • @Doriandotslash
      @Doriandotslash  Před 5 lety +7

      Thank you! That is true, however, you need root permission to delete system files so it's hard to do it by accident. Same with deleting the hidden folders which hold your settings, you would have to purposely show hidden files and delete them. Thanks for watching :)

    • @KuraIthys
      @KuraIthys Před 5 lety +1

      Define 'accessible.'
      XD.
      Most of the things that would seriously cripple a windows system if you deleted them are in one of only a handful of locations.
      And pretty much 99% of it is in the Windows folder itself.
      (some of the less obvious stuff being config data in parts of the user folders. - particularly the hidden folders like AppData)
      Windows however does tend to try and hide things from people...
      Probably because by it's nature it had to be moderately idiotproof.
      Still, dealing with Unix-likes has always bothered me because of how few safeguards most of them have against doing colossally stupid things.
      It's usually handwaived away as saying that if you know what you're doing it won't be a problem, but there are tons of examples of System Admins making absurd and unrecoverable mistakes in a moment of lapsed attention, or because of a minor typo, because there's simply no safeguards (or at least, there weren't many - even as recently as a decade ago) - if you mistype a command and run it, it will just run, with whatever consequences that has.
      (some of which can be extremely convoluted and also somewhat amusing)
      The 'everything is a file' mentality is very much a double-edged sword.
      So is another common Unix idea, the pipe.
      Then, many utilities existed which have no safeguards.
      Most dos utilities (and windows ones, though in a GUI it's less likely to be relevant since the GUI itself limits the scope of possible stupid things you can do by accident.) have one or more layers of confirmation that ask you if you are sure you want to do that, especially if what you're doing has potentially dangerous consequences.
      Many unix utilities, traditionally lack any such protections, even as options.
      Now, if you use the Windows shell and run a command with an option to disable confirmation, you can do similar kinds of damage - though the scope of what kind of damage you can do is still indirectly limited because there is a distinction between a file and other concepts like devices, but you'd have to explicitly include a flag to disable warnings - this is important because there ARE tasks where the warnings would mean you have to spend hours babying the process to get anything done, which defeats the purpose sometimes...
      But not even having any such warnings in the first place is... Risky, in more routine uses.
      Still, it's neither here nor there. - they have their upsides and downsides.
      I don't like Linux because I fundamentally dislike the underlying principles of Unix.
      Unfortunately, when you dislike something like that your options are limited, because there aren't many Operating systems that aren't Unix derivatives, and even those which aren't are still contaminated by aspects of it.
      For instance, did you know that Windows is POSIX compliant? (and has been for a very long time. Pretty much every NT derivative has been like this)
      If you don't know what that is, it means it contains subsystems that follow a set of UNIX-related standards, and complies with all the requirements that imposes.
      Of course, just recently they talked about including some weird kind of linux build into windows as some kind of component...
      So... Yeah.
      Can't get away from the damn thing if your life depended on it. XD
      I mean, Windows is POSIX compliant and will soon have a linux subsystem.
      Modern Mac OS is a BSD derivative
      Android is built around a linux kernel. (this is hidden really well, but get some tools that can really poke around in the file system and it becomes pretty obvious.)
      And, besides that what's really left?
      Various DOS clones, an open source clone of windows 2000.
      Haiku I guess.
      And technically AmigaOS has still been getting updates, but that only works if you've got a PowerPC based system of some kind...
      Ah well. Guess I'll just have to get over it and learn to repress that disdain... XD
      All that aside,
      Good video though.
      Very informative.
      There is method to the madness of unix filesystems...
      But then, that was never my problem with unix derivatives in the first place so...
      Anyway...
      Never mind.
      I swear, 20 years later and linux still manages to annoy me for no apparent reason. XD
      And yet, a modern linux distro is nowhere near as harsh and cruel to deal with as Debian Circa 1998...

  • @erwinjitsu_3706
    @erwinjitsu_3706 Před 4 lety

    Thank you.
    I've used linux for a while now and since your video has appeared on my feed a lot, I decided to watch. Not feeling regret, I think I gained a lot more than I first anticipated so I owe you my gratitude.

  • @BeefJerky4104
    @BeefJerky4104 Před 2 lety

    I'm mainly a windows sysadmin, but I have several Linux boxes that I'm responsible for as well. This was a great refresher for me and I'd recommend your video to anyone