100+ Linux Things you Need to Know
ฝัง
- เผยแพร่เมื่อ 5 ก.ค. 2024
- Get the full Linux course at bit.ly/4crDqtb
Learn 101 essential concepts in Linux in 10 minutes. What is the Linux kernel? What is GNU? What is the best Linux distro? And many other important questions answered.
#linux #programming #101
💬 Chat with Me on Discord
/ discord
🔗 Resources
Computer Science 101 • 100+ Computer Science ...
WebDev 101 • 100+ Web Development T...
Linux in 100 Seconds • Linux in 100 Seconds
📚 Chapters
🔥 Get More Content - Upgrade to PRO
Upgrade at fireship.io/pro
Use code YT25 for 25% off PRO access
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font
🔖 Topics Covered
- Linux basics tutorial
- How to get started with Linux
- Essential Linux commands to know
- Difference between GNU and linux
- What does Linux kernel do?
- What are the top Linux distros in 2024? - วิทยาศาสตร์และเทคโนโลยี
Try out the full course for free, then use code LINUX30 to take 30% off if you upgrade fireship.io/courses/linux
Nope
@@ui7b.Chad response
@@ui7b. Joke's on you, I'm doing it
JK I'm poor, Learn Linux TV TH-cam Tutorials instead for me
I would like to interject you for a sec its ....GNU/Linux !!!!!
why not LINUX69 and 69% off???
You totally missed an opportunity for that classic linux joke:
$ love
love not found
$ happiness
happiness not found
$ kill
you must specify whom to kill
thats about the level of humour i expect from linux users
@@tihan6lmao
does not work if you have love-lua installed 😢
i tried forgetting that and it just showed me a blank screen on love...
Actually there's a program called love and it is a game engine
haha i love le jokes i can find on le front page of le reddit XDD
Happy to be on the 4% (BTW)
Found the Arch user
ubuntu server all day baby!!!
i use arch btw :3
Im using Neovim
same, arch user btw
This video cured my Linux imposter syndrome. I recognized and understood way more than I thought I would. Another Fireship banger, for sure.
I’d just like to interject for a moment. What you’re refering to as Linux, is in fact, GNU/LInux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
@@kamrandoesstuff Who let Richard in here??
@@hclyricsme too, it was good to actually understand everything for a change. Only thing I didn't know about was "stat", which is crazy, but I guess I never needed to use it to set up a VM...
Did you also feel the need to copy paste your comments multiple times?
@@kamrandoesstuff
Just started watching it for the same reason... let's see.
5:40 "If you have a few years to spare, you could try Vim. Or if you have no life at all, you could try Emacs..."
I feel like I've been violated! :D
doomed
The patriarch of the emacs church is here
I love Vim 😅
Opening fireship's videos are always like:
Come for information
Stay for the punchlines
Or develop an existential crisis as a developer. You never know 😂
Ive been watching almost all his vids since I stumbled upon that channel.
I not a software engineer, I never code in my life, I understand nothing. But somehow in coming back :p
In this particular case, I only came for the punchlines. About the only thing I learned from the video was that I didn't know the logos for a lot of distros.
I'm in the trades and I watch for the memes.
@@matthieuleon310same here lol
"if you have few years to spare you can learn Vim and if you have no life at all you could try emacs", damn that got me
i like vscode
i use vscode with the vim plugin 😎
(and im an arch user btw)
@@jonathansung8197 so, why not a neovim? ;-)
and if you have few years but want to end it all, use Neovim
I like vim so much. I wish all inputs in my operating system/apps/browser, etc would support it
I found this channel in the middle of my first year of java computer science and I didn't understand it one bit, I've now switched to mechanical engineering and still do not understand it one bit, yet I still watch every upload. You're truly a content wizard Mr. Ship.
Learn physics now
In your 96% figure, I think you grossly underestimated the number of people watching this video on their Android devices.
Yes, Linux desktop doubled to 4% in the past 2 years, but mobile is 4x the usage
of desktop for web visits. Let's add in the other Linux uses found in daily life: streaming devices. TVs, routers, Iot. voice assistants, vehicles, point of sale/ pin pads, .... Linux is the dominate OS in the consumer space and server space.
7:07 “This is an IQ test” lmao
I wish there was a way to know how many people failed the test.
I am sure someone will.
But they won't be able to connect and tell us for a while.
Doesn't this command prevent deleting / without a special flag to ignore such warnings?
@@dogyX3--no-preserve-root
There's also a randomizer obfuscated version 🎉
@@Ba-gb4br Will it still rm everything with just / and not /*
6:42 What a transition 🤯
What a **sponsor blocked**
This is why fireship is the best online educator / content creator, he taught everything that there is to know about linux and shell commands in just a 12 min video when others are selling month long courses.
On that chown stuff, when he said the stuff about 7s, it can be kind of cryptic where those numbers come from. The idea is that 7 in binary is 111. Those 3 ones are rwx (read/write/execute), the 1 means that they're all turned on. A 000 would be all turned off, or another example is 6, which in binary is 110, so read & write are turned on, but execute is turned off. Read-only is 4, which in binary is 100, so only the read bit is turned on.
I learned it that way so it is the default in my head... until I get to sticky bits
I am going to alias “sudo” to “daddy”
plsdaddy rm -rf /
Nooo... 😂
or please
@@dislikepineapplesdaddy please
@@sebasbot01 beach please
4:21 epstein flight log 💀
I don't use Linux could you pls explain it to me
@@adityaanuragi6916it's a reference to a leaked document featuring numerous names of celebrities having paid a visit to the infamous epstein island
@@adityaanuragi6916 it's not a linux reference 💀
@@adityaanuragi6916 touch is a terminal command to create a new file.
You say touch new-file.ext
this will create new-file.ext in the current directory.
Joke is Epstein and touching underage kid. If you don't know about it. Welcome to the internet
@@adityaanuragi6916 list of people who went to a kiddy diddling island
I'm 4 years using linux right now, and I didn't knew the existence of stat command. Always you can learn new staff from this channel. Thanks for the nice video!!!
I always dreamt of saying this on this channel and finally:
I use Arch Btw.
Me too btw
I use nixos btw
@@RishabhSingh-fj2go NixOS seems really cool ! I'm thinking of switching to give it a try (I use arch btw 😄)
me too, no regrets. 20+ years with Linux as my daily driver since Microsoft convinced me with their double page magazine ads bashing (pun intended) Linux. If Linux is so bad why is there WSL?
Arch user here! Btw!
Been using Linux since 2001. And today it's my daily driver. I was in grade 11 when I was introduced to Linux. Now I'm a DevOps Analyst.
What does an Analyst do in DevOps? Sounds fun
i am in grade 11 without linux
I was in 9th, also 2001. Also my daily driver. I'm a SCADA engineer.
I’d just like to interject for a moment. What you’re refering to as Linux, is in fact, GNU/LInux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
@@kamrandoesstuffMost linux users do know this, it’s simply a shorthand; no need to be pedantic
This was actually ridiculously informative. Wow. Great video fireship. Been getting into Linux and thought I’d know most if not all but there were definitely a few I didn’t know about. Keep doing this!
I’d just like to interject for a moment. What you’re refering to as Linux, is in fact, GNU/LInux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
Superb! Nice coverage of the basics. 👍🏽
3:21 "open up the terminal which is a graphical user interface"
🤣
I mean, the actual terminal application is graphical, just not the actual interfacing with the underlying operating system.
Yeah, it sounds funny, but actually the terminal is a graphical user interface to the shell, providing an experience similar to using a serial terminal or the console, but in a graphical window.
Missed opportunities to talk about ttys right after
@@agh0x01 Though technically the console is also graphical in a way, just much more limited as it's restricted to outputting characters (albeit in a font of your choice, and these days usually with colour).
@@traveller23e on a modern PC using framebuffer console, yes, but on other hardware types, you might really be limited to character mode.
statistically, all fireship viewers have tried linux
nah, I'm sure that with all the AI vids, there has to be some that haven't
I’d just like to interject for a moment. What you’re refering to as Linux, is in fact, GNU/LInux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
@@kamrandoesstuff womp womp
@@kamrandoesstuff Richard stallman Botnet ☝🏻
Really loved this one, very good recap!
I think this is your best video yet, and I've followed you for years. Very entertaining and informative. Well done.
4:10 Correction, as you can read in the title of the manpage: "touch" simply changes file timestamps. Though this has the side effect of creating an empty file if the path given isn't an existing file, so it often gets used to create new files.
MS should have aliased "New-Item" to "touch", it feels intuitive even when it's being used incorrectly.
😅😢
_Ohhhhhh_ that makes sense! I never thought to question the link between this "touch" and the "touch" in Rails.
@@Lewdiculous That a command in Powershell?
@@wisteela Yep
@@wisteela I think it's aliased by default to "ni"!
Debian forever!!!
... though my first distro was Yggdrasil.
Bikefag kek
Debian on my servers, NixOS on my desktop; Two WILDLY different beasts, but I love them both... NixOS is not for the faint of heart, though.
heh, nice distro kiddo. I use Guix btw.
Also, neat to see you here.
Wait I didn't expect you here xD
Everytime I watch a intro/beginner's guide video for linux/bash cmds, there's something new I haven't used before
This is like everything I learned in my Linux course last semester in like 10 mins.
bro can you not make a 12 minute video that sums up a year of college. thanks
It's not fireship's fault that your professor is incompetent.
So, I take it you went to a for-profit college?
A year?! I learned to love Slackware in three months when I was in high school. Also, I’m dumb for loving Slackware.
everyone replying here is a headarse. No this video does not teach you everything a college OS class does
@@krishp1104 I think they’re being being sarcastic
for those curious about the "sudo rm -rf /" command:
- "rm" removes a file (or directory with a flag)
- "-r" is recursive, meaning if you target a folder with rm it will remove everything in its subfolders too
- "-f" is force, makes rm work without confirmation
- "/" is the target path, which is the root directory of your entire computer
- "sudo" gives you elevated permissions, lets you do things you wouldn't normally be allowed to do, like write to system folders
so "sudo rm -rf /" will remove the root directory of your computer, recursively delete everything inside it, with elevated privileges and no confirmation prompts. it basically bricks your machine because it removes important system files.
It just bricks the OS right? So after reinstalling Linux you can use your pc again. (Without your files obviously)
@@mz00956 yeah, it can't really touch your BIOS so you can still boot from other devices. But / includes every device that was mounted so you better unplug that install USB before you run it!
@@mz00956 i think in some cases system firmware can be mounted as rw causing your whole computer to get bricked
though most distros require the --no-preserve-root as a safeguard to prevent rm rf / from being used accidentally, so running it will usually not actually do anything, but if you do add the flag... expect things to break (don't do it outside a vm)
Most modern distros will not let you remove the /. To make it work, run it as: sudo rm -Rf /*
@@SteveStavropoulos --no-preserve-root too iirc
Hey jeff, thank you so much for making the courses affordable, forever grateful to you 🙏
Beautiful content! Thanks!
8:14 Correction. The "usr" directory stands for "UNIX System Resources" or "UNIX Source Repository", it's a common misconception that it means "user".
Also, the /bin and /lib directories are meant to be for binaries and libraries required for the system to boot, while the /usr counterparts like /usr/bin and /usr/lib are meant for programs that aren't that necessary that every user on the system should have access too. There is also directories in /usr/local that are usually things that are more manually installed while it still should be accessible to everyone. There is also the ~/.local directory which is meant as the same as /usr/local but for things that should only be accessible to that one user since it's in that users home directory.
There is also /opt which software can use to /opt out of the correct file system structure.
Most distros have /bin, /lib{,32,64}, and /sbin be symlinks to /usr/*. Plus most often when distros compile software, they set the prefix to /usr, and bindir is either /bin or /sbin, so installed programs get put in /usr/bin or /usr/sbin. The LSB/FHS can be picky where certain apps go, like chroot should be put in /usr/sbin instead of /usr/bin. For the regular user, though, it really doesn't matter. Does help where the binaries actually are if you're in a pinch and don't want to rely on using PATH to launch something. I manually install many things and just put em all in /usr/bin, unless the project is big and has different library versions that make removals difficult -- then I put the package in /opt. Rust is one of them, but also Java.
It’s not a misconception, ‘user’ was the original meaning. The others are very recent backronyms, and frankly quite terrible ones! 😆
Shut up nerd
This entire thing is a massive retcon. The directories actually mean "Hey Dennis we're out of space on this PDP-11 disk, mount another disk somewhere" and anything else is made up rubbish.
Learning and using nixos (linux distro) recently just blew my mind. Having an entire system configured in a git trackable file and easily revert to any state in time is just amazing.
Absolutely based and nix pilled
Welcome to the club, and good luck learning Nix
You clearly don't know what's been going on behind the scenes with NixOS.
The project being on the verge of collapse aside, it's just a gimmick, albeit an interesting one. No documentation, abhorrent language, gorillion poorly built packages, many dev issues due to symlink dredge filesystem, and is just pure trash for desktop for anything nontrivial. Interesting for servers though, for what it's worth. Will stick to Gentoo
You can even track your config file in other version control systems! Git isn’t a requirement for Nix :)
@@aarholodian can confirm as an arch user gentoo is the only other wiki I have to frequent.
The real reason to use any distro is how well it's wiki is maintained
The first person to explain Linux so well. Thank you Fireship
I don't know if I have time to learn linux right now, but your courses actually look like a great idea, because you're wonderfully enunciated for this sort of content. If I do find time, that's where I'll go.
You released this video at the perfect time for me given that I switched to Linux earlier this week lmao
😂 it's like being late for a party wher everyone is heading home already
Which distro are you using?
It's going to be a glorious ride! Enjoy!
Don't forget that there are stable distroes and unstable where you can set up and modify everything you want, and the last one requires more time and dedication.
Me too 😂
Casually creates the best linux tutorial ever
I’d just like to interject for a moment. What you’re refering to as Linux, is in fact, GNU/LInux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
Great format and content
kudos. well done cram session with highlights. got a chuckle for the Slack CD (=
I am new to Linux ,and my brain feels fried and rewired at the same time after watching this.
Theres alot in here youll rarely need to use (ie. whoami) Figuring out how to move around the files system and manage files is the only requirement to learn at the beginning (cd=change directory, ls= list files, cp = copy, mkdir= make a new directory, vi/nano = write some files, rm= remove a file, mv= move a file). Then as you find the need to do other things, you can add them to your toolbelt over time.
apropos is also very useful. And never forget man.
I felt the same too
If you rarely use linux in the server side, you can take it easy and just use GUI in general, most programmers don't even need to use linux if they have dedicated sysadmin/devops team
@@traveller23e lol so true, tho i once forgot apropos and was trying to think of apropos
Seeing Jeff printing "hi mom!" in his videos feels very different now
I loved watching this video. Thanks man.
Amazing content, thanks bro.
watching this from ARCH btw!
The "hi mom" echo reminded me of your post about your mom and hit a soft spot. I know she would be proud of her AI robot son. Thank you for the video and I hope you are well.
Me too. Used to watch every video even though she had no idea what was explained. Sounds like a great mom.
I learned a lot, thanks!
Your level of knowledge in regards to everything computerish is insane Mr Fireship
0:02 I think this is false, for your audience the percentage should be higher.
2:35 We don't speak about Ring 2
we don't speak about Ring -2
Yeah, The Ring didn't really need a sequel
Ring 2: The Ringening
the ring who shall not be named
Lovely video. Thank you
Awesome video! And kudos for teaching people Linux.
As a long time GNU/Linux user, I learned a thing or two. Thanks!
Fireship 10 minute video .. the end is near
I want to become a Blockchain developer working on AI for IoT mesh networks to be applied for drones and virtual reality.
Can't wait for Fireship 45 minute video essays.
@@Kawka1122 VC wet dream
god i love you so much fireship. actually, you’re the only CS youtuber that doesn’t have a gigantic ego and you make me laugh with all your videos
This is so cool. Been using linux forever and I still learned a bunch.
Great video as usual, also I use Arch btw.
fellow arch user found
i happy to be part of 4%
loved the last quote 👍🏻
love your vids, thank you
As part of the 4%, I think linux is superior for a lot of stuff, btw I use linux mint.
Mint supremacy
I am also in the 4% and I use manjaro Linux
@@thedevilkinggaming8575
>manjaro
Kek
@@thedevilkinggaming8575 imagine using a distro that can't remember to update their site's ssl cert
@@thedevilkinggaming8575buuu, pitchforks for manjaro
nice video ,also i use arch btw
Rarely we get to learn so much in so little time. And laugh during it. Thank you so very much!
Fun fact: The GNU project was born in 1983 while the Linux kernel was born in 1991, in fact GNU lacked the kernel and Hurd was created.
Hurd was the initial kernel of GNU and unlike Linux it was a microkernel, it still exists but development is at a standstill and there are a couple of older distros that use this kernel.
This. I feel bad for Stallman since Torvalds is kind of a disgusting person. I wish linux was never invented and GNU existed without it.
Great vid! More linux plz!
This is much better than your usual content!
Great summary!
Woe what a great summary of the daily Linux life.
I never used the stat command.
But I learned that you ca filter lines inside less by prepending a ^ to a search term
5:55 a few comments. 1: Use "#!/usr/bin/env bash" not "#!/bin/bash". 2: if using shebang and invoking the file as a program, you need to set the executable flag "chmod +x ./file". 3: you don't need the shebang if you intent to invoke the file by specifying the shell first eg. "bash ./file"
I use arch btw
*HE'S GOT A VIDEO COURSE!! IF HE'S GETTING IT WRONG, WHAT HOPE IS THERE?????*
why use /usr/bin/env?
@@pepejw "#!/bin/bash" is not a standard. Bash might be installed in another directory (on %99 of the distro it will be in "bin/bash").
"#!/usr/bin/env bash" will run bash no matter where it is.
If you use shezow you get a real spiffy costume and makeover.
Corrects the video with a pendantic minor point. Adds “I use arch btw”.
Yea that tracks. You arch users are a breed aren’t you.
AMAZING VIDEO (haven't watched it yet)
Same!
Oh really? I use arch btw
Congrats, Fireship just taught you everything you learn in Operating Systems class
that change of thumbnail was absolutely necessary. really brings out the Linux culture
I'll never forget going to the book store to get the CD with Linux on it the first week it was released.
babe wake up, a new fireship banger just dropped
Real
U don't have a gf tho?
@@auroraborealis5565 yeah you're right, I have a wife! love ya friend :)
honey, I'm here already, thank you for waking me up.
Great video!
This is amazing, thank you
You can learn vim by opening vim, then using the tutorial. It won't turn your vim setup into NVChad, but you will know how to use vim and neovim. I use Arch btw
6:08 don't forget to chmod +x to the script file to make it executables.
man this was a great overview
Thanks a lot of effort. Quality contents. Wish u the best
4:16 Whose flight log??
Watching on Arch BTW
@@aaaaaa-hh8cq "on their own" sure thing bud.
@@aaaaaa-hh8cq same as the stereotypical linux community as a whole
@@aaaaaa-hh8cq Ohh yeah, breaking your system yourself and 'uypdates breaking your system' is a different thing
Opensuse tumbleweed
Watching on Arch with Hyprland on my Steam Deck btw. (No, not SteamOS, real Arch. Yes I enjoy missing half the drivers for this stupid thing)
Very good overview video! I was wondering if you'd try to tackle ACLs in a video like this. Probably a good call to put that off for another time. :D
I've been studying for my RHCSA for months now and this is a pretty solid condensed version of everything I've learned. A very high level but nonetheless still great and entertaining.
Nice video. I use Arch btw.
video looks good on arch btw
LETS GO! HE KNEW WHAT I WAS EXACTLY LOOKING FOR!
Fedora gang here?
Here
Present!
Love Fedora ❤
Yes, now from 2012
No😢
1:27 Wouldn’t be a Linux video if that weren’t snuck in
Man, that echo move you did there… very subtle, very classy, very true 👏🙇♂️👌
This channel is awesome man. I’m a 33 year old math teacher who never learned this stuff in school. I’ve always been the person to ask “why” And allot of the coding stuff out there just goes into how to use the coding language without going into how it actually interacts with the hard drive and how it literally works. So this is fantastic.
Hello from NixOS btw (I'm going insane I should go back to debian)
why ??
I
@@agh0x01 mhm, it's really great but so different from what I'm used to ^^'
try using qubeos and getting bluetooth or any usb device to work lol you have the hack the os to get it to work
@@and_I_am_Life_the_fixer_of_all well I just pluged a drawing tablet inside of my nixos laptop and everything worked flawlessly (the tactile of the tablet worked, the pen too and eraser/press hardness) WHILE on my windows 10 desktop I have to install drivers
Are we talking about the superior 4%, right? (I use Arch BTW)
0:55 bro how did you find all these memes this one is so hilarious and accurate lmao
Will get course asap
Watching on Android (Technically Linux)
I use Android btw
To be fair, android is based on a very, very, very heavily modified version of the linux kernel.
@@EvelynIsDeprecated meh, not really. It's just stripped down and has android specific modules & drivers with some optimizations & power management enhancements for mobile ARM devices; the core functionality is mostly untouched. It is the level just above the kernel where the majority of the differences live.
@@Rustmilian it's also like a 20 year old version (exaggerated, but it is 2 major versions behind, at least on my phone)
@@commander3494 Android 14 (AOSP) is Linux kernel 5.10 to 6.1, and Android 15 (AOSP Experimental) is 6.1 to 6.6(for now). Major version bumps traditionally only happen with major Android releases and depend on mainline Linux LTS kernels. Granted, Android 11 to 13 broke out of the norm.
Google is also planning to ship a major 6.1 kernel upgrade to all its Tensor-powered Pixel phones, regardless of the Android version they are running.
A fun video: look for Computerphile’s video on where GREP came from. Ken Thompson basically built it overnight to help a friend with his history research project.
Using nano inside the vscode terminal is next-level
Wow, it's really good. It's very attractive and the AD is very interesting
lemme tell you that no matter what you think your life goal is fireship, you have already accomplished it. people (including me) frickin love you man. your channel is so awesome and is just perfect. you make me laugh and learn at the same time. seriously you are so wonderful, I hope you live the rest of your days in total peace knowing you have accomplished alot in this lifetime!!!