Latest / CyberSecurity Summary / Using and Administering Linux: Volume 1: Zero to SysAdmin: Getting Started
Transcript
- 0:00Speaker 1: Okay, So for anyone trying to get their head around
- 0:02Speaker 1: Linux system administration, you know, it can feel like this
- 0:07Speaker 1: huge amount of information right, almost.
- 0:09Speaker 2: Overwhelming, totally, it's amazing.
- 0:11Speaker 1: Yeah, and you need to get up to speed, like fast,
- 0:14Speaker 1: but cut through all the noise really get to the
- 0:17Speaker 1: heart of it. Well, today, that's what we're doing. We're
- 0:20Speaker 1: taking a deep dive into a stack of sources that
- 0:22Speaker 1: are designed to help you not just you know, learn Linux,
- 0:26Speaker 1: but actually start thinking like a linux's admin.
- 0:28Speaker 2: And what's really cool about these sources, I think is
- 0:30Speaker 2: they don't just give you the what, the commands and tasks.
- 0:34Speaker 2: They dig into the.
- 0:35Speaker 3: Why, the philosophy behind it, exactly why does Linux work
- 0:39Speaker 3: this way, We're going to explore that core philosophy, look
- 0:42Speaker 3: at the really essential tools, and even touch on the
- 0:46Speaker 3: mindset you need. It's like a shortcut, kind of yeah,
- 0:49Speaker 3: a shortcut to not just knowing facts, but actually understanding
- 0:52Speaker 3: this whole critical ecosystem that, let's face it, runs a
- 0:55Speaker 3: huge chunk of our modern world.
- 0:57Speaker 1: Okay, So our mission here then is to really boil
- 1:00Speaker 1: down these essential principles, the key tools, the best practices
- 1:04Speaker 1: for linuxes admen. We want to give you insights, practical
- 1:08Speaker 1: stuff you can use that goes way beyond just scratching
- 1:11Speaker 1: the surface. Well, look at why Linux is built like
- 1:14Speaker 1: it is, how that design gives you so much control,
- 1:16Speaker 1: and what it actually means to work with a system
- 1:19Speaker 1: that's fundamentally built on trust and openness. So kicking off
- 1:24Speaker 1: the source material jumps right into this really interesting comparison
- 1:28Speaker 1: the whole black box versus open box thing in software.
- 1:31Speaker 2: Yeah, that's fundamental.
- 1:32Speaker 1: I mean, can you imagine relying on tools where you just, yeah,
- 1:36Speaker 1: you can't see inside, you can't really understand how they
- 1:38Speaker 1: work exactly.
- 1:40Speaker 2: And the sources talk about this black box syndrome you
- 1:44Speaker 2: often find in proprietary software, you know, like Windows for example. Right,
- 1:48Speaker 2: the insides are basically hidden. Something goes wrong, and what's
- 1:51Speaker 2: the usual advice.
- 1:52Speaker 1: As you tried turning it off and on again.
- 1:53Speaker 2: Pretty much just reboot because you can't actually figure out
- 1:56Speaker 2: what's really happening in there. It's sealed off.
- 1:58Speaker 1: Okay.
- 1:58Speaker 2: Now, contrast that with the open box idea of open source.
- 2:02Speaker 2: You can see the code precisely, you get the source code,
- 2:05Speaker 2: you can look at it, you can understand it, you
- 2:07Speaker 2: can even fix it yourself if you need to Wow,
- 2:10Speaker 2: there's a great little story and the sources about openofice
- 2:12Speaker 2: dot org. When the ownership changed and things went in
- 2:16Speaker 2: a direction some developers didn't like what happened. Well, because
- 2:20Speaker 2: it was open source, they could just take the code,
- 2:23Speaker 2: fork it and start a new project LibreOffice.
- 2:26Speaker 1: Ah right, I use libra office.
- 2:28Speaker 2: Yeah. They just picked up the code and kept going.
- 2:30Speaker 2: That's the power of having that open box. You're not
- 2:33Speaker 2: locked in.
- 2:33Speaker 1: And that leads right into what the source is called
- 2:36Speaker 1: the Linux Truth, which sounds quite grand.
- 2:40Speaker 2: It does, doesn't it, But the core idea is simple. Really,
- 2:43Speaker 2: the operating system has to trust the user.
- 2:45Speaker 1: Unlike systems that maybe try to protect you from yourself
- 2:48Speaker 1: too much exactly.
- 2:49Speaker 2: Some systems put up guardrails, they limit what you can access,
- 2:52Speaker 2: what you can change. Linux fundamentally doesn't.
- 2:55Speaker 1: It trusts you, which gives a cisadmin huge flexibility.
- 2:59Speaker 2: Immense stability. Even as the sources kind of joke when
- 3:02Speaker 2: you do stupid things. It assumes you know what you're doing,
- 3:04Speaker 2: or that you're willing to learn from mistakes. It gives
- 3:07Speaker 2: you the power.
- 3:08Speaker 1: And this goes way back right to the very beginning.
- 3:11Speaker 2: Oh yeah, absolutely, it's bigd in Linus Torvald's back in
- 3:15Speaker 2: ninety one. He started Linux because he wasn't happy with
- 3:17Speaker 2: Minnix's limitations right and crucially he shared it openly from
- 3:22Speaker 2: the get go. But even that wasn't totally new. It
- 3:24Speaker 2: really followed the spirit of UNIXI Okay, Ken Thompson, Dennis Ritchie.
- 3:29Speaker 2: They designed Unix to be open accessible right from its
- 3:32Speaker 2: own start. It's a philosophical lineage, not just code.
- 3:35Speaker 1: So that openness it connects to this idea of freedom
- 3:39Speaker 1: in open source, which isn't just about cost, is it?
- 3:42Speaker 2: No, definitely not. It's the classic distinction free as in freedom,
- 3:46Speaker 2: not just free as in.
- 3:47Speaker 1: Beer, meaning you can use it, change.
- 3:49Speaker 2: It, use it, study it, modify it, share it. That
- 3:52Speaker 2: freedom has real world consequences like what well, For one,
- 3:56Speaker 2: it fights against planned ops lescence.
- 3:58Speaker 1: Ah, when things are designed to break or come outdated.
- 4:01Speaker 2: Exactly the sources mentioned, keeping like twelve year old laptops
- 4:05Speaker 2: or ten year old netbooks perfectly usable.
- 4:07Speaker 1: Because you can run up to date secure software on
- 4:10Speaker 1: older hardware.
- 4:11Speaker 2: Precisely, you're not forced into hardware upgrades just to run
- 4:14Speaker 2: the latest os. And this philosophy, this power. Look where
- 4:18Speaker 2: Linux is now everywhere pretty much since twenty seventeen. It
- 4:22Speaker 2: runs one hundred percent of the world's top five hundred supercomputers. Wow,
- 4:26Speaker 2: it's on the International Space Station. It's the base for
- 4:29Speaker 2: Android on billions of phones. It's in your smart TV.
- 4:33Speaker 2: It's the engine driving the Internet.
- 4:35Speaker 1: So it scales from tiny devices to massive.
- 4:38Speaker 2: Systems, effortlessly watches to supercomputers. It's incredibly versatile.
- 4:42Speaker 1: Okay, and shifting gears slightly, but still related to efficiency.
- 4:46Speaker 1: The sources talk about this lazy cisadmin philosophy, which sounds
- 4:49Speaker 1: bad but isn't.
- 4:51Speaker 2: Huh, Yeah, it sounds wrong, but it's actually about being smart,
- 4:55Speaker 2: really smart. Also, lazy here means you automate everything if
- 4:58Speaker 2: you do a task more than once script it it
- 5:01Speaker 2: means you test things thoroughly, early and often and controversially.
- 5:04Speaker 2: Maybe it even means sometimes you test in production.
- 5:07Speaker 1: Really isn't that risky?
- 5:09Speaker 2: It can be, but the idea is the real world
- 5:12Speaker 2: often shows you things a sterilab environment won't. It's about
- 5:15Speaker 2: building robust, self healing systems that don't need constant manual poking.
- 5:19Speaker 1: So the laziness is about reducing future.
- 5:22Speaker 2: Work exactly, freeing yourself up from firefighting to do more
- 5:25Speaker 2: strategic work. And it even comes down to simple things
- 5:29Speaker 2: like common sense naming for files and commands to save typing,
- 5:33Speaker 2: to save typing, and crucially to reduce errors, less typing,
- 5:37Speaker 2: fewer mistakes.
- 5:38Speaker 1: So thinking about all this, this philosophy, this mindset, maybe
- 5:43Speaker 1: you listening right now should reflect do you have some
- 5:47Speaker 1: of these traits?
- 5:48Speaker 2: Yeah, it's a good question.
- 5:49Speaker 1: Are you naturally curious? Do you like taking things apart
- 5:52Speaker 1: just to see how they tick?
- 5:53Speaker 2: Not just what they are, but how they work?
- 5:55Speaker 1: Right? Do you find computers maybe more logical or predict people?
- 6:00Speaker 2: Sometimes a common CIS admin trade.
- 6:02Speaker 1: Perhaps do you really like having control over your tools,
- 6:05Speaker 1: your environment? And do you actually get what open source
- 6:08Speaker 1: means beyond just free stuff?
- 6:10Speaker 2: If those resonate, maybe you've got the CIS admin's spark.
- 6:13Speaker 1: Okay, So building on that philosophy, let's dig into the
- 6:16Speaker 1: actual components. What is Linux under the hood? Because the
- 6:21Speaker 1: sources are clear, that graphical desktop the thing most people see,
- 6:25Speaker 1: that's just the surface.
- 6:26Speaker 2: Absolutely, it's just the visible part. The real power lies beneath.
- 6:30Speaker 1: So what are the fundamentals?
- 6:32Speaker 2: Well, any os basically manages hardware, right, your CPU, your RAM,
- 6:37Speaker 2: that's the fast volatile memory that forgets everything when you
- 6:40Speaker 2: power off, right versus storage exactly. Yeah, and your hard
- 6:43Speaker 2: drives or SSDs, the non volatile storage. The OS coordinates
- 6:48Speaker 2: all that.
- 6:48Speaker 1: And in Linux, the core, the.
- 6:50Speaker 2: Absolute heart is the Linux kernel. That's Linus Torvald's original creation,
- 6:54Speaker 2: constantly evolving. Okay, but the kernel alone isn't enough to
- 6:58Speaker 2: do much. You need the tools, and that's where the
- 7:00Speaker 2: G and U core utilities come.
- 7:01Speaker 1: In, developed by Richard Stallman and others.
- 7:03Speaker 2: That's right, an enormous collection of essential command line tools.
- 7:07Speaker 2: The kernel plus these utilities working together, that's what really
- 7:11Speaker 2: makes up the Linux operating system you interact with.
- 7:13Speaker 1: Okay, now, for maybe one of the weirdest but coolest
- 7:17Speaker 1: Linux ideas, everything is a file.
- 7:21Speaker 2: Huh Yeah. It bends your brain a bit at first.
- 7:23Speaker 1: What does that actually mean? How can hardware be a file?
- 7:26Speaker 2: It's a really powerful abstraction. It means the system represents
- 7:29Speaker 2: almost everything hardware, devices, network connections, processes, you name it,
- 7:34Speaker 2: using the same file interface.
- 7:36Speaker 1: So you interact with them like files pretty much.
- 7:38Speaker 2: Think about devices. They show up as special files in
- 7:41Speaker 2: the dev directory. Okay, so your hard drive might be DESDA,
- 7:45Speaker 2: a partition devsdo one, and because it looks like a file,
- 7:48Speaker 2: you can do things directly to it, like what well
- 7:51Speaker 2: The sources mentioned treating an entire hard drive as a
- 7:54Speaker 2: single file. This makes things like making a perfect byte
- 7:57Speaker 2: for byte copy or securely wiping data using commands like
- 8:01Speaker 2: DD or shred surprisingly straightforward.
- 8:04Speaker 1: You're just writing data to a file exactly.
- 8:06Speaker 2: Or reading from it. The sources even point to de
- 8:09Speaker 2: random and de random. These are literally files you can
- 8:12Speaker 2: read from to get a stream of random numbers.
- 8:14Speaker 1: That's wild. So if the gy isn't the main way
- 8:17Speaker 1: in and everything's a file, how do we actually talk
- 8:21Speaker 1: to linox? How does sisadmins work?
- 8:22Speaker 2: Good question? The command line is key, and there are
- 8:26Speaker 2: basically three main ways to get to it.
- 8:28Speaker 1: Okay.
- 8:29Speaker 2: First, you've got your graphical terminal emulators. These are applications
- 8:32Speaker 2: that run inside your desktop environment, like as four terminal.
- 8:37Speaker 2: The sources like its tabs or others like tillicks or console.
- 8:40Speaker 1: Right the little black window pretty much.
- 8:42Speaker 2: Second, there are virtual consoles. These are text only logins
- 8:46Speaker 2: you can switch to even if your graphical system isn't running.
- 8:49Speaker 2: Super useful for fixing things. Third, for connecting to other machines.
- 8:53Speaker 2: You use remote login primarily SSH secure shell. It's replaced
- 8:58Speaker 2: older insecure things like telnet.
- 9:00Speaker 1: Got it, And there's some specific terminology here terminal console shell.
- 9:05Speaker 2: Yeah, it can be confusing, but it helps to be precise.
- 9:08Speaker 2: Think of the terminal as maybe the physical keyboard and screen. Historically,
- 9:12Speaker 2: the console is often used for that primary direct interface.
- 9:15Speaker 2: The shell is the program that actually interprets your commands.
- 9:19Speaker 2: Bash is the most common one. Bash okay, and a
- 9:22Speaker 2: session is your entire interaction from the moment you log
- 9:25Speaker 2: in until you log out. Knowing the difference helps you
- 9:27Speaker 2: diagnose where a problem might be.
- 9:29Speaker 1: And Bash itself the default shell. It uses those short
- 9:33Speaker 1: command names fitting that leezy admin idea.
- 9:36Speaker 2: Absolutely, LSE for list, CP for copy, MV for move.
- 9:40Speaker 2: It's all about efficiency, and.
- 9:42Speaker 1: These commands come from those core utilities you mentioned primarily.
- 9:45Speaker 2: Yes, they fall into two main buckets, the G and
- 9:48Speaker 2: U core utilities basic stuff for files, text shell operations,
- 9:53Speaker 2: and the utel Linux package open that one. More system
- 9:56Speaker 2: level things like mount for file systems, f disc or
- 9:59Speaker 2: LA BLK for discs, wellicle for a calendar. Really fundamental
- 10:04Speaker 2: tools indispensable basically totally. The sources say flat out without
- 10:07Speaker 2: them it is not possible to accomplish any useful work.
- 10:10Speaker 2: You literally can't run a Linux system without them. Digging
- 10:14Speaker 2: into them with the info command is a great way
- 10:16Speaker 2: to learn.
- 10:16Speaker 1: Okay, so we have the philosophy, the core parts, the
- 10:18Speaker 1: basic tools. Now how do you actually use all this
- 10:21Speaker 1: to solve problems? What's the cysadmin process?
- 10:23Speaker 2: The sources lay out a nice, almost scientific algorithm for
- 10:27Speaker 2: problem solving.
- 10:28Speaker 1: Oh really, like a formula sort of.
- 10:29Speaker 2: It goes knowledge, observation, hypothesize, test, conclude.
- 10:34Speaker 1: Okay, break that down right.
- 10:36Speaker 2: So knowledge is what you already know about how systems work.
- 10:39Speaker 2: Observation is gathering data. What are the symptoms, what do
- 10:43Speaker 2: the logs say? What are the monitoring tools showing.
- 10:46Speaker 1: Like using top maybe exactly?
- 10:48Speaker 2: Then you hypothesize, based on your knowledge and observations, what
- 10:52Speaker 2: do you think the cause is. Then you test your hypothesis,
- 10:56Speaker 2: try a fix, change a setting, and finally you conclude
- 11:00Speaker 2: did the test work? Did it confirm or deny your hypothesis?
- 11:03Speaker 1: And it's not always linear.
- 11:05Speaker 2: Oh definitely not. It's iterative. You often loop back. Your
- 11:08Speaker 2: test might give you new observations leading to a new hypothesis,
- 11:12Speaker 2: or you realize your initial knowledge was incomplete.
- 11:14Speaker 1: Right.
- 11:14Speaker 2: There's actually a funny anecdote in the sources about fixing
- 11:17Speaker 2: a big old mainframe but sitting on the Prinker control
- 11:20Speaker 2: unit sitting on it. Yeah, turns out a cable was
- 11:23Speaker 2: loose and the weight receded it. It's a slightly silly example,
- 11:27Speaker 2: but it underlines how crucial observation is sometimes in unexpected ways.
- 11:31Speaker 1: Huh okay, So observation is key. What are the go
- 11:34Speaker 1: to tools for that? For a monitoring system health.
- 11:37Speaker 2: Well, for real time process monitoring, TOP is the classic,
- 11:41Speaker 2: but EAH TOP and a cop are often preferred now
- 11:44Speaker 2: they're more user friendly, more informative.
- 11:46Speaker 1: What are you looking for with those?
- 11:47Speaker 2: Key things? Are CPUs with zero percent idle time? That
- 11:51Speaker 2: means they're totally swamped. High memory usage is another flag,
- 11:55Speaker 2: especially if the system starts using swap space heavily.
- 11:58Speaker 1: Swamp is like emergency re on the hard drive right, slows.
- 12:01Speaker 2: Things down exactly. It's slow, so high swap usage usually
- 12:05Speaker 2: means you're running out of RAM. These tools also help
- 12:08Speaker 2: you spot specific CPU hog processes that might be causing
- 12:12Speaker 2: the slow.
- 12:12Speaker 1: Down, and once you find a hog.
- 12:14Speaker 2: You can use commands like kill to terminate it if
- 12:16Speaker 2: necessary or re nice to lower its priority, making it
- 12:19Speaker 2: play nicer with others. Gives you direct control over resource usage.
- 12:23Speaker 1: Okay, this next one sounds fascinating looking inside the running
- 12:26Speaker 1: system using PROC like reading its mind.
- 12:29Speaker 2: That's a great way to think about it. PROC is
- 12:31Speaker 2: a virtual filesystem, a window into the kernel.
- 12:34Speaker 1: The sources call it, and it uses that everything is
- 12:36Speaker 1: a file idea again perfectly.
- 12:38Speaker 2: You don't need special tools. You can just use standard
- 12:41Speaker 2: commands like cat to read files directly out.
- 12:43Speaker 1: Of prock like what kind of files?
- 12:44Speaker 2: Things like proc meminfo gives you detailed memory stats. PROC
- 12:48Speaker 2: and winfo tells you all about your processor. Proclodav shows
- 12:52Speaker 2: the system load. It's real time info straight from the
- 12:55Speaker 2: kernel just by reading a file. Incredibly elegant.
- 12:58Speaker 1: Wow. Okay. Switching from the live system to hardware health,
- 13:02Speaker 1: specifically hard drives. They fail eventually. How can we predict that?
- 13:06Speaker 2: Yeah, drive failure is a big one. That's where smart
- 13:08Speaker 2: comes in, self monitoring, analysis, and reporting technology built into
- 13:13Speaker 2: most drives, most modern drives. Yeah, and utilities like smartphone
- 13:16Speaker 2: will let you query that smart data. The goal is
- 13:19Speaker 2: to predict hard drive failures before they happen.
- 13:21Speaker 1: How reliable is that?
- 13:23Speaker 2: Well? The sources mentioned a study by a cloud storage
- 13:25Speaker 2: company looking at tens of thousands of drives. They pinpointed
- 13:29Speaker 2: five specific smart attributes.
- 13:32Speaker 1: Just five.
- 13:32Speaker 2: Yeah, smart ads five, one eighty seven, one eighty eight,
- 13:35Speaker 2: one ninety seven, and one ninety eight. If the raw
- 13:38Speaker 2: values for these start showing high numbers or increasing quickly, yeah,
- 13:42Speaker 2: it's a strong sign that the drive is degrading. Time
- 13:45Speaker 2: to back up and plan a replacement, probably sooner rather
- 13:48Speaker 2: than later. It's not fool proof, but it's a very
- 13:51Speaker 2: valuable early warning.
- 13:53Speaker 1: Good to know. Okay, Beyond monitoring data day systemin work
- 13:58Speaker 1: involves a lot of text file manipulation from the command line.
- 14:01Speaker 2: Oh absolutely, it's bread and butter. Linux is brilliant at this.
- 14:05Speaker 2: You've got data streams and pipes. The little vertical bar
- 14:08Speaker 2: symbol A that lets you chain commands, cat a file
- 14:11Speaker 2: to display it, then pipe its output into WC to
- 14:14Speaker 2: count words or lines. Super powerful for transforming data on
- 14:18Speaker 2: the fly.
- 14:18Speaker 1: And redirection The angle brackets.
- 14:21Speaker 2: YEP redirects output to a file overwriting. It appends to
- 14:25Speaker 2: a file and feeds a file into a command as input.
- 14:28Speaker 2: Essential for saving results or processing data files.
- 14:31Speaker 1: Then there's matching filemames.
- 14:32Speaker 2: File globbing using wild cards like for any characters, for
- 14:35Speaker 2: a single character, for range of characters, or for specific options.
- 14:39Speaker 2: Lets you work on groups of files really.
- 14:40Speaker 1: Efficiently, and searching inside files.
- 14:43Speaker 2: That's rep It's indispensable. You feed it a pattern and
- 14:46Speaker 2: it finds lines containing that pattern in files. You can
- 14:49Speaker 2: search multiple files, ignore case use complex patterns. It's incredibly versatile.
- 14:55Speaker 1: Okay, And if GRIP is for file content, what about
- 14:58Speaker 1: finding files based on other things like size or date.
- 15:02Speaker 2: For that you need find It's a bit more complex,
- 15:05Speaker 2: but extremely powerful. You can search for files based on name, yes,
- 15:09Speaker 2: but also size, modification, time, permissions, owner, almost any attribute
- 15:14Speaker 2: you can think of. It's like a database query tool
- 15:16Speaker 2: for your file system.
- 15:17Speaker 1: Got it? All these tools manage the system as it is. Yeah,
- 15:21Speaker 1: but what about installing new software, updating things, removing old stuff?
- 15:25Speaker 1: Package management?
- 15:26Speaker 2: Yeah, that's crucial and it used to be painful.
- 15:28Speaker 1: Dependency hell, exactly.
- 15:31Speaker 2: The sources mentioned early systems like RPM, you'd try to
- 15:33Speaker 2: install something and it would say needs library X. So
- 15:37Speaker 2: you'd find library X, try to install it and it
- 15:39Speaker 2: would say needs library Y version two, but you have
- 15:41Speaker 2: version one. It was a nightmare.
- 15:43Speaker 1: Sounds awful.
- 15:43Speaker 2: It was, but modern package managers like DNF, which is
- 15:46Speaker 2: common now, have mostly solved this. They handle dependencies automatically.
- 15:50Speaker 2: You say install package Z, and DNF figures out everything
- 15:54Speaker 2: else Z needs, fetches it all and installs it in
- 15:57Speaker 2: the right order. It does updates, removal, handles conflicts. It
- 16:01Speaker 2: makes life so much easier.
- 16:02Speaker 1: That's a huge improvement.
- 16:04Speaker 2: Massive, And DNF is smart enough to keep multiple kernels installed.
- 16:08Speaker 1: Ah. You mentioned that for recovery.
- 16:10Speaker 2: Right, If a kernel update causes boot problems, the bootloader
- 16:15Speaker 2: grub usually lets you select an older working kernel. It's
- 16:19Speaker 2: a built in safety net provided by the package management system.
- 16:22Speaker 1: Makes sense, and clearly, all these skills monitoring, file handling,
- 16:26Speaker 1: package management, they aren't just for emergencies, not at all.
- 16:30Speaker 2: This is the daily toolkit for anyone working seriously with Linux.
- 16:34Speaker 1: Right, so we've seen the tools, the philosophy. Let's trace
- 16:37Speaker 1: the actual journey of a Linux system. Yeah, from hitting
- 16:39Speaker 1: the power button to being ready to use. Understand that
- 16:42Speaker 1: whole boot process seems key.
- 16:44Speaker 2: It really is. Knowing what happens when DUA can be
- 16:47Speaker 2: crucial for troubleshooting. The sources break it down into three
- 16:50Speaker 2: main phases.
- 16:51Speaker 1: Okay, Phase one hardware boot.
- 16:53Speaker 2: This is your computer's basic firmware, the BIOS or the
- 16:57Speaker 2: newer UA FI doing its power on se heelf, test PST,
- 17:02Speaker 2: checking memory, initializing basic.
- 17:04Speaker 1: Hardware, standard stuff for any computer pretty much.
- 17:07Speaker 2: Then comes Phase two, the Linux boot. This is where
- 17:11Speaker 2: GRUP usually takes.
- 17:12Speaker 1: Over the grain unified bootloader.
- 17:14Speaker 2: That's the one gr Read's job is to find and
- 17:18Speaker 2: load the Linux kernel itself into memory. It does this
- 17:21Speaker 2: in stages. Stage one is tiny, usually in the master
- 17:25Speaker 2: boot record of the disc MBR. Then it loads a
- 17:27Speaker 2: slightly bigger stage one point five to understand filesystems. Then
- 17:30Speaker 2: the main stage two, which presents the menu, loads the
- 17:33Speaker 2: chosen kernel and an initial RAM disc image called insured
- 17:37Speaker 2: or any trams.
- 17:38Speaker 1: And that grub menu is where you can choose older kernels.
- 17:40Speaker 2: Of needed exactly. That's a critical function of GRRP during
- 17:43Speaker 2: the Linux boot phase.
- 17:44Speaker 1: Okay, kernels loaded.
- 17:45Speaker 2: Phase three Linux startup. Now the kernel is running, but
- 17:48Speaker 2: it needs to start everything else. This is where the
- 17:50Speaker 2: innit system comes in. Historically this was simpler, but now
- 17:53Speaker 2: it's usually systems.
- 17:53Speaker 1: System seems to be everywhere.
- 17:55Speaker 2: Now it is. It's powerful but complex. System is responsible
- 17:59Speaker 2: for starting all the background services, mounting file systems setting
- 18:03Speaker 2: up networking basically preparing the entire host system for you
- 18:07Speaker 2: to log in and use.
- 18:08Speaker 1: And system decides if you get a graphical log in
- 18:11Speaker 1: or just a text console. Yeah.
- 18:12Speaker 2: It uses something called a default dot target.
- 18:14Speaker 1: Yeah.
- 18:15Speaker 2: One target might be graphical dot target, which brings up
- 18:17Speaker 2: the whole desktop environment. Another might be multi user dot target,
- 18:21Speaker 2: which just gives you text consoles.
- 18:23Speaker 1: Okay, and one system has done its thing.
- 18:25Speaker 2: If you're booting graphically, a display manager like GDM for
- 18:29Speaker 2: Genome or SDDM for a KDE or light DM takes over,
- 18:32Speaker 2: showing you the login screen.
- 18:34Speaker 1: Right.
- 18:34Speaker 2: If you're in text mode, you'll interact with aged, which
- 18:37Speaker 2: manages logins on the virtual consoles. It's cyclical. It waits
- 18:41Speaker 2: for a username, runs log in, and when you log out,
- 18:43Speaker 2: it starts over waiting for the next user.
- 18:45Speaker 1: Makes sense. So now the system's up. You log in
- 18:48Speaker 1: and you land in your shell, which needs its own.
- 18:50Speaker 2: Configuration exactly, And there's a hierarchy here. System Wide settings
- 18:54Speaker 2: that affect everyone are often in etceter profile or files
- 18:57Speaker 2: in etceterprofile dot.
- 18:58Speaker 1: D okay for all users.
- 19:00Speaker 2: Then you have your personal configuration files in your home directory,
- 19:03Speaker 2: like bash profile for login shells or bash arch for interactive,
- 19:10Speaker 2: non log in shells, like when you open a terminal window.
- 19:12Speaker 1: Bash arts are the one most people edit right often.
- 19:15Speaker 2: Yeah, for things like setting environment variables. Path is a
- 19:18Speaker 2: huge one.
- 19:18Speaker 1: What does path do again?
- 19:20Speaker 2: It's a list of directories the shell searches when you
- 19:22Speaker 2: type a command. If the command isn't in one of
- 19:25Speaker 2: those directories, the shell says command not found. You use
- 19:28Speaker 2: the export command to make varials like path available to
- 19:31Speaker 2: programs you run.
- 19:32Speaker 1: Got it. This seems like the perfect place for that
- 19:35Speaker 1: lazy sis admin stuff to come in again, especially aliss Oh.
- 19:38Speaker 2: Absolutely, alisas are life savers. They're just shortcuts you define
- 19:41Speaker 2: in your dot, bash arch or similar file. It's a
- 19:45Speaker 2: classic example. Yeah, it's usually an alias for el Sera,
- 19:48Speaker 2: which gives a detailed file listing saves typing ls air
- 19:53Speaker 2: hundreds of times a day.
- 19:54Speaker 1: Makes sense.
- 19:54Speaker 2: You can alias almost anything. The sources mentioned one author
- 19:58Speaker 2: who dislikes the default Vim colors, so they have an
- 20:02Speaker 2: alias for Vim that automatically adds a command line option
- 20:05Speaker 2: to set their preferred color scheme every time they launch. It.
- 20:08Speaker 2: Smart very but there's a warning. Don't alias Linux commands
- 20:13Speaker 2: to mimic commands from old systems you used to use.
- 20:15Speaker 2: Why not seems convenient because, as the source says, you
- 20:19Speaker 2: will never learn Linux that way. You need to embrace
- 20:22Speaker 2: the Linux commands in way of thinking, not try to
- 20:24Speaker 2: force it into an old mold.
- 20:25Speaker 1: Good advice. Okay, moving beyond shell tweaks. Oh, file permissions
- 20:30Speaker 1: you mentioned them earlier, but they seem absolutely fundamental.
- 20:32Speaker 2: Critical security one oh one. On Linux, every file and
- 20:36Speaker 2: directory has an owner, a group, and permissions set for
- 20:39Speaker 2: three categories. The owner, members of the group, and everyone.
- 20:43Speaker 1: Else other read, write, execute exactly.
- 20:46Speaker 2: And commands like cha mode, change mode and shound change owner.
- 20:50Speaker 2: Let you manage these permissions precisely, understanding this is non
- 20:53Speaker 2: negotiable for assisadmin.
- 20:55Speaker 1: And related to files are links, hard links and soft links.
- 20:58Speaker 2: Yeah, slightly different. A hard link is basically just another
- 21:03Speaker 2: name pointing to the exact same file data on the
- 21:06Speaker 2: disc the same inode.
- 21:08Speaker 1: Inode is like the file's unique ID.
- 21:11Speaker 2: Kind of yeah, it's the underlying data structure. You can
- 21:14Speaker 2: have multiple hard links, multiple names, all pointing to the
- 21:17Speaker 2: same data. The data itself is only deleted when the
- 21:20Speaker 2: last hard link pointing to it is removed.
- 21:22Speaker 1: Ah.
- 21:23Speaker 2: Okay, and slapslinks, soft links or symbolic links are different.
- 21:26Speaker 2: They're more like shortcuts. They just point to another file name.
- 21:29Speaker 2: If the original file is deleted, the soft link breaks
- 21:32Speaker 2: it points to.
- 21:32Speaker 1: Nothing, so they behave differently important for maintenance.
- 21:36Speaker 2: Very important, especially when deleting things or moving files around.
- 21:39Speaker 1: Okay. Finally, underpinning all of this file systems the way
- 21:43Speaker 1: data is actually organized on.
- 21:44Speaker 2: The disc right lynnis generally follows the Filesystem Hierarchy Standard
- 21:48Speaker 2: or FHS. It defines where things should typically live Been
- 21:52Speaker 2: for essential binaries, et cetera for configuration, Home for user directories,
- 21:57Speaker 2: VAR for variable data.
- 21:59Speaker 1: Like log standard layout.
- 22:01Speaker 2: Yeah helps keep things organized across different Linux distributions. But
- 22:05Speaker 2: how you partition your disc is also strategic partitioning, dividing
- 22:09Speaker 2: your physical disc into logical sections, each potentially holding a
- 22:12Speaker 2: file system. The sources strongly recommend having separate file systems
- 22:16Speaker 2: for Home and VAR at a minimum. Why is that
- 22:19Speaker 2: so important because things in VAR, like logs or TM
- 22:25Speaker 2: temporary files can grow uncontrollably, sometimes if they fill up
- 22:28Speaker 2: the entire disc Because they share a partition with the
- 22:31Speaker 2: root file system, critical system processes can fail. Your system
- 22:35Speaker 2: might not even boot ouch. Yeah, by giving Home and
- 22:38Speaker 2: var their own separate partitions. If one fills up, it
- 22:41Speaker 2: doesn't take down the whole system. It contains the problem.
- 22:44Speaker 2: It's a crucial preventative measure.
- 22:46Speaker 1: Make total sense, and the file system type itself matters.
- 22:48Speaker 1: Who like EXT four? YEP?
- 22:50Speaker 2: Ext four is very common, very mature. The sources highlight
- 22:54Speaker 2: features like journaling.
- 22:55Speaker 1: What's that do?
- 22:56Speaker 2: It's like a logbook for discrites. Before making changes, it
- 23:00Speaker 2: logs what it intends to do. If the system crashes
- 23:03Speaker 2: mid right on reboot, it can check the journal and
- 23:06Speaker 2: quickly bring the filesystem back to a consistent state, preventing data.
- 23:10Speaker 1: Corruption, nice and fragmentation.
- 23:12Speaker 2: EXT four is pretty good at minimizing fragmentation, where parts
- 23:15Speaker 2: of a file gets scattered across the disk, slowing down access.
- 23:19Speaker 2: It uses clever allocation strategies to try and keep files contiguous.
- 23:23Speaker 1: So putting it all together, from boot to file systems,
- 23:25Speaker 1: it's a complex but logical system it is.
- 23:29Speaker 2: And mastering it, as the sources imply, is definitely an
- 23:32Speaker 2: ongoing journey, not a destination.
- 23:35Speaker 1: So let's wrap this up. What does this all really
- 23:37Speaker 1: mean for you listening? We've gone from that core Linux philosophy.
- 23:41Speaker 2: Yeah, the openness, the trust.
- 23:42Speaker 1: Through the essential building blocks, the tools you need every
- 23:45Speaker 1: day even follow the system booting up and getting personalized.
- 23:48Speaker 2: And I think the key takeaways are pretty clear that
- 23:50Speaker 2: open box idea gives you incredible power for control and
- 23:54Speaker 2: for figuring things out when they go wrong. Right everything
- 23:58Speaker 2: is a file concept brings the amazing consistency. The need
- 24:02Speaker 2: for constant monitoring using tools like top or checking smart
- 24:05Speaker 2: status is vital.
- 24:07Speaker 1: Proactive not just reacting.
- 24:09Speaker 2: Exactly and embracing that command line efficiency the lazy admin
- 24:12Speaker 2: way is how you really get effective. But ultimately it's
- 24:16Speaker 2: about understanding the why, not just memorizing the what.
- 24:19Speaker 1: Yeah, absolutely and hopefully this deem dive has given you
- 24:22Speaker 1: a foundation, a way into that understanding that honestly could
- 24:27Speaker 1: save you hours and hours of just waiting through documentation.
- 24:30Speaker 1: For sure, you've got insights now that help you mystify
- 24:33Speaker 1: Linux and hopefully get you thinking more like assisadmin.
- 24:36Speaker 2: So here's a final thought to chew on. If you
- 24:39Speaker 2: have a system like Linux that's designed to encourage curiosity,
- 24:42Speaker 2: designed to let you tinker, even designed to sort of
- 24:45Speaker 2: relish its own failures as chances.
- 24:47Speaker 1: To learn, that's an interesting phrase.
- 24:49Speaker 2: It is isn't it. What does that imply about? How
- 24:52Speaker 2: you could approach problems, not just tech problems, but maybe anything.
- 24:55Speaker 2: Could intentionally breaking things carefully in a safe space, of course,
- 24:59Speaker 2: actually be the fastest way to really truly master them,
- 25:03Speaker 2: to find solutions you wouldn't otherwise see.
- 25:05Speaker 1: Interesting question, food for thought, and a practical way to
- 25:09Speaker 1: start exploring that well.
- 25:10Speaker 2: The sources suggests setting up your own Linux virtual machine.
- 25:14Speaker 1: A test lab, a sandbox.
- 25:16Speaker 2: Exactly somewhere you can experiment, break things without consequence and
- 25:20Speaker 2: really start applying these ideas and building that understanding from
- 25:24Speaker 2: the ground up.
- 25:25Speaker 1: Great suggestion, definitely something to try out.