r/redhat • • 25d ago

Move cert discussions to r/redhat_certification

84 Upvotes

Hello r/redhat Redditors!

TL:DR - post Red Hat certification posts in r/redhat_certification

A while back we created r/redhat_certification for Red Hat cert discussions. The sheer volume of certification posts was drowning r/redhat. As a result of some of you moving over there, we’ve seen more general Red Hat posts and engagement, which is the goal of this community, to talk about Red Hat and Red Hat products. Yay! Go us!

But… people still post a lot of certification content here. The mod team is going to be taking more actions to further shift certification posts to r/redhat_certification.

Several of us are also mods in r/redhat_certification, including me who has regular contact with the Red Hat Training and Certification team who writes the training and makes the exams. I was also a member of this team between 2001 and 2019. So your posts will still be moderated and answered in r/redhat_certification.


r/redhat • • 2h ago

Software Engineer ( UI developer ) Intern :APAC region

2 Upvotes

I recently interviewed for the above role at redhat and I think it pretty much went well but I haven’t heard back from the recruiter. I had mailed the person but I think they are ghosting me. Any suggestions ?


r/redhat • • 15h ago

What Is the Difference Between Last Report and Last Check-In in Red Hat Satellite?

Thumbnail
youtu.be
2 Upvotes

Hello

Let's learn today what the difference is between "Last Report" and "Last Checkin" or "Last Seen" on Red Hat Satellite!

Enjoy it!

Wally


r/redhat • • 1d ago

Demo: Lightwell + AAP - Automated CI/CD from PR to Production

Thumbnail
youtu.be
13 Upvotes

I recorded a demo showing the full path: a patched Python dependency goes from a pull request through CI and development testing, then human approval, a ServiceNow change, production deployment, and a smoke test. If something fails, the workflow can roll back to a snapshot.

It uses automation orchestrator, Gitea, ServiceNow, and Lightwell. Here’s the video: https://www.youtube.com/watch?v=4iZCS4atxHQ


r/redhat • • 1d ago

Hosting multiple website hosts on the same server

3 Upvotes

Hopefully I'm asking this correctly. All the instructions I can find online for hosting multiple sites talks about editing the hosts file with the domains of the websites. My problem is that I'm setting this server up to be a replacement for a server that's currently serving those websites, so I can't use the domains. On Windows in IIS you can bind to a specific port and then in a browser on the local network go to <ip address>:<port> to view the site. Is there something similar in RedHat?

I've got two folders setup and wordpress files in two different places, but I need to be able to GET to each site to finish the wordpress setup. I can get to the first by just going to the IP address, but I have no idea how to get to the second. Nothing I can find refers to using ports and I'm not sure what else to even try (or search for). Can anyone point me in the right direction? Doesn't have to be hosts file or ports; just how do I view multiple websites on the same server when domain names aren't an option?


r/redhat • • 1d ago

Leapp Upgrade Rollback from 8.10 to 7.9

3 Upvotes

I recently upgraded my system from RHEL 7.9 to RHEL 8.10 using the leapp upgrade tool, but I now need to roll back to RHEL 7.9 Could you please provide guidance on the best approach to achieve this, including any specific procedures I should follow to ensure a smooth rollback? Any advice on preserving data and configurations during this process would be greatly appreciated.


r/redhat • • 2d ago

Encrypting and Signing Data with GPG on Linux from Into the Terminal Ep. 201

14 Upvotes

The ability to send a message across the public internet—and still have it protected against prying eyes—is a problem as old as communication. Depending on your needs and the medium, there are a lot of possible solutions, but one of them has become synonymous with public key cryptography among Linux users and administrators: GPG. The GNU Privacy Guard can take any text or data and encrypt it into a block of indecipherable text that only the intended recipient can decrypt. In today's episode, Scott and Nate walk through the ins and outs of GPG! Watch the full episode here or practice in the interactive labs.

The Essentials

When working with GPG, there are really only a few core concepts you need to understand: Generating your keypair, sharing your public key, encrypting data for someone, and decrypting data meant for you.

Command What it does
gpg --gen-key Generates a new GPG public/private keypair for your user
gpg --export <KeyID> Exports your public key so you can share it with others
gpg --import <File> Imports someone else's public key into your GPG keyring
gpg --encrypt <File> Encrypts a file using the intended recipient's public key
gpg --decrypt <File> Decrypts a file using your own private key

Advanced Features

1. The Keypair (Public vs. Private)

When you run gpg --gen-key, GPG creates two keys: * Public Key: This is meant to be shared with the world! Anyone who has this key can use it to encrypt a file that only you can open. * Private (Secret) Key: This never leaves your machine. It is used to decrypt the files that others have encrypted using your Public Key. It is also protected by a passphrase.

2. Exporting and ASCII Armoring

By default, when you export your public key using gpg --export 87D1B835 > mykey.pub, GPG creates a binary file. While that works fine for transferring files between servers, it's not great for sharing over email or web pages. Instead, you can export it using an ASCII Armor block (--armor or -a). This converts the binary key into a text block starting with -----BEGIN PGP PUBLIC KEY BLOCK----- that you can safely copy and paste into emails, text files, or even upload to public Key Servers!

3. Encrypting Data

Let's say Mary wants to send a sensitive file to Joe. 1. Mary imports Joe's public key into her keyring: gpg --import joe.gpg.pub 2. Mary encrypts the file for Joe: gpg --encrypt sensitive-data.txt 3. GPG will ask Mary who she is encrypting the file for. She types Joe's email address (which matches his public key). 4. GPG outputs a new file: sensitive-data.txt.gpg. This file is now entirely unreadable to anyone except Joe—even Mary can't read it anymore once she deletes the original file, because it was encrypted with Joe's public key, not hers!

4. Decrypting Data

When Joe receives sensitive-data.txt.gpg, all he has to do is run: gpg --decrypt sensitive-data.txt.gpg GPG will detect that the file was encrypted for him. It will prompt Joe for his passphrase to unlock his private key, and once authenticated, it will decrypt the file and print the output to standard out. (He can easily redirect this output to save it as a new file: gpg --decrypt sensitive-data.txt.gpg > sensitive-data.txt).

Quick Reference Card

```bash

Generate a new GPG Keypair

gpg --gen-key

Export your public key to share with someone else

gpg --export -a <Your-Key-ID> > my_public_key.asc

Import someone's public key into your keyring

gpg --import their_public_key.asc

Encrypt a file (you will be prompted for the recipient's email/ID)

gpg --encrypt file.txt

Decrypt a file using your private key (and save it)

gpg --decrypt file.txt.gpg > file.txt ```

Links & Resources


Into the Terminal is a show dedicated to helping you grow your knowledge of critical administration skills for Red Hat Enterprise Linux. Whether you are new to Linux or new to RHEL, join us for a hands-on look at commands, processes, and tools.


r/redhat • • 2d ago

Developer-first innovation: Reducing technical debt with Red Hat Enterprise Linux

Thumbnail
redhat.com
8 Upvotes

Managing software teams means balancing 2  conflicting priorities: developers want freedom to pick their tools, while leadership needs security and stability. When every team runs a different operating system (OS) distribution, developers end up spending valuable sprint hours managing infrastructure instead of shipping code. The prevailing and most sustainable model across large enterprises is to standardize on a select few enterprise-grade OSs to support manageable governance, consistent security controls, and clear support tiers. With a unified operating environment, engineering leaders can protect developer autonomy while cutting unexpected maintenance and helping teams ship faster.


r/redhat • • 3d ago

Passed RHCSA on first try after six days of studying with a 237/300!

50 Upvotes

I feel like I pulled this off by the skin of my teeth lol. I used the Alta3 Academy for my main study guide and some YouTube videos. I didn't use a book or anything, just rote memorization of commands and file locations.


r/redhat • • 2d ago

Does anyone have the Red Hat Lab: Control Access to Files 2026, updated line by line of code?

0 Upvotes

Lab: Control Access to Files

Set standard permissions on files and interpret the security effects of different permission settings.

Outcomes

  • Create a directory where users can work collaboratively on files.
  • Create the required file and directory structure, assigning access rights as requested.

As the student user on the workstation machine, run the following lab command to prepare your environment for this exercise, and to ensure that all required resources are available:

student@workstation:~$ 
lab start perms-review

Instructions

The lab start command creates the dev1 and dev2 users, who are members of the techdocs group. The command also creates the dbadmin1 user, who does not belong to this group.

In this activity, you create the techdocs collaborative directory and configure it as follows:

  • In the techdocs directory, users add files and subdirectories for the exclusive use of the techdocs group. Other users on the system are not allowed to have any access to the directory.
  • All new content created in the directory must inherit the techdocs group ownership.
  • The techdocs directory must be configured so that only the owner of a file can delete it.

Ensure that the user file creation mask is configured persistently for the dev1 and dev2 users to enable group collaboration and to prohibit all other users from accessing their data.

To validate your configuration of the techdocs directory, create the following subdirectories and files as the dev1 and dev2 users to ensure that their level of access complies with requirements:

Directory Owner Group Files
dev1 dev1 techdocs dev1.txt
dev1.log
dev1.cfg
dev2 dev2 techdocs dev2.txt
dev2.log
dev2.cfg
  1. Log in to the serverb machine as the student user, and then switch to the root user.
    1. Log in to the serverb machine as the student user and switch to the root user. Use student as the password.student@workstation:~$ ssh student@serverb ...output omitted... [student@serverb ~]$ sudo -i [sudo] password for student: student [root@serverb ~]#
  2. Create the techdocs collaborative directory under the /home directory. Set the group ownership of the directory to the techdocs group, grant full permissions to the user and the owning group, and disallow all access for others on the system. Configure the directory so that all new content is owned by the techdocs group and only file owners can delete their files.
    1. Create a /home/techdocs directory.[root@serverb ~]# mkdir /home/techdocs
    2. Change the group ownership for the /home/techdocs directory to the techdocs group.[root@serverb ~]# chown :techdocs /home/techdocs
    3. Set read, write, and execute permissions for user and group, and no permission for others on the /home/techdocs directory.[root@serverb ~]# chmod 770 /home/techdocs
    4. Set the special SGID permission on the directory to ensure that all new content inherits the techdocs group ownership.[root@serverb ~]# chmod g+s /home/techdocs
    5. Assign the sticky bit to the /home/techdocs directory.[root@serverb ~]# chmod o+t /home/techdocs
    6. List the directory's permissions.[root@serverb ~]# ls -ld /home/techdocs drwxrws--T. 2 root techdocs 6 Oct 6 20:40 /home/techdocs
  3. Persistently configure the user file creation mask in the shell for the dev1 and dev2 users so that group members can collaborate, but other users cannot access their data.
    1. Switch to the dev1 user and set the umask attribute of the shell to 007.[root@serverb ~]# su - dev1 [dev1@serverb ~]$ umask 007
    2. Configure the umask value persistently by updating the ~/.bashrc startup file for Bash.[dev1@serverb ~]$ echo "umask 007" >> ~/.bashrc
    3. To test the directory configuration, create the specified dev1 subdirectory in the /home/techdocs team directory, and create the dev1.txt, dev1.log, and dev1.cfg files.[dev1@serverb ~]$ cd /home/techdocs/ [dev1@serverb techdocs]$ mkdir dev1 [dev1@serverb techdocs]$ touch dev1/dev1{.txt,.log,.cfg}
    4. List the contents of the dev1 directory.[dev1@serverb techdocs]$ ls -l dev1* total 0 -rw-rw----. 1 dev1 techdocs 0 Oct 6 20:43 dev1.cfg -rw-rw----. 1 dev1 techdocs 0 Oct 6 20:43 dev1.log -rw-rw----. 1 dev1 techdocs 0 Oct 6 20:43 dev1.txt
    5. Exit from the dev1 user shell. Switch to the dev2 user.[dev1@serverb techdocs]$ exit logout [root@serverb ~]# su - dev2 [dev2@serverb ~]$
    6. Set the umask attribute of the user's shell to 007 and configure it persistently.[dev2@serverb ~]$ umask 007 [dev2@serverb ~]$ echo "007" >> ~/.bashrc
    7. Create the specified dev2 subdirectory in the /home/techdocs team directory along with the necessary files.[dev2@serverb ~]$ cd /home/techdocs/ [dev2@serverb techdocs]$ mkdir dev2 [dev2@serverb techdocs]$ touch dev2/dev2{.txt,.log,.cfg}
    8. List the contents of the dev2 directory.[dev2@serverb techdocs]$ ls -l dev2* total 0 -rw-rw----. 1 dev2 techdocs 0 Oct 6 21:08 dev2.cfg -rw-rw----. 1 dev2 techdocs 0 Oct 6 21:08 dev2.log -rw-rw----. 1 dev2 techdocs 0 Oct 6 21:08 dev2.txt
  4. Verify that users in the techdocs group can create and collaborate on content in the /home/techdocs directory. As the dev2 user, modify the /home/techdocs/dev1/dev1.log file with the following content: Logging started.
    1. Update the /home/techdocs/dev1/dev1.log file as described, and then display the file content.[dev2@serverb techdocs]$ echo "Logging started" >> dev1/dev1.log [dev2@serverb techdocs]$ cat dev1/dev1.log Logging started
  5. Verify that members of the techdoc group can delete only their own files. As the dev2 user, try to delete the /home/techdocs/dev1 directory, which should fail.
    1. As the dev2 user, try to delete the /home/techdocs/dev1 directory. This attempt fails because the sticky bit is set on the techdocs directory.[dev2@serverb techdocs]$ rm -rf dev1 rm: cannot remove 'dev1': Operation not permitted
  6. Verify that only users in the techdocs group can access the /home/techdocs collaborative directory. As the dbadmin1 user, try to access the /home/techdocs directory, which should fail.
    1. Exit from the dev2 user shell. Switch to the dbadmin1 user. Change to the /home/techdocs directory.[dev2@serverb techdocs]$ exit logout [root@serverb ~]# su - dbadmin1 [dbadmin1@serverb ~]$ cd /home/techdocs/ -bash: cd: /home/techdocs/: Permission denied [dbadmin1@serverb ~]$
    2. Exit from the dbadmin1 user shell.[dbadmin1@serverb ~]$ exit logout [root@serverb ~]#
  7. After completing the tasks of this activity, return to the workstation machine as the student user.[root@serverb ~]# exit logout [student@serverb ~]$ exit Connection to serverb closed. student@workstation:~$

Evaluation

As the student user on the workstation machine, use the lab command to grade your work. Correct any reported failures and rerun the command until successful.

student@workstation:~$ 
lab grade perms-review

Finish

On the workstation machine, change to the student user home directory and use the lab command to complete this exercise. This step is important to ensure that resources from previous exercises do not impact upcoming exercises.

student@workstation:~$ 
lab finish perms-review

r/redhat • • 3d ago

Advice on how to set up

3 Upvotes

Hey everyone, I am sophomore in college and I recently started studying for the rhcsa. Though recently I found out that RH does not have a testing center in Arizona. I was wondering how should I go about this because as of right now I only have a laptop, webcam and mouse. Was wondering what else do I need as I also live in a really noisy apartment.


r/redhat • • 5d ago

Passed Red Hat certified architect in EL without RHLS

55 Upvotes

I passed 5 exam of Red Hat certified architect in EL (EX200, EX342, EX442, EX415, EX210) within a year (to be more precise, it is within 7 months, all passed on first attempt) while working at a telco company, and I never bought a RHLS.

My strategy is simple: Red Hat give us a very detailed documentation website and practical issue/guide in knowledgebase, while my daily work served as the ideal practice ground. For any exam, I review its official objectives, searching related title/section in documentation/knowledgebase. I also evaluate how to apply these techniques to a production environment—determining what works, what doesn't, and why.

For example, in EX442 exam, there is a tuning kernel params objectives, just search for 'optimize kernel parameters site: docs.redhat.com' in google, and I review it for my production system, check how it should be with our load requirement to tune)

To prepare, I self hosted a RHOSP cluster on a staging system on my company. the other day I host a vanilla kubernetes cluster, in an air-gap environment (my company do not use RHOSP but a customized Openstack with dpdk for high performance; and no Openshift as we running a self-custom Kubernetes distro tho). Tho corporate work and production issues make me rarely use the lab, I suggest people trying to host a lab themselves as installing experience helped a lot to understand the system.

Once again, thanks for the detailed documentation, RedHat. They are truly mercy to make RHLS is just optional, and no need any paid resource to pass their exam.


r/redhat • • 4d ago

How is sde intern life at red hat banglore

2 Upvotes

I recently got selected for Sde Intern at red hat Bangalore office. Its an on campus intership. I was wondering how is the day to day life . What is conversion rate for ppo.


r/redhat • • 5d ago

EX342, EX362 or EX358 next, with 1-2 months to prepare?

13 Upvotes

I just passed EX380, which makes six Red Hat certs so far (RHCSA, RHCE, EX188, EX280, EX415, EX380). I've done a few OpenShift ones now, and since I'm 20 and still a student, I want to branch out and try other areas of RHEL.

I was planning on Ceph (EX260), but it's been retired. I'm on a legacy RHCA exception, so one more exam before the end of this year completes my RHCA. I want to pick one and grind it properly. I'm deciding between the ones on current RHEL versions:

  • EX342 (Troubleshooting, RHEL 10.2)
  • EX362 (Identity Management, RHEL 9)
  • EX358 (Services Management and Automation, RHEL 9.4)

For anyone who's taken any of these: is 1-2 months of labbing realistic, and which would you pick in my place? If there's another RHCA-eligible exam you think is easier to pass in that time, I'm open to that too. The priority is getting the RHCA done this year. Next year I'm planning to get into OpenStack, since there is an opportunity for me there. (I'd have taken OpenStack this year, but I found the CL210 material really hard, and the book seems quite outdated next to current RHOSO, so I'm not confident enough to pass EX210 by December.)

I'm not expecting to pass first try and I'm fine with a retake. Thanks!


r/redhat • • 5d ago

Using on-premise Red Hat Lightspeed capabilities to monitor vulnerabilities and apply advisor remediations

Thumbnail
redhat.com
6 Upvotes

Managing vulnerabilities across a fleet of Red Hat Enterprise Linux (RHEL) systems is a continuous challenge. Between tracking Common Vulnerabilities and Exposures (CVEs), prioritizing by business risk, planning RHEL upgrades, and remediating issues, operations teams juggle multiple tools and workflows daily. Red Hat Lightspeed brings a greater level of situational awareness into your on-premise environment to help you discover, prioritize, and fix security and other issues, without your system data ever leaving your network.

In a previous blog post we’ve outlined how to install Red Hat Lightspeed on premise, and in this post, we'll talk about what capabilities on-premise Red Hat Lightspeed provides and how you use it. 


r/redhat • • 6d ago

💩 Failed RHCSA with 111/300, retook it 3 days later and got 300/300. Here's what went wrong the first time.

Thumbnail
35 Upvotes

r/redhat • • 7d ago

Did I find the right subreddit for this driver?

Post image
12 Upvotes

r/redhat • • 7d ago

How to Choose & Apply the Right Tuning Profile in Red Hat Satellite

Thumbnail
youtube.com
11 Upvotes

Hello

Whenever you bump your resources on Red Hat Satellite server, is there anything else you have to do? The answer is Yes, and you will see on this video what should be your next step.

Enjoy it!

Wally


r/redhat • • 7d ago

Looking for an EX200 Discount voucher in Private please

Thumbnail
1 Upvotes

r/redhat • • 8d ago

RHEL 10.2 kernel updates/repo broken?

14 Upvotes

Edit: This was resolved by this morning ET at least.

Seeing this on multiple systems and subscriptions...it seems to be trying to update SOME kernel packages to build 211.63.1, but kernel and kernel core do not appear to be updated in the repo and are at 211.62.1, so the updates fail.

Anyone else seeing it? Cleared the cache, etc.

# dnf update

Updating Subscription Management repositories.

Red Hat Enterprise Linux 10 for x86_64 - AppStream (RPMs) 614 kB/s | 6.7 MB 00:11

Red Hat Enterprise Linux 10 for x86_64 - BaseOS (RPMs) 23 MB/s | 98 MB 00:04

Last metadata expiration check: 0:00:05 ago on Tue 06 Oct 2026 06:25:19 PM EDT.

Error:

Problem 1: cannot install the best update candidate for package kernel-modules-6.12.0-124.8.1.el10_1.x86_64

- nothing provides kernel-uname-r = 6.12.0-211.63.1.el10_2.x86_64 needed by kernel-modules-6.12.0-211.63.1.el10_2.x86_64 from rhel-10-for-x86_64-baseos-rpms

Problem 2: cannot install the best update candidate for package kernel-modules-6.12.0-211.62.1.el10_2.x86_64

- nothing provides kernel-uname-r = 6.12.0-211.63.1.el10_2.x86_64 needed by kernel-modules-6.12.0-211.63.1.el10_2.x86_64 from rhel-10-for-x86_64-baseos-rpms

Problem 3: cannot install the best update candidate for package kernel-modules-core-6.12.0-124.8.1.el10_1.x86_64

- nothing provides kernel-uname-r = 6.12.0-211.63.1.el10_2.x86_64 needed by kernel-modules-core-6.12.0-211.63.1.el10_2.x86_64 from rhel-10-for-x86_64-baseos-rpms

Problem 4: cannot install the best update candidate for package kernel-modules-core-6.12.0-211.62.1.el10_2.x86_64

- nothing provides kernel-uname-r = 6.12.0-211.63.1.el10_2.x86_64 needed by kernel-modules-core-6.12.0-211.63.1.el10_2.x86_64 from rhel-10-for-x86_64-baseos-rpms

Problem 5: cannot install the best update candidate for package kernel-modules-extra-6.12.0-124.8.1.el10_1.x86_64

- nothing provides kernel-uname-r = 6.12.0-211.63.1.el10_2.x86_64 needed by kernel-modules-extra-6.12.0-211.63.1.el10_2.x86_64 from rhel-10-for-x86_64-baseos-rpms

Problem 6: cannot install the best update candidate for package kernel-modules-extra-6.12.0-211.62.1.el10_2.x86_64

- nothing provides kernel-uname-r = 6.12.0-211.63.1.el10_2.x86_64 needed by kernel-modules-extra-6.12.0-211.63.1.el10_2.x86_64 from rhel-10-for-x86_64-baseos-rpms

(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)


r/redhat • • 9d ago

Using grep, sed, and awk in the real world — Become an expert at text manipulation from Into the Terminal Ep. 200

92 Upvotes

Linux has a lot of powerful tools built right in, so many little tricks that you can leverage to make your job easier. But few of them compare to the wizardry that is the combination of grep, sed, and awk. With these three tools you can accomplish almost anything that has to do with text manipulation! In our 200th episode of Into the Terminal, Nate and Scott walk you through their favorite moves with these ancient and powerful tools. Watch the full episode here or practice your skills in the interactive labs.

The Essentials

Before you write a custom Python or Bash script to parse a CSV or log file, ask yourself if you can just solve it in one line with the classics:

Command What it does
grep Filters text to show only lines containing a specific pattern
sed The Stream Editor — manipulates text in-stream (e.g., find and replace)
awk A full text-processing language, incredible for isolating columns and fields of data
zcat Functions exactly like cat, but automatically uncompresses .gz files on the fly

Advanced Features

Leveling Up Your grep Game

Everyone knows grep <string> <file>, but a few flags can make it exponentially more useful when hunting down errors across a system: - grep -v "Console" file.csv: The reverse grep. Shows you every line that does not contain the match. - **grep -i "error" file.csv: Case-insensitive matching. It will match "error", "Error", and "ERROR". - **grep -r -i "error" /var/log/: The recursive grep. This is perfect when you know an error occurred, but you have no idea which log file caught it. It will search every file in the directory tree and prepend the match with the filename where it was found!

The Power of sed for Find and Replace

sed is often used to strip out useless data before handing it off to another command. Example: You have a CSV file where the last column is full of literal null strings, sometimes with trailing commas.

You can strip the word "null" with standard sed regex: grep "Console" lab-data.csv | sed -e 's/null//g'

To remove the word "null" and the optional trailing comma, we can use Extended Regex (-E) and chain multiple expressions (-e): grep "Console" lab-data.csv | sed -E -e 's/null,?//g' -e 's/,$//g'

Pro Tip: To apply these edits permanently to the file itself instead of just printing them to standard output, use the -i (in-place) flag: sed -i -E ... file.csv

Field Manipulation with awk

If your data has columns (like a space-separated log file or a comma-separated CSV), awk is your best friend.

Extracting specific columns: cat httpd_access.log | awk '{print $1}' This isolates just the very first column of data (usually the IP address in an Apache log). By default, awk separates fields by spaces, but you can define a custom delimiter with -F: cat httpd_access.log | awk -F'- -' '{print $2}'

Working from the end of the line: Sometimes lines are different lengths, making it impossible to count from the left. awk provides the NF (Number of Fields) variable, letting you select columns from the right! - Print the very last column: awk '{ print $(NF) }' - Print the second-to-last column: awk '{ print $(NF-1) }'

Quick Reference Card

```bash

Read a compressed log file and find all occurrences of "root"

zcat secure_sample.gz | grep root

Recursively search all log files for "error", ignoring case

grep -r -i "error" /var/log/

Find and replace "null" with an empty string in-place

sed -i -e 's/null//g' lab-data.csv

Print only the first column of a space-separated file

cat httpd_access.log | awk '{print $1}'

Print the last column of a space-separated file

cat httpd_access.log | awk '{ print $(NF) }'

Chain them together! Find GET requests and print the second field based on a custom delimiter

cat httpd_access_sample | awk -F'- -' '{print $2}' | grep GET ```

Links & Resources


Into the Terminal is a show dedicated to helping you grow your knowledge of critical administration skills for Red Hat Enterprise Linux. Whether you are new to Linux or new to RHEL, join us for a hands-on look at commands, processes, and tools.


r/redhat • • 8d ago

I'm thinking in building a Linux time travel tool.

4 Upvotes

NOTE: THIS IS NO IA SLOP. IS AN HONEST QUESTION.

Have you ever needed to see what processes were consuming the most memory (ps, memstat) at the exact date and time the issue appeared?

Ever needed to see what open files (lsof) or network connections (ss) a process had just before the outage?

Ever wanted to find what was the state of a process (ps, pidstat) seconds before OOM killer finished it?

Maybe you have experienced this pattern: something goes wrong overnight (connections refused, disk fills and then gets cleaned, a process eats memory and exits). Alerts go off and Prometheus shows the memory and cpu spikes but by the time anyone looks into the system, the server looks healthy. ss, lsof, ps and even a fresh sosreport show the current state, not when the issue was active. You look into the logs but nothing there shows an obvious problem.

I'm trying to understand how people handle this, before I build anything. I'd love to hear from people who deal with long-lived Linux servers:

  1. What do you use today to look back in time? (atop, sar, PCP, below, auditd, eBPF tools, your monitoring stack, nothing?)
  2. Would security or policy let you run an extra agent on production servers, even one that sends nothing outside your network?
  3. If you run Kubernetes, have you had node-level incidents where the evidence was gone?

Disclosure: I built sos-vault, a tool for analyzing sosreports, and I'm exploring whether a "time travel" version (e.g. ss or lsof or any of the diagnostic commands included in a sosreport for any past moment) is worth building. I'm not promoting nor linking anything; I want to know if this idea would help anyone diagnose a real problem or is it just me.

Assuming that there is not performance impact and no significant storage consumption in the server to be diagnosed; I was thinking something like this command that can be executed from a central diagnostics server or even locally (notice the four parameters --host, --start_from, --end_at and the rest is the regular diagnostic command to execute (lsof, ps, du, lsblk, free, memstat, etc., etc.):

NOTE2: I'm not pretending to use sosreport snapshots for this purpose.

[root@web01 ~]# date
Mon Oct  5 02:50:53 PM ACDT 2026

[root@web01 ~]# ttravel ss -tanp 'dst 10.0.4.21 and dport = :5432' --start_from="2026-10-02 02:00:00" --end_at="2026-10-02 03:00:00"
sosv: web01 · 02:00:00 → 03:00:00 UTC · 120 samples u/30s + connect/close events · grouped by processFIRST_SEEN  LAST_SEEN   CONNS  PEAK  STATES               PROCESS
02:00:00    03:00:00       24    20  ESTAB                users:(("gunicorn",pid=2210..2229))
02:00:04    03:00:00        1     1  ESTAB                users:(("pg_dump",pid=51233))  parent: cron-backup.sh[51207]
02:05:00    02:55:01       11     1  ESTAB ev             users:(("psql",pid=*))  /etc/cron.d/db-healthcheck
02:31:12    02:48:30      183   179  ESTAB,CLOSE-WAIT     users:(("python3",pid=58841))  /opt/reports/nightly_export.py 02:33:40    02:47:10       57     -  ESTAB→CLOSED <1s ev  users:(("gunicorn",pid=2210..2229))  rejected by serversosv: CONNS distinct connections · PEAK most open at once · ev seen only via connect/close events[root@web01 ~]# ss -tanp 'dst 10.0.4.21 and dport = :5432' --at="2026-10-02 02:45:00" | head -6
sosv: web01 · sample 2026-10-02 02:45:00 UTC
State  Recv-Q Send-Q  Local Address:Port   Peer Address:Port  Process
ESTAB  0      0           10.0.2.15:41822     10.0.4.21:5432  users:(("gunicorn",pid=2214,fd=11))
ESTAB  0      0           10.0.2.15:41850     10.0.4.21:5432  users:(("pg_dump",pid=51233,fd=3))
ESTAB  0      0           10.0.2.15:52001     10.0.4.21:5432  users:(("python3",pid=58841,fd=7))
ESTAB  0      0           10.0.2.15:52003     10.0.4.21:5432  users:(("python3",pid=58841,fd=8))
ESTAB  0      0           10.0.2.15:52004     10.0.4.21:5432  users:(("python3",pid=58841,fd=9))

Hope you can help me.


r/redhat • • 9d ago

Can Rhcsa Help me land a Entry level jobs in 2026-27 ??

11 Upvotes

About my self :

I completed my Bachelor's Degree is Computer Science from 2022 to 2025 , after that i pursued a post graduate program in Data Science (2025 to 2026)

Currently I have been looking for software Jobs but Entry level hiring has been very brutal.

Companies expect entry level candidate to possess 2-3 years experience and have all the knowledge.

Sending Application, emailing recruiters etc , Nothing is moving the needle , by may 2027 i will have Gap year in my resume and Recruiters / Hr simply never consider anyone who has a gap year !

By 2027 newer graduate will enter the market and with all the layoffs going on , there are more experienced Developers whom companies prefer and hire.

I am already 22 ,walking on a dea*h line to start my career, i need to do something different or else i may remain unemployed forever.

Now I came to Know about Rhcsa Exam and I think I can cover the fees for it as i have enough savings.

Rhcsa is fairly NOT know by many people and is not really crowded like Software job markets are (at least in my country).

My main concern are :

  1. Is rhcsa Intended for entry level Graduate who have no industry experience ? Or is it designed for experienced folk who are already working in the industry ?

  2. Will Rhcsa Put weight on resume enough to help me land a entry level job in Linux ? Such as a junior linux admin or junior systems engineer ? Do recruiters value rhcsa certificate ?

  3. How much time does it typically take to become good enough to sit in exam and Pass it ??

I am not even asking for a premium job with good compensation but a job where i grow over the Years by upskilling ! My only deal breakers are Night Shift and Support/help desk role who do not work on Systems.

So will it be a good Investment of my time to learn Linux and rhel system and get the Rhcsa Certificate.

The only ROI i want is to actually get an Interview ans land good entry level Job , are odds in my favour ?


r/redhat • • 9d ago

Rhcsa Practice Labs?

6 Upvotes

Hi I'm looking for Mock exams and Labs, I have already done Sander test, and practice by myself, do you know any repos or Labs to practice test I feel like I already have the knowledge but I would like 2 more Mock exams or labs, I want to be sure that I know how to interpret the questions.


r/redhat • • 9d ago

RHCE (EX294) v10 – 10 days left. Confused about Git, Execution Environment/Registry workflow + exam tips?

7 Upvotes

Hi everyone,

I’m preparing for the RHCE v10 (EX294) exam and I have around 10 days left.

I’ve gone through most of the topics once, and now I’m focusing mainly on hands-on practice and trying to understand the actual exam workflow.

One area I’m still confused about is Git and the Execution Environment/registry workflow.

For example:

Do we actually need to use Git during the exam?

Do we need to git add, commit and push every YAML/playbook we create?

What exactly is expected regarding the Git repository?

Do we need to git clone a repository at the beginning?

When should we use podman pull?

Do we need to pull an Execution Environment image from a registry, and how do we know which image to use?

How do Git, ansible-navigator, the Execution Environment and the registry fit together in the exam environment?

Is there a standard initial setup/workflow that I should practice repeatedly before the exam?

I’m especially looking for advice from people who have recently taken EX294/RHCE v10.

Also, with only 10 days remaining, what would you recommend focusing on most?

Any exam tips, common mistakes, tricky scenarios, or last-10-days practice strategy would be really helpful.

Thanks in advance!