Latest / CyberSecurity Summary / RHCSA Red Hat Enterprise Linux 9 Certification Study Guide, Eighth Edition (Exam EX200)
Transcript
- 0:00Speaker 1: Welcome back to the deep dive. Today, we're jumping into
- 0:03Speaker 1: something really essential, getting a handle on red Hat Enterprise
- 0:07Speaker 1: Lenox nine rh A nine. We're basically mining the Enterprise
- 0:13Speaker 1: Lenox nine Certification Study Guide, the RHGSA one from twenty
- 0:16Speaker 1: twenty four for the absolute core stuff.
- 0:18Speaker 2: Exactly. The mission really is to pull out those key
- 0:21Speaker 2: ideas about RHGL nine administration, make it clear maybe even
- 0:24Speaker 2: you know, engaging, avoid just drowning you in information.
- 0:28Speaker 1: Yeah, think of it as a shortcut. We're not replacing
- 0:30Speaker 1: the guide obviously, No, no, definitely not.
- 0:32Speaker 2: But it's like a focused look at the must nose.
- 0:36Speaker 2: So whether you're just kind of RHL curious or you're
- 0:39Speaker 2: actually you know, needing to work with.
- 0:40Speaker 1: It, right, we hope this helps you nail down those
- 0:43Speaker 1: fundamentals and maybe you uncover a few surprising bits along
- 0:46Speaker 1: the way. So useful. Okay, let's kick off part one,
- 0:49Speaker 1: getting started setting things up, and then the command line itself.
- 0:53Speaker 1: So groundwork first, hardware. Now, the actual RHCSA exam. It
- 0:58Speaker 1: doesn't test hardware.
- 0:59Speaker 2: Knowledge, but you need something to run it on, obviously,
- 1:02Speaker 2: Exactly it.
- 1:03Speaker 1: Has to be a six to four bit system. That's
- 1:04Speaker 1: a must. And if you're using virtual machines for practice, which,
- 1:09Speaker 1: let's be honest, is probably how most people learn this stuff.
- 1:11Speaker 2: Yeah, highly recommended.
- 1:13Speaker 1: The guide suggests aiming for at least eight GB of RAM.
- 1:18Speaker 1: That's if you want to run a couple of vms comfortably, right, like.
- 1:21Speaker 2: A server and maybe a client, or just two practice machines.
- 1:25Speaker 1: It mentions VMware workstation players specifically, which is a solid choice.
- 1:29Speaker 2: Yeah, but KVM is another great one, especially if you're
- 1:32Speaker 2: already comfortable in a Linux environment.
- 1:34Speaker 1: They're just different ways to get that virtual sandbox set up,
- 1:37Speaker 1: you know.
- 1:38Speaker 2: Yeah, and having that good practice setup is key. It
- 1:40Speaker 2: just avoids a lot of frustration down the line if
- 1:42Speaker 2: your base system can actually handle it.
- 1:45Speaker 1: Okay, so installation itself. You've got your boot, media, DBD, maybe.
- 1:49Speaker 2: USB, uh huh, the usual suspects.
- 1:51Speaker 1: Then you hit partitioning. This is where you're dividing up
- 1:54Speaker 1: your disc.
- 1:55Speaker 2: Think of it like setting up drawers in a filing
- 1:57Speaker 2: cabinet before you put files in. Create the partitions, assign
- 2:01Speaker 2: mount points like the main slash for the root directory
- 2:05Speaker 2: or home for user files exactly, and the way richil
- 2:09Speaker 2: nine organizes files within those partitions. The default file system
- 2:14Speaker 2: is excess. That gets the main focus in.
- 2:17Speaker 1: The guide, right, So you set up your partitions, choose
- 2:19Speaker 1: your software, and for learning, the guide points towards server
- 2:25Speaker 1: with uy. Yeah.
- 2:26Speaker 2: That gives you both the command line and a graphical desktop,
- 2:28Speaker 2: which can be handy when you're starting.
- 2:30Speaker 1: You set the root passwords super important, that's the master key.
- 2:32Speaker 2: Don't lose that, huh.
- 2:34Speaker 1: Yeah, and then there's a little initial setup after the
- 2:37Speaker 1: first boot.
- 2:37Speaker 2: Pretty straightforward stuff.
- 2:38Speaker 1: Okay, So you're logged in now the command line that's
- 2:41Speaker 1: where the action.
- 2:42Speaker 2: Is pretty much, and the default language the shell you're
- 2:44Speaker 2: talking to is.
- 2:45Speaker 1: Bash, right BSh. Yeah.
- 2:47Speaker 2: There are others like KSh, tcs ZISH, yeah, you might
- 2:50Speaker 2: see them, but Bash is the default you'll find yourself in.
- 2:54Speaker 1: You can have multiple command lines open these virtual consoles.
- 2:57Speaker 2: Oh yeah, like having different text based screens. You can
- 2:59Speaker 2: flip between them seatrawl alt F three, seatrawl alt f four,
- 3:02Speaker 2: things like that. Each one can be a separate log
- 3:04Speaker 2: in session.
- 3:05Speaker 1: Handy. Okay, course skills finding your way around.
- 3:09Speaker 2: First up PWD print working directory tells you where you
- 3:14Speaker 2: are right now.
- 3:14Speaker 1: And CD to move change directory.
- 3:17Speaker 2: Exactly, and you need to get the difference between absolute paths.
- 3:21Speaker 2: Starting from the root like a full.
- 3:22Speaker 1: Address all major documents.
- 3:24Speaker 2: Yeah, and relative paths which are based on your current location,
- 3:27Speaker 2: like go up one level CD, or go into this
- 3:30Speaker 2: directory here's CD, durnet, we.
- 3:32Speaker 1: Got it, and this path variable ah path.
- 3:36Speaker 2: That's basically a list of directories the system checks whenever
- 3:38Speaker 2: you just type of command name like l's or p doud.
- 3:41Speaker 2: It's how it finds the program.
- 3:43Speaker 1: Okay, and the tilled.
- 3:44Speaker 2: Oh, the tildy that's just a shortcut always takes you
- 3:47Speaker 2: back to your own home directory. Super useful.
- 3:49Speaker 1: Nice okay. Dealing with files and directories.
- 3:52Speaker 2: Listing them l's that's your basic listing command, but the
- 3:56Speaker 2: real power is in the options like.
- 3:57Speaker 1: Aero for the long listing, shows missions, size, date, right.
- 4:02Speaker 2: And a to see all files, including the hidden ones
- 4:05Speaker 2: that start with a dot. Then you've got at to
- 4:08Speaker 2: sort by time. It shows the inn number like a
- 4:10Speaker 2: unique id for the file on the disc. R R
- 4:12Speaker 2: reverses the sort order, and MSR capital r that lists
- 4:16Speaker 2: everything recursively like all the subdirectories too.
- 4:20Speaker 3: Wow.
- 4:20Speaker 1: Okay, so l's is pretty powerful.
- 4:23Speaker 2: Definitely worth learning those options. Creating directories mm deer make
- 4:27Speaker 2: directory and the optic option is great. It creates parent
- 4:29Speaker 2: directories if they don't already exist. So mm ear MmpD one,
- 4:34Speaker 2: deer two, deer three works even if deer one and
- 4:37Speaker 2: deer two aren't there yet.
- 4:38Speaker 1: Saves time and empty files.
- 4:40Speaker 2: Touch just touch file name, or you can update the
- 4:43Speaker 2: timestamp of an existing file.
- 4:44Speaker 1: With it too. Okay, Copying, moving, removing.
- 4:46Speaker 2: CP for copy, MV for move, which also renames files
- 4:50Speaker 2: by the way, and RM for remove.
- 4:52Speaker 1: And this is the one to be careful with, right, No.
- 4:55Speaker 2: Trash bin exactly. Once you arm something, it's generally gone.
- 4:58Speaker 2: So yeah, double check before you hit enter.
- 5:00Speaker 1: Good advice. What about links? Hard link soft links?
- 5:03Speaker 2: Right, So MMn file name link name creates a hard link.
- 5:07Speaker 2: Think of it as two directory entries pointing to the
- 5:10Speaker 2: exact same data block on the disc. If you delete
- 5:12Speaker 2: one name, the data is still there under the other name.
- 5:15Speaker 2: Soft links or symbolic links are made with LNNSS. That's
- 5:19Speaker 2: more like a shortcut. It just points to the name
- 5:21Speaker 2: of the original file. If the original file moves or
- 5:23Speaker 2: gets deleted, the soft link breaks.
- 5:25Speaker 1: Gotcha. So hard links point to the data. Soft links
- 5:27Speaker 1: point to the name.
- 5:28Speaker 2: Pretty much.
- 5:28Speaker 1: Yeah, all right, permissions, This looks important.
- 5:31Speaker 2: Chwud very important schmad changes the mode the permissions. You
- 5:36Speaker 2: can use numbers like schmod six forty file.
- 5:38Speaker 1: Six four zero. What does that mean?
- 5:40Speaker 2: It's octal. Each number represents permissions for user, group and others.
- 5:44Speaker 2: Six is read and write, four plus two four is
- 5:47Speaker 2: read only. Zero is no permissions.
- 5:49Speaker 1: Ah. Okay, r as four w is two.
- 5:51Speaker 2: X is one exactly. Or you can use the symbolic
- 5:54Speaker 2: mode you gore x like schmod g plus w file
- 5:58Speaker 2: adds right permission for the group g com for user
- 6:01Speaker 2: G group oh others.
- 6:02Speaker 1: Okay, that seems more intuitive, Maybe it can be.
- 6:04Speaker 2: The guide also mentions special dits sgid G plus s
- 6:09Speaker 2: on a director means new files created inside it get
- 6:12Speaker 2: the directory's group, not the user's primary group, and the
- 6:15Speaker 2: sticky bit O plus T on a shared directory like
- 6:20Speaker 2: tm tem it means only the owner of a file
- 6:23Speaker 2: can delete it, even if others have right permission to
- 6:25Speaker 2: the directory.
- 6:26Speaker 1: Ah. Useful for shared spaces.
- 6:28Speaker 2: Yeah. Then chound changes the owner th hg RP changes
- 6:32Speaker 2: the group pretty straightforward, and the ooh mask that sets
- 6:37Speaker 2: the default permissions. When you create a new file or directory,
- 6:41Speaker 2: the system starts with full permissions and then subtracts whatever
- 6:44Speaker 2: the mask specifies, so it controls how things are created initially.
- 6:48Speaker 1: Okay, kind of like a template for new file permissions
- 6:50Speaker 1: sort of.
- 6:50Speaker 2: Yeah, it masks off permissions.
- 6:52Speaker 1: Then chatter file attributes.
- 6:54Speaker 2: Yeah, that's another layer chatter. Let's you say, attributes like
- 6:57Speaker 2: immutable plus I. If a file is immutable, nobody can
- 7:00Speaker 2: change or delete it, not even root.
- 7:02Speaker 1: Seriously, not even root.
- 7:03Speaker 2: Nope, you have to remove the immutable flag first. With
- 7:06Speaker 2: chat r, there's also a pend only plus a where
- 7:09Speaker 2: you can add to the end of a file but
- 7:11Speaker 2: can't delete or change existing content.
- 7:13Speaker 1: Interesting, okay. Working with text dot redirection super useful.
- 7:17Speaker 2: The greater then sign redirects output to a file overwriting
- 7:21Speaker 2: it double greater than a pens to the file. Less
- 7:25Speaker 2: then feeds a file as input to a command, and
- 7:28Speaker 2: the pipe sends the output of one command directly as
- 7:31Speaker 2: input to.
- 7:31Speaker 1: The next, Say chaining commands together.
- 7:33Speaker 2: Exactly and two redirects error messages.
- 7:35Speaker 1: Specifically, good to know searching text dot rep rep.
- 7:39Speaker 2: Is your best friend for searching dot GP pattern file name,
- 7:43Speaker 2: and it gets really powerful with regular expressions. Those special
- 7:47Speaker 2: characters like dot for any character, square brackets for set
- 7:51Speaker 2: of characters, question mark plus plus star for matching repetitions.
- 7:56Speaker 1: Let's you do really complex pattern matching.
- 7:58Speaker 2: Absolutely, and if you just need to compare two files,
- 8:00Speaker 2: see what's different, use diff.
- 8:02Speaker 1: Defall one file two simple enough YEP editing files. Okay, VI,
- 8:06Speaker 1: this one has a reputation.
- 8:08Speaker 2: It does, it's powerful, it's everywhere. But yeah, it had
- 8:10Speaker 2: a learning curve. The key is understanding its modes, especially
- 8:13Speaker 2: command mode.
- 8:13Speaker 1: Right, we're not typing text directly exactly.
- 8:16Speaker 2: You use keys like to search forward, to search backward right,
- 8:19Speaker 2: followed by commands like W to wright, save, q to quit,
- 8:23Speaker 2: or to buq to save and quit.
- 8:25Speaker 1: Okay. And these special versions VBO, VG pseudo.
- 8:29Speaker 2: Ah, yeah, those are wrappers around V, specifically for editing
- 8:34Speaker 2: critical system files like et cetubas, food, et cetera, group
- 8:37Speaker 2: and etcetera. Pseudos they add safeguards like file locking to
- 8:40Speaker 2: prevent multiple people editing at once or messing things up
- 8:43Speaker 2: too badly. Definitely use those when editing those specific files.
- 8:47Speaker 2: But if V is just too much at first, well,
- 8:50Speaker 2: you can actually change your default editor. You set the
- 8:53Speaker 2: editor environment variable and the guide mentions NANO, which is
- 8:56Speaker 2: much simpler and more like a standard notepad style editor,
- 9:00Speaker 2: and you at the bottom pretty intuitive.
- 9:01Speaker 1: Good alternative to know about definitely. Lastly, for this section,
- 9:04Speaker 1: getting help documentation crucial.
- 9:07Speaker 2: Man pages are the first stop man command name read
- 9:10Speaker 2: the manual.
- 9:10Speaker 1: People always say that.
- 9:11Speaker 2: Because it's true, especially check the example section at the
- 9:14Speaker 2: end of many men pages. Super helpful.
- 9:16Speaker 1: Okay, what is an apropos?
- 9:18Speaker 2: What shared as gives you just a quick one line
- 9:20Speaker 2: summary of what a command does. Apropos keyword searches those summaries,
- 9:23Speaker 2: so if you can't remember the command name but know
- 9:25Speaker 2: what it does, apropos can help you find it.
- 9:27Speaker 3: Nice and infodocs oser doc Info is another documentation system,
- 9:33Speaker 3: sometimes more detailed than man pages, but maybe less used
- 9:35Speaker 3: now and yeah, asha doc often has rehabiens examples, extra
- 9:39Speaker 3: docs provided by the software package itself always worth a look.
- 9:42Speaker 2: If you're stuck.
- 9:44Speaker 1: Lots of places to find help, then for sure. Okay,
- 9:46Speaker 1: let's shift gears part two, Managing the system itself. Starting
- 9:51Speaker 1: with software right.
- 9:52Speaker 2: So RHL uses RPM packages. That's the underlying format, But
- 9:56Speaker 2: the main tool you'll use to install, update remove software
- 10:00Speaker 2: is DNF.
- 10:01Speaker 1: DNF okay you replace YM right.
- 10:03Speaker 2: Yeah. DNF is the modern version. It talks to repositories
- 10:06Speaker 2: basically online collections of software packages. These are configured in
- 10:09Speaker 2: files under ETCM, DOT Repo, dot D and.
- 10:12Speaker 1: Red Hat subscription management.
- 10:14Speaker 2: That's how your system proves it's allowed to access the
- 10:16Speaker 2: official red Hat repositories and get updates in software. And
- 10:20Speaker 2: DNF handles dependencies automatically.
- 10:22Speaker 1: Meaning if you install program A and needs library B
- 10:25Speaker 1: to work, DNF figures that out and installs library B
- 10:28Speaker 1: too exactly.
- 10:29Speaker 2: Saves a ton of.
- 10:29Speaker 1: Hassle so common DNF commands.
- 10:31Speaker 2: DNF List shows available or installed packages. DNF install package name,
- 10:36Speaker 2: DNF update updates everything or just one package. DNF remove package.
- 10:41Speaker 1: Name, okay, install update, remove what else.
- 10:44Speaker 2: DNF info package name gives you details about a package.
- 10:47Speaker 2: DNF repolist shows you which repositories your system is actually using,
- 10:51Speaker 2: and DNF provides file name as useful, it tells you
- 10:54Speaker 2: which package owns a specific file like a SERB and.
- 10:57Speaker 1: Mash ah handy for tracking things down.
- 10:59Speaker 2: And While DNF is the main tool, you can sometimes
- 11:01Speaker 2: interact with RPM files.
- 11:02Speaker 1: Directly using the RPM command.
- 11:04Speaker 2: Right rpmdshis package dot RPM installs a specific RPM file,
- 11:09Speaker 2: I install viver bose h hash marks for progress. RPM
- 11:12Speaker 2: dosh qa lists all installed packages, rpmdsh QL package name
- 11:16Speaker 2: lists all the files inside and installed package okay, and
- 11:19Speaker 2: RPM dash K package dot RPM verifies the package's digital
- 11:22Speaker 2: signature using gpgkeys usually stored in et cetera, KERPM, DOUSHDPG
- 11:27Speaker 2: to make sure it's legitimate and hasn't been tampered with.
- 11:29Speaker 1: Security check good. What about module streams ah modules?
- 11:35Speaker 2: There a way? Our HL offers different versions of software
- 11:38Speaker 2: like maybe Python three point nine and Python three point
- 11:41Speaker 2: one one on the same system without conflicts. You can
- 11:44Speaker 2: use DNF module list and DNF module infotasy what's available? Okay.
- 11:48Speaker 1: It provides flexibility exactly right. System startup the boot process.
- 11:53Speaker 1: How does that work?
- 11:54Speaker 2: It's a sequence. First, the bios or UA five firmware
- 11:58Speaker 2: initializes the hardware. Then and it hands off to the bootloader.
- 12:01Speaker 1: Which is GRB two and RHL nine correct.
- 12:04Speaker 2: GRB two then loads the Linux kernel into memory. The
- 12:07Speaker 2: kernel starts up, mounts a temporary initial filesystem called the
- 12:11Speaker 2: INNA tramps, and finally the kernel starts the very first
- 12:14Speaker 2: real process, which is systemed. System gets process ID one
- 12:18Speaker 2: and it takes over managing the rest of the system.
- 12:21Speaker 1: Startup system does the big boss.
- 12:22Speaker 2: Then pretty much the conductor, As the guide.
- 12:25Speaker 1: Says, what about GRB two itself? Anything we need to know?
- 12:28Speaker 2: You'll see its menu at boot. You can choose different
- 12:30Speaker 2: kernels if you have them. Pressing E lets you temporarily
- 12:33Speaker 2: edit the kernel boot parameters useful for troubleshooting. Sometimes its
- 12:37Speaker 2: main config file is etc default grub a key setting.
- 12:41Speaker 2: There is jur rub time out how long the menu
- 12:43Speaker 2: waits before booting the default entry?
- 12:45Speaker 1: Right. So, systemed you said it manages everything.
- 12:48Speaker 2: It manages services, devices, mount points, almost everything using units.
- 12:53Speaker 2: These are just configuration files telling a system to how
- 12:56Speaker 2: to manage something.
- 12:57Speaker 1: Where are these unit files?
- 12:58Speaker 2: System Wide defaults are in e U solob systemed system
- 13:01Speaker 2: and your customizations or locally installed ones go in its
- 13:05Speaker 2: systems system Targets. Targets are special units that group other units.
- 13:09Speaker 2: Think of them like run levels in the old days.
- 13:11Speaker 2: Multi user dot target is your typical command line server state.
- 13:15Speaker 2: Graphical dot target adds the graphical desktop on top of that.
- 13:18Speaker 1: How do you control these units and.
- 13:20Speaker 2: Targets with the system's statle command?
- 13:23Speaker 1: It's central, okay, What can I do?
- 13:24Speaker 2: System statle start service name stop, restart, reload to reread
- 13:30Speaker 2: config without a full restart status to see if it's
- 13:33Speaker 2: running and get recent logs.
- 13:34Speaker 1: Basic service control Yeah.
- 13:36Speaker 2: Then system tell'll enable service name makes it start automatically
- 13:39Speaker 2: at boot disabled, stops that is enabled, checks the current setting,
- 13:44Speaker 2: and list units shows everything system is currently managing.
- 13:48Speaker 1: Can you change the default state like boot to command
- 13:51Speaker 1: line instead of graphical Yep.
- 13:52Speaker 2: You can set the default target using system teleset default.
- 13:56Speaker 1: Okay, what if things go wrong during boot? How do
- 13:59Speaker 1: you see messages journal?
- 14:01Speaker 2: Telll that's the command to view the system journal, which
- 14:04Speaker 2: collects logs from pretty much everywhere.
- 14:06Speaker 1: So system lugs are centralized now largely.
- 14:08Speaker 2: Yes, And for troubleshooting, you can manually boot to a
- 14:11Speaker 2: specific target by adding like system d dot unit multi
- 14:15Speaker 2: user dot target to the kernel line in grub. Okay,
- 14:18Speaker 2: and there's dart dot break. You can add two, which
- 14:20Speaker 2: interrupts the boot process very early, drops you into a shell.
- 14:23Speaker 2: Useful for things like receiving a lost root password. Power
- 14:26Speaker 2: for stuff can be a lifesaver. Oh and interestingly, commands
- 14:30Speaker 2: like shut down, reboot, halt they're mostly just links pointing
- 14:33Speaker 2: back to system.
- 14:34Speaker 1: Techle Now, system really took over?
- 14:36Speaker 2: It really did. And for time management, time detectal shows
- 14:39Speaker 2: and sets the system time and time zone, and cronid
- 14:42Speaker 2: is the service that sinks your clock over the network
- 14:45Speaker 2: using NTP.
- 14:46Speaker 1: Got it? Okay? Users in groups.
- 14:48Speaker 2: Right, You generally don't want to be logged in as
- 14:50Speaker 2: route all the time, bad practice. So you create regular
- 14:54Speaker 2: user accounts.
- 14:55Speaker 1: Where is user info store?
- 14:56Speaker 2: It's mainly in Etcetera's user info etc. Shadow, Secure password info, etc.
- 15:01Speaker 2: Group info and etcetera Shadow secure group info. Defaults for
- 15:06Speaker 2: new users come from at clog in dot DEFs.
- 15:08Speaker 1: And the commands to manage them.
- 15:10Speaker 2: User AD creates a user, User MOD modifies an existing user.
- 15:14Speaker 2: You can use options like EDES to change their shell
- 15:17Speaker 2: AOD for home directory, DAD them to supplementary groups. User
- 15:21Speaker 2: at deletes a user. Use ther option with user del
- 15:24Speaker 2: to remove their.
- 15:24Speaker 1: Home directory too important detail.
- 15:27Speaker 2: Yeah, Password username changes the user's password. You can also
- 15:30Speaker 2: use password batstin to pipe a password in maybe from
- 15:33Speaker 2: a script. Password atch l username locks an account, you
- 15:36Speaker 2: unlocks it ato E sets and expiration date.
- 15:38Speaker 1: Lots of control their end groups plant.
- 15:40Speaker 2: Group, AD, group, mod, group del. Simple enough. Users have
- 15:44Speaker 2: one primary group but can be members of many supplementary groups.
- 15:47Speaker 2: That's all defined in et cetera.
- 15:49Speaker 1: Group. Okay, what about getting root privileges when you need them.
- 15:52Speaker 2: Well, they're sue switch user. You can sue to become
- 15:54Speaker 2: root if you know the root password. But the more
- 15:57Speaker 2: common and generally better way.
- 15:59Speaker 1: Is pseudo right super rousers do Yeah.
- 16:02Speaker 2: It lets specific users run specific commands as route without
- 16:05Speaker 2: needing the root password. It's configured in et ceter Suitors
- 16:08Speaker 2: use the pseudo command to edit this safely, or by
- 16:11Speaker 2: adding files in et cetera suters dot and.
- 16:14Speaker 1: You can grant permissions to groups like the Wheel group exactly.
- 16:17Speaker 2: Often admins are just added to the Wheel group and
- 16:19Speaker 2: that group is given pseudo access in the configuration. You
- 16:22Speaker 2: can also allow passwordless pseudo for certain commands with the
- 16:25Speaker 2: no pay SSWD tag okay.
- 16:27Speaker 1: Flexible user environment files like Bash RCI.
- 16:31Speaker 2: Yeah, those control your shell environment, et Cetera profile and
- 16:33Speaker 2: etceterashard are system wide. Then each user has their own
- 16:37Speaker 2: Bash profile for login shells and augershar for interactive shells.
- 16:41Speaker 2: There's also etceeter profile dot d, which contains scripts run
- 16:44Speaker 2: at log in good place for system wide customizations.
- 16:47Speaker 1: Setting aliases, environment variables, that kind of thing exactly, okay,
- 16:50Speaker 1: storty deep dive partitions again.
- 16:53Speaker 2: Tools you've got f disc, which is older works well
- 16:56Speaker 2: for MBR discs. Then gie disc is for modern GPT
- 16:59Speaker 2: partition discs, and parted is another powerful tool works with
- 17:03Speaker 2: Both can be used interactively or scripted.
- 17:06Speaker 1: What can you do with them?
- 17:07Speaker 2: The basics Print the partition table, P create new partitions
- 17:11Speaker 2: and delete them D change the partition type to use
- 17:14Speaker 2: LDC the type codes like a E for Linux, LBM
- 17:17Speaker 2: eighty two for swap, write changes to disc w or
- 17:21Speaker 2: quit without saving Q.
- 17:22Speaker 1: And you mentioned needing to tell the kernel about changes.
- 17:25Speaker 2: Yes, crucial step after using f disc or g disc
- 17:28Speaker 2: or parted to change partitions on a disc that's in use,
- 17:31Speaker 2: the kunnel might not see the changes. Immediately, run part
- 17:34Speaker 2: probe to ask the kernel to reread the partition table
- 17:37Speaker 2: or just reboot.
- 17:38Speaker 1: Okay, reboot, got it. Formatting.
- 17:40Speaker 2: Once you have a partition, you need a filesystem. Use mkfs,
- 17:44Speaker 2: mkfs dot, XFS dev's day one formats that partition with
- 17:47Speaker 2: XFS or mkfs dot, ext fours dB two for.
- 17:50Speaker 1: EXT four and mounting making it usable.
- 17:53Speaker 2: Right, you mount the filesystem onto a directory a mount point.
- 17:57Speaker 2: For permanent mounts that happen at boot, you can figure
- 17:59Speaker 2: them in etcetera.
- 18:00Speaker 1: Snet what's in there?
- 18:01Speaker 2: Each line defines a mount the device, often by UUID,
- 18:05Speaker 2: the mount point directory, the filesystem type like x SpaceX
- 18:08Speaker 2: to four, NFS mount options, and then two numbers for
- 18:11Speaker 2: backup dump and filesystem check.
- 18:13Speaker 1: Order pass okay, and you find the UIDs with ball kid.
- 18:17Speaker 2: Great command shows uoids and filesystem types for all your
- 18:20Speaker 2: block devices. Using UIDs and haf STAB is better than
- 18:23Speaker 2: device names like devs to one because the device names
- 18:26Speaker 2: can sometimes change, but uaeds don't.
- 18:28Speaker 1: Good. Tip and manual mounting.
- 18:30Speaker 2: Mount device, mount point and mount mountpoint or device simple okay.
- 18:35Speaker 1: Now, LVM Logical Volume Manager sounds complicated.
- 18:38Speaker 2: It adds a layer, but it's incredibly flexible. The ideas
- 18:41Speaker 2: you take your physical desks or petitions and designate them
- 18:44Speaker 2: as physical volumes or pvs using PV create IPS. Then
- 18:47Speaker 2: you group one or more pvs together into a volume
- 18:50Speaker 2: group or VG using VG create. Think of the VG
- 18:53Speaker 2: as a pool of storage.
- 18:55Speaker 1: Space coolest space. Got it.
- 18:56Speaker 2: Finally, you carve out logical volumes or lvs from that
- 18:59Speaker 2: v G pool using lv create. These lvs are what
- 19:03Speaker 2: you actually format with a filesystem MKFS, dot XSS, div,
- 19:07Speaker 2: MYVGMLLV and.
- 19:08Speaker 1: Mount O so PV MIDG MELV miile V filesystem exactly.
- 19:12Speaker 2: You've got commands to display and manage each layer PB display, VV,
- 19:16Speaker 2: display V display VJE extend at PV to VG, lvextend
- 19:21Speaker 2: grow in LV, and the big benefit is resizing. You
- 19:24Speaker 2: can add another desk, make it a PV, add it
- 19:26Speaker 2: to the VG with VEG extend, and then grow an
- 19:28Speaker 2: existing LV within that VG using lvextend. After extending the LV,
- 19:33Speaker 2: you just need to resize the filesystem inside it.
- 19:35Speaker 1: How do you do that?
- 19:36Speaker 2: For XFS, it's XFS growths mount point. For x four
- 19:39Speaker 2: it's re sized two SVGLV. You can often do this
- 19:42Speaker 2: online without unmounting. That's huge flexibility.
- 19:45Speaker 1: Yeah, that sounds real useful. What's the autom mount ad off.
- 19:48Speaker 2: It's a service that automatically mounts filesystems, often network shares
- 19:51Speaker 2: like NFS, only when someone tries to access them and
- 19:53Speaker 2: unmounts them after a period of inactivity. Configured it in
- 19:56Speaker 2: at COUTO, dot master and related files.
- 19:58Speaker 1: Okay, handy for on demand access YEP networking time basics.
- 20:01Speaker 2: First, it addresses your systems address subnetmasks, defining the network size,
- 20:07Speaker 2: often in CIDR like twenty four and the default gateway
- 20:10Speaker 2: the router to reach other networks standard.
- 20:12Speaker 1: Stuff, and the main command now is IP.
- 20:14Speaker 2: Yes, the IP command is the modern tool. IP address
- 20:17Speaker 2: show replaces if configure that IP route show replaces Route I,
- 20:20Speaker 2: neighbor replaces ARP. It does a lot, so learn IP definitely.
- 20:24Speaker 2: You'll still use ping to test connectivity, trace route to
- 20:27Speaker 2: see the path packets take, and hostnamechial to view or
- 20:30Speaker 2: set the system's host name.
- 20:31Speaker 1: Where network settings stored.
- 20:33Speaker 2: RHBL nine uses Network Manager heavily. Connection profiles are stored
- 20:37Speaker 2: as files in Acceta Network Manager System connections.
- 20:40Speaker 1: How do you configure Network Manager several ways?
- 20:43Speaker 2: NMTI is the command line tool very powerful. Nmto me
- 20:47Speaker 2: gives you a text based menu interface simpler for some tasks,
- 20:49Speaker 2: and if you have a GUI, there's NM connection editor.
- 20:52Speaker 1: Choose your weapon.
- 20:53Speaker 2: DNS configued usually handled by Network Manager too, but the
- 20:56Speaker 2: resulting DNS server list ends up in ecresol dot com.
- 21:00Speaker 2: You can test DNS lookups with tools like dig or hosts.
- 21:03Speaker 1: Okay, secure remote access, SSH.
- 21:06Speaker 2: Absolutely essential s s username at host name, connects you securely,
- 21:09Speaker 2: SEP securely copies files, sepfil user at host dot path
- 21:13Speaker 2: and SFTP gives you an interactive secure FTP like session.
- 21:18Speaker 1: Secure alternatives to older tools like telnet and FTP exactly.
- 21:21Speaker 2: Don't use those anymore if you can avoid it. Firewall
- 21:24Speaker 2: RHTL uses Fireworld by default. It uses zones like public,
- 21:27Speaker 2: internal DMZ to apply different levels of trust and rules,
- 21:30Speaker 2: and it manages access using pre defined services like HTTP,
- 21:34Speaker 2: SEEPR specific port numbers.
- 21:35Speaker 1: How do you troll it?
- 21:36Speaker 2: Check status with system s system status Fireworld check if
- 21:40Speaker 2: enabled with system is enabled fireworld. The main command is
- 21:43Speaker 2: firewall cmd.
- 21:45Speaker 1: What can firewall cmd do?
- 21:46Speaker 2: Lots AD service remove servicesh AD port ADYADATCP remove port ADADTCP.
- 21:52Speaker 2: Use permanent to make changes stick after a reboot, but
- 21:55Speaker 2: then you need reload to apply them to the running
- 21:57Speaker 2: canfig list all shows the current rules.
- 21:59Speaker 1: For his zone. There's a guy too, yeah, firewall can
- 22:02Speaker 1: fig okay and making assets even more secure with.
- 22:04Speaker 2: Keys highly recommended. Generate a keypair on your client machine
- 22:08Speaker 2: with shosh keygen, then copy the public key IDRSA dot
- 22:12Speaker 2: pub or similar to the server using a shock of
- 22:14Speaker 2: eyed user at host.
- 22:16Speaker 1: What does spage copid do?
- 22:17Speaker 2: It automatically appends your public key to the sumprovised keys
- 22:20Speaker 2: file in the user's home directory on the server. Once
- 22:23Speaker 2: that's done, you can staution from your client without needing
- 22:25Speaker 2: a password because it verifies using your private key much
- 22:28Speaker 2: more secure.
- 22:29Speaker 1: Definitely sounds better than passwords. It is all right, broader
- 22:32Speaker 1: security topic.
- 22:33Speaker 2: Sell Linux Security Enhanced Linux. It's a mandatory access control
- 22:37Speaker 2: MAC system standard Linux permissions should I or not are
- 22:41Speaker 2: discretionary access control DAC. The user owns the file, they
- 22:45Speaker 2: decide permissions. SELinux adds another layer where policy decides what's allowed,
- 22:49Speaker 2: regardless of ownership.
- 22:50Speaker 1: How does it work modes?
- 22:51Speaker 2: It runs in one of three modes. Enforcing actively blocks violations,
- 22:56Speaker 2: permissive logs violations, but doesn't block or disabled off completely.
- 23:01Speaker 2: You check with get and force change temporarily with set
- 23:04Speaker 2: and force zero, permissive or set and force one. Enforcing
- 23:07Speaker 2: permanent change is in ETCeteras configure.
- 23:10Speaker 1: Okay, what does it actually control? Contexts?
- 23:13Speaker 2: Yeah? Everything, files, processes, ports, gets, and SELinux security context
- 23:17Speaker 2: It's like a labeled user, dot role, dot type That
- 23:20Speaker 2: level policy rules say things like a process with the
- 23:23Speaker 2: HTPDT type context can only write to files with the
- 23:26Speaker 2: HTPPD size content type context.
- 23:29Speaker 1: So it restricts what processes can do even if running
- 23:32Speaker 1: is root.
- 23:32Speaker 2: Especially if running is root or if a service gets compromised.
- 23:36Speaker 2: You manage file contexts with some manage f context to
- 23:38Speaker 2: set defaults and restore senecon to apply those defaults. J
- 23:43Speaker 2: con changes a context manually for a specific file, but
- 23:45Speaker 2: that might not survive.
- 23:46Speaker 1: A relabel okay and boollians.
- 23:48Speaker 2: Celinicx buollions are like on off switches for specific policies
- 23:52Speaker 2: like allow hggpd to connect to the network. Use getspool
- 23:55Speaker 2: a to list them and sets the boolean name on
- 23:58Speaker 2: or sets po bully name off to change them. Use
- 24:00Speaker 2: jash p with setspool to make the change persistent across reboots.
- 24:03Speaker 1: How do you troubleshoot Selenix issues?
- 24:05Speaker 2: Check the audit log usually var logatitatt it dot log.
- 24:08Speaker 2: The audit service lawns denials. The sealer tool part of
- 24:11Speaker 2: set tools can analyze these logs and often suggest restore
- 24:14Speaker 2: con or sets bool commands to fix the issue.
- 24:16Speaker 1: So first claub odd, then Selenics on top.
- 24:19Speaker 2: That's the idea. Layers of security.
- 24:21Speaker 1: Managing resources processes.
- 24:23Speaker 2: This is the classic command. Pso shows all processes in detail.
- 24:27Speaker 2: Ps axle shows even more. P s e Z is
- 24:30Speaker 2: useful to see the Sylenux context of processes, and TOP
- 24:34Speaker 2: gives you that. Real time interactive view shows cpu usage, memory,
- 24:39Speaker 2: running processes. Let's you sort kill processes.
- 24:41Speaker 1: Right there, very hand delid processes.
- 24:43Speaker 2: Kill pid sends a signal, usually sigterm terminate politely by
- 24:47Speaker 2: default kill naff nine pid sends sigkill force kill uses
- 24:52Speaker 2: last resort, kill process name kills all processes with that name.
- 24:56Speaker 1: Signal SIGTERMI yeah.
- 24:58Speaker 2: Sig up often tells a demon to reload its configuration.
- 25:00Speaker 2: Sigin is what cool plus c sends. Sigteruramasks nicely sick
- 25:04Speaker 2: kill forces it.
- 25:05Speaker 1: Controlling priority nice re nice.
- 25:06Speaker 2: Nice starts to command with a specific scheduling priority. Higher
- 25:09Speaker 2: number means lower priority, more nice to others. Re nice
- 25:12Speaker 2: changes the priority of an already running process. Okay.
- 25:15Speaker 1: Monitoring over time.
- 25:16Speaker 2: The system package provides SAR, System Activity Reporter and IOSTAT.
- 25:21Speaker 2: SAR collects historical data on CPU memory, IO, network, et cetera.
- 25:25Speaker 2: IOSTAT focuses on disc iostats great for tracking performance.
- 25:29Speaker 1: Trends, scheduling future tasks. Contron yep chron.
- 25:32Speaker 2: Is for recurring tasks users edit their own schedules with crontab.
- 25:37Speaker 2: The format specifies minute, our day of month, month, day
- 25:40Speaker 2: of week, and then.
- 25:41Speaker 1: The command system wide chron jobs.
- 25:42Speaker 2: Those go in at cedacron or as separate files and
- 25:45Speaker 2: etceteracron dot D. There are also directories like etcetercron dot hourly,
- 25:49Speaker 2: etceteracron dot daily, et cetera, where you just drop scripts
- 25:51Speaker 2: you want run at those intervals.
- 25:53Speaker 1: Simple enough. What about one off tasks.
- 25:56Speaker 2: At schedules A command to run once at a specific time,
- 25:59Speaker 2: like at ten thirty pm tomorrow. You type the commands
- 26:01Speaker 2: press crash all plus d at Q list pending jobs
- 26:04Speaker 2: at scheckblurm removes them.
- 26:06Speaker 1: Handy for delayed tasks. Yeah. Basic scripting BASH scripts.
- 26:09Speaker 2: Super common for automation. Starts with the shebang line hashtag
- 26:12Speaker 2: dot bin. Bash use variables, command, substitution, command, or backticks
- 26:15Speaker 2: to capture output control structures like if conditioned then and
- 26:19Speaker 2: down fire or four I in list at ton testing
- 26:21Speaker 2: conditions with test or ton right, and scripts can take
- 26:24Speaker 2: arguments one two dollars, et cetera. The exit command sets
- 26:28Speaker 2: the exit status zero usually means success.
- 26:31Speaker 1: Logging where do messages go?
- 26:32Speaker 2: Traditionally cislog handles it config and as she can. Ra
- 26:36Speaker 2: sizelog dot com defines rules based on facility like kernel mail,
- 26:41Speaker 2: user and priority info warning error to send messages to files,
- 26:45Speaker 2: usually under varlog like varlog messages varlog secure.
- 26:48Speaker 1: But systems has its own journal yes.
- 26:50Speaker 2: And journal lichells the tool to read it. It captures
- 26:53Speaker 2: syslog messages plus output from services managed by system. By default,
- 26:57Speaker 2: it might only store logs in memory, but you can
- 26:59Speaker 2: configure you're persistent logging to varlog journal.
- 27:02Speaker 1: So check both varlog files and journal ductel good idea. Yeah. Finally,
- 27:05Speaker 1: containers big topic now huge.
- 27:08Speaker 2: The guide gives an intro. Containers are like lightweight isolated
- 27:11Speaker 2: environments for apps. They share the host OS kernel, unlike vms,
- 27:15Speaker 2: which emulate whole hardware stacks.
- 27:17Speaker 1: So they're faster, use fewer resources.
- 27:19Speaker 2: Generally yes, much faster startup, lower overhead. Great for developers
- 27:23Speaker 2: packaging apps and dependencies, and for operations deploying them consistently
- 27:26Speaker 2: drives DevOps well.
- 27:27Speaker 1: What makes them work? Names basis true groups.
- 27:30Speaker 2: Those are key Linux kernel features. Name spaces isolate things
- 27:34Speaker 2: like process IDs, network stacks, user IDs, C groups limit
- 27:39Speaker 2: and manage resource usage, CPU memory and c Linux helps
- 27:44Speaker 2: provide security separation between containers.
- 27:46Speaker 1: And the hosts, and the tool in RHL nine is Podman.
- 27:49Speaker 2: Yes, Podman is the main command line tool for working
- 27:52Speaker 2: with containers and container images. It's designed to be compatible
- 27:56Speaker 2: with Docker commands, which helps.
- 27:58Speaker 1: So containers aren't just lighter vms about packaging and portability too.
- 28:01Speaker 2: Absolutely package your app and all its libraries, dependencies, everything
- 28:06Speaker 2: into an image. That image runs the same way on
- 28:09Speaker 2: your laptop on a test server in the cloud. That
- 28:11Speaker 2: consistency is a massive.
- 28:13Speaker 1: Benefit, game changer. As the guide says, Okay, Podman commands.
- 28:16Speaker 2: A lot overlap with Docker. If you know that. Podman
- 28:18Speaker 2: run imagine name creates and starts a container. Podman tuss
- 28:21Speaker 2: list running containers a forall, pod Men Stop Container aid,
- 28:24Speaker 2: Podman start Container aide, podmn.
- 28:25Speaker 1: Restart Managing container life cycle.
- 28:28Speaker 2: Right, Podman pom and canterrad removes a stop container. Podman
- 28:31Speaker 2: Images lists images you have locally. Podman vian image.
- 28:35Speaker 1: Removes an image getting images.
- 28:36Speaker 2: Podman pull imagine name downloads from a registry. Podman push
- 28:40Speaker 2: uploads your own images. Podman's search term looks for images
- 28:44Speaker 2: in registries.
- 28:45Speaker 1: What about running commands inside or copying files?
- 28:48Speaker 2: Podman exec it containered command runs a command inside a
- 28:52Speaker 2: running container like Bash to get a shell. Podman sipe
- 28:55Speaker 2: copies files between the host and container. Podman logs shows
- 28:59Speaker 2: contains output inspecting things, Podman inspect container it or image
- 29:04Speaker 2: eyed gives you tons of detailed Jason info. Podman tag
- 29:08Speaker 2: lets you give an image an alias or new name,
- 29:11Speaker 2: and Podman version shows versions.
- 29:13Speaker 1: Can you run containers like system services? Yes.
- 29:16Speaker 2: Podman can generate system unit files for containers using Podman
- 29:19Speaker 2: generate system then you can manage them with system sucleshall
- 29:22Speaker 2: user often run as non root user services.
- 29:24Speaker 1: Persistent data containers are ephemeral by default.
- 29:27Speaker 2: Right. If you want data to survive container restarts, you
- 29:29Speaker 2: need to mount host directories into the container using the
- 29:32Speaker 2: ACV option with Podman run like defvpathon hoost dot pathing
- 29:36Speaker 2: container Okay.
- 29:37Speaker 1: And registries where do images come from?
- 29:39Speaker 2: They're like app stores for container images. Docker hub is
- 29:43Speaker 2: the big public one. Red Hat has its own registry
- 29:46Speaker 2: registrate dot red hat dot Io. Companies often run private
- 29:50Speaker 2: ones too.
- 29:51Speaker 1: Phew, Okay, that was a lot.
- 29:54Speaker 2: It really is a broad landscape, isn't it. RHL nine
- 29:58Speaker 2: administration covers so much from the absolute basics right up
- 30:03Speaker 2: to containers.
- 30:03Speaker 1: But you start to see how it connects. Right. Yeah,
- 30:06Speaker 1: command line skills are fundamental for almost everything.
- 30:08Speaker 2: Absolutely, managing files, users, services, even containers often comes back
- 30:13Speaker 2: to the command line.
- 30:13Speaker 1: And maybe things clicked a bit more like how trim
- 30:16Speaker 1: new permissions and Cylenix contexts work together for security, or how.
- 30:20Speaker 2: System changed the whole boot and service management game compared
- 30:24Speaker 2: to older systems.
- 30:24Speaker 1: Yeah, or the flexibility LVM gives you for storage.
- 30:27Speaker 2: Hopefully some of those aha moments happened.
- 30:30Speaker 1: But this deep dive, it's really just scratching the surface.
- 30:32Speaker 2: Oh for sure, the guide lays it all out, but
- 30:34Speaker 2: you really learn by doing getting those vms set up,
- 30:37Speaker 2: trying the commands, breaking things, fixing things. That's where mastery
- 30:41Speaker 2: comes from.
- 30:42Speaker 1: So definitely encourage you, the listener, to get hands on experiment.
- 30:47Speaker 1: Focus on the areas you need most, maybe storage, maybe networking,
- 30:50Speaker 1: maybe containers.
- 30:51Speaker 2: Whatever fits your goals.
- 30:52Speaker 1: So here's a final thought, today's one. With containers becoming
- 30:55Speaker 1: so dominant, how do you see these fundamental OS admin
- 30:59Speaker 1: skills evolving? Hmmm, will mastery of the command line and
- 31:02Speaker 1: deep system knowledge still be as crucial, or will higher
- 31:06Speaker 1: level tools and automation, abstract, more of it away. Where's
- 31:09Speaker 1: that balance heading.
- 31:10Speaker 2: That's a really interesting question. The tools change, but understanding
- 31:14Speaker 2: what's happening underneath that seems like it will always be valuable.
- 31:17Speaker 2: Definitely something to think about as you keep learning. RGL
- 31:20Speaker 2: nine