r/LinuxTeck • • 3h ago

Would you upgrade a stable Linux kernel just because it reached EOL?

2 Upvotes

Would you upgrade a stable Linux kernel just because it reached EOL?

There’s an interesting challenge in Linux system administration: keeping systems secure without breaking applications that have been running reliably for years.

The 5.10 and 5.15 stable kernel series have reached EOL, and users are being advised to move to newer kernel series.

But enterprise environments aren't always that simple.

Some organizations depend on older kernels because of hardware compatibility, legacy applications, certification requirements, or expensive migration processes. Enterprise distributions may also maintain older kernel versions with selected security fixes backported.

So here's where I'd like to hear different opinions:

Would you upgrade to a newer kernel as soon as the current series reaches EOL, or keep the existing kernel if your vendor continues providing security updates?

I'm particularly interested in experiences from people managing production Linux servers.


r/LinuxTeck • • 4h ago

94 Linux programs energy graded

Thumbnail isene.org
4 Upvotes

r/LinuxTeck • • 6h ago

Linux Physical CPU Cores: Check Cores and Threads - 137

Post image
7 Upvotes

Question: How many physical CPU cores does my server actually have?

Try: lscpu | grep -E 'Socket|Core|Thread'

Info: Calculates physical cores vs. logical threads.

Examples:

$ lscpu | grep 'Model name' # Display the processor model name

$ cat /proc/cpuinfo | grep -c processor # Count logical processors from /proc/cpuinfo

$ lstopo # View visual CPU and NUMA topology via hwloc

Note: Multiply cores per socket by sockets for physical core count (`nproc` includes SMT/hyperthreading threads). Size CPU-bound workloads around physical cores and inspect NUMA layout with `lstopo` for performance tuning.

Want to master Linux one command at a time?

Follow r/LinuxTeck - 1 practical Linux tip every day. For more #LinuxTips click here https://www.linuxteck.com/linux-tips/


r/LinuxTeck • • 7h ago

How much of today's computing world was shaped by Digital Equipment Corporation (DEC)?

6 Upvotes

It's fascinating how many old computing decisions are still visible in the systems we use today.

The PDP-11 influenced the development of Unix and the C language. DEC's TOPS-10 conventions left traces in early PC computing. And Dave Cutler's experience at DEC played a major role in the development of Windows NT.

But there's an interesting distinction between influencing an technology and being its direct ancestor.

Linux, Unix, BSD, Windows NT, and macOS each have their own history. Connecting them all to one company can make for a fascinating story, but it can also oversimplify things.

For those who worked with DEC, PDP-11, VAX, or VMS: how much of that era's engineering do you still recognize in modern operating systems? And for younger engineers, how familiar are you with this history?


r/LinuxTeck • • 18h ago

94 Linux programs energy graded

2 Upvotes

r/LinuxTeck • • 21h ago

Would you prefer Linux distros to ship without a browser by default?

14 Upvotes

Would you prefer Linux distros to ship without a browser by default?

Raspberry Pi OS is taking a security-focused approach: installation images will be updated daily, and Chromium/Firefox will no longer be included by default. Users can install a browser during the first-boot setup if they need one.

Honestly, I find the browser decision interesting.

For a headless Raspberry Pi running servers, automation, IoT projects, or services, having a browser installed may be completely unnecessary. Fewer installed applications mean fewer things to maintain and potentially fewer attack surfaces.

But for desktop users, removing a browser from the default installation might feel inconvenient.

Should Linux distributions move toward minimal installations by default and let users install what they actually need, or is the current approach more user-friendly?


r/LinuxTeck • • 1d ago

Why do so many people struggle with Kubernetes despite knowing the basics?

3 Upvotes

Learning Kubernetes often feels straightforward at first. You learn Pods, Deployments, Services, ConfigMaps, and commands like kubectl get pods.

But real troubleshooting is a different story.

A pod is stuck in CrashLoopBackOff. A service isn't reachable. An application works locally but fails after deployment. Suddenly, you're dealing with Linux permissions, networking, DNS, container logs, storage, resource limits, and sometimes SELinux.

I've seen people focus heavily on Kubernetes commands while overlooking the fundamentals that actually help them diagnose these problems.

Do you think someone should master Linux and containers before learning Kubernetes, or is it better to learn everything together through hands-on practice?


r/LinuxTeck • • 1d ago

Quick Linux Tip #136 - Update Multiple Config Files with sed Safely

Post image
12 Upvotes

Question: How do I update a config value in 500 files at once, safely?

Try:sed -i.bak 's/debug=true/debug=false/g' /etc/myapp/*.conf

Info: Edits files in place and keeps .bak backups.

Examples:

$ sed -i.bak -r 's/(port=)[0-9]+/\10/g' *.conf # Update matched values using capture groups

$ find . -name '*.conf' -exec sed -i 's/old/new/g' {} + # Recursively edit matching files

$ rename 's/\.bak$//' *.bak # Remove .bak extensions after verifying changes

Note: Always create .bak backups on the first run and preview matches with grep first. Use an alternate delimiter like `|` (`s|/old/path|/new/path|g`) when replacing file paths.

Want to master Linux one command at a time?

Follow r/LinuxTeck - 1 practical Linux tip every day. For more #LinuxTips click here https://www.linuxteck.com/linux-tips/


r/LinuxTeck • • 1d ago

20 Linux Directories

41 Upvotes

r/LinuxTeck • • 1d ago

V Firewall | IDS | Honeypot | 3D Visualiser (Themed Gibson)

1 Upvotes

V Firewall is a Linux desktop security management suite built with Python 3, GTK 4, and Libadwaita. Rather than replacing Linux packet filtering, it acts as a desktop control plane around firewalld (firewall-cmd and read-only D-Bus), nftables, systemd/cgroups, iproute2 (ss/ip/tc), flatpak, and Polkit (pkexec), combined with a multidimensional IDS 3D Cyber-City forensic visualizer, Photonic MTP security orchestration, process ancestry auditing (LineageGuard), offline IPSet geo-blocking, always-on kernel log IDS monitoring, and an unprivileged async Deception & Honeypot engine. Github


r/LinuxTeck • • 1d ago

I keep forgetting package manager commands when switching Linux distros πŸ˜‚

4 Upvotes

I use apt on Ubuntu/Debian, dnf on Fedora/RHEL, and pacman on Arch.

Every time I switch between distros, I occasionally type the wrong command out of habit.

For example, apt install becomes dnf install, while Arch has its own way of doing things.

If you regularly work across multiple Linux distributions, do you remember all these commands, or do you also Google them occasionally?

And honestly, which package manager do you find the most intuitive?


r/LinuxTeck • • 1d ago

The IT sector I have a love hate relationship with.

0 Upvotes

I felt that the Broadcom acquisition of VMware was such a breath of fresh air. Tech companies being the biggest cunts imaginable is how it should be. I absolutely hated the circle jerk bullshit that the AI tech companies all seemed to have. I crave the 90s "Microsoft vs. Netscape" era of bare-knuckle corporate warfare instead of the current "we’re all just trying to build a safe, helpful future for humanity" PR script.

The AI kombya bullshit seems to be coming to an end as easy credit is drying up. The daggers from the AI companies seem to be slowly but surely appearing, but that Broadcom buying of VMware now that is what the tech sector should be like.

I know that was an absolute shit show for a lot of system admins, but that is the type of chicanery and Machiavellian antics I have grown to be accustomed to in this industry. I hope we return to that, because I cannot fucking stand this bullshit of everyone pretending to like each other. Let's go back to everybody just hating each other with a fuckin passion and being honest about it.


r/LinuxTeck • • 1d ago

Linux cgroup v2: memory limits, OOM, and how systemd actually does it (last part)

Thumbnail
youtu.be
8 Upvotes

r/LinuxTeck • • 2d ago

Managed vs Unmanaged VPS: Which Is Better?

Post image
1 Upvotes

difference is responsibility: https://www.linuxteck.com/managed-vs-unmanaged-vps/

  • Managed VPS: the provider handles certain server administration tasks, depending on the plan.
  • Unmanaged VPS: you handle server configuration, updates, security, backups and troubleshooting.

r/LinuxTeck • • 2d ago

Asahi Linux is moving from MIT to GPL. Does permissive licensing still make sense?

11 Upvotes

Asahi Linux, the project bringing Linux to Apple Silicon Macs, has announced a move from MIT to GPL-2.0-or-later.

The maintainers say their permissive licensing was exploited, including code being copied without attribution and allegedly rewritten with AI to hide its origins.

This raises an interesting question for open-source developers:

Does the MIT licence give developers too much freedom to reuse code, or is that freedom exactly what makes open source valuable?

Would you choose MIT, GPL or another licence for your own project? Why?


r/LinuxTeck • • 2d ago

Quick Linux Tip #135 - Linux World-Writable Files: Find Security Risks

Post image
12 Upvotes

Question: What files on my server can anyone write to? (security audit)

Try: sudo find / -type f -perm -o+w ! -path '/proc/*' ! -path '/sys/*' 2>/dev/null | head -20

Info: Finds world-writable files to spot security risks.

Examples:

$ find /etc -type f -perm -o+w # Flag world-writable config files

$ find /usr -perm /4000 -not -user root # Spot non-root setuid binaries

$ find / -nouser -o -nogroup 2>/dev/null # Locate unowned files or groups

Note: World-writable config files or binaries create privilege-escalation risks, whereas `/tmp` is intentionally world-writable with the sticky bit set. Audit setuid binaries to confirm expected ownership.

Want to master Linux one command at a time?

Follow r/LinuxTeck - 1 practical Linux tip every day. For more #LinuxTips click here https://www.linuxteck.com/linux-tips/


r/LinuxTeck • • 2d ago

Which Linux certification is actually worth paying

7 Upvotes

There are several Linux certifications available - RHCSA, RHCE, LFCS, LPIC-1 and Linux+ β€” but their value depends heavily on the job you're targeting.

Some focus on hands-on administration, while others are vendor-neutral or designed around broader IT knowledge.

For those who have completed a Linux certification and used it in their job search, which one actually helped you?

Was it worth the exam cost, or would you recommend spending that money on practical labs and real-world projects instead?

Please share your experience. It could help others choose the right certification.


r/LinuxTeck • • 3d ago

Do Linux users actually need antivirus, or is good security enough?

25 Upvotes

Linux has a reputation for being immune to viruses, but malware targeting Linux servers, desktops and cloud environments definitely exists.

Most Linux users don't install traditional antivirus software, but that doesn't mean they can ignore security.

Updates, SSH security, permissions, software sources, firewalls and backups still matter.

Do you run antivirus or malware scanning tools on your Linux systems? Or do you rely primarily on system hardening and good security practices?

Linux admins, please share your experience. What security tools and practices do you use on your personal Linux machines and production servers? Your insights could help many of us.


r/LinuxTeck • • 4d ago

ultimate-sys-hardening 2.8.0: two hardening profiles, CIS defaults or NIST-style for shared servers

Post image
1 Upvotes

r/LinuxTeck • • 6d ago

Linux Networking for Beginners β€” IP, Gateway, DNS, nmcli, and the DORA Handshake from Into the Terminal Ep. 206

12 Upvotes

Every machine on a network needs three things: an address so others can find it, a way out to the rest of the world, and a phonebook to turn names into numbers. This week's Into the Terminal (episode 206) is the absolute-beginner networking episode β€” Scott and Nate define IP, netmask, gateway, and DNS by pointing at them on a live RHEL box (not a slide deck), flip an interface from DHCP to a static IP with nmcli, bounce it so the change actually sticks, then whiteboard the whole DHCP "DORA" handshake so the magic stops being magic.

Full video here β†’ https://www.youtube.com/watch?v=yFjDfhb7kwI More hands-on RHEL practice β†’ https://redhat.com/interactive-labs


The Essentials: The Four Things Every Interface Needs

Before tools, they drew the mental model on the whiteboard:

SettingWhat it actually does
IP addressYour host's identity on the network (the house number)
Netmask / CIDRHow big "your" network is β€” /24 is the classic 255.255.255.0
GatewayThe router on your segment that forwards traffic to everywhere else (often .1 or .254)
DNSTurns names humans remember into numbers machines speak

On the same /24 LAN, two hosts talk directly. Off-segment? Traffic goes to the gateway. DNS does not have to live on your LAN β€” it just has to be reachable. Search domains exist so rhel3 quietly becomes rhel3.example.com.

Scott's phishing war story: corporate DNS deliberately mis-resolved a known-bad phishing domain so users got a support ticket instead of a stolen password. Same idea as Pi-hole / AdGuard β€” intentional "wrong" answers as a control.

ip a              # or: ip addr show / ip address show
ip route          # see your default gateway / routes

ip a shows interface name, IPv4 + CIDR, broadcast, IPv6, and state (UP = active). Nobody types the long form. Same energy as nmcli con vs nmcli connection.


Viewing Config with nmcli (Not Just ip a)

ip a tells you what is live. NetworkManager knows why β€” connections, UUIDs, DHCP options, method, DNS, the whole pile.

CommandWhat it does
nmcli con showList connections, UUID, type, device
nmcli con show "Wired connection 1"Dump everything for that connection (opens a pager)
nmcli -f ipv4 con show "Wired connection 1"Filter to just IPv4 settings
nmcli -f DHCP4 con show "Wired connection 1"Just the DHCP4 block
nmcli device showDevice-centric view of all NICs
nmcli -f IP4.ADDRESS device show enp7s0One field: IPv4 addresses (it's an array β€” multiple IPs per NIC is fine)

Pro tips from the show:

  • Connection names can have spaces β€” quote them. They're case-sensitive. Tab completion for names is hit-or-miss depending on bash-completion setup (Scott had it; Nate's RHEL 10 lab box didn't for connection names).
  • -f / --fields beats scrolling a pager when you know what you want. Dot-separated keys nest (ipv4.method, DHCP4.OPTION, …).
  • One interface can hold multiple IPs (VIPs, containers, etc.) β€” that's why address fields look like arrays.
  • Don't edit network config over the only link you're SSHed in on without a plan. Nate's early-career friend learned that the hard way: five minutes later, "I have to walk to the data center now."

RHEL used to live on classic ifcfg key/value files; NetworkManager + nmcli is the way forward. Ubuntu still leans on text/INI-style configs. Scott will gladly start the holy war: simple files feel simpler until you realize NetworkManager exposes (and scripts) a lot more knobs than those old files ever did. nmcli is also scriptable β€” better than heredoc'ing a config file and hoping the syntax is right.

Cockpit's network plugin does the same jobs with a GUI warning if you're about to tear down the interface you're connected on.


Advanced: Flip DHCP β†’ Static (Then Bounce It)

Out of the box, new interfaces are usually ipv4.method=auto (DHCP). For a home lab, a fixed server address, or anything that shouldn't wander, set it manual.

Demo from the episode β€” one shot, all the knobs:

nmcli con mod "Wired connection 1" \
  ipv4.method manual \
  ipv4.address 192.168.122.42/24 \
  ipv4.dns "192.168.122.1,8.8.8.8" \
  ipv4.gateway 192.168.122.1
KeyMeaning
ipv4.method manualYou own addressing (vs auto = DHCP)
ipv4.address …/24Address + netmask in CIDR (preferred over a separate netmask field)
ipv4.dns "a,b"DNS list β€” use at least two; one dead server means painful timeouts before failover
ipv4.gatewayDefault router on the local segment

Then:

ip a                                          # still shows the OLD address!
nmcli con down "Wired connection 1"
ip a                                          # interface present, no address
nmcli con show                                # connection goes gray / unbound from device
nmcli con up "Wired connection 1"
ip a                                          # 192.168.122.42 is live

Why the bounce? Changing settings does not apply immediately. That's a feature: a typo shouldn't instantly lock you out. Down/up (or reboot, if you're changing networks wholesale) is the last safeguard. Prefer bounce over reboot for normal IP changes. Hostname via reverse DNS is a related gotcha β€” new IP β‰  automatic hostname refresh.

nmcli con down / up success messages look alarmingly error-like (long path, parentheses, slashes). Read them: "connection successfully deactivated/activated."

Unplugging a cable and plugging it back in? On a desktop applet, maybe it refreshes. On a typical server, NetworkManager often keeps the config in memory through a blip β€” don't count on physical reconnect as a lease refresh.


Advanced: DHCP β€” DORA and Friends

When ipv4.method is auto, bring-up runs the classic handshake. Chat remembered the acronym DORA:

StepPacketWhat's happening
DDiscoverClient broadcasts from 0.0.0.0 to 255.255.255.255: "anyone a DHCP server?" (includes MAC)
OOfferServer replies: "I'm here, and I have an IP you could use" (not leased yet)
RRequestClient broadcasts which offer it's taking β€” so other clients/servers hear it too
AAckServer confirms the lease. Competing claimants get a NACK and restart at Discover

Multiple DHCP servers on a segment without coordinated leases = chaos. First offer the client acts on usually wins.

Also in the protocol (not part of DORA):

ActionWhen
Renew~halfway through the lease (and again later if needed) β€” stay online, keep the same IP
ReleaseGraceful shutdown / interface down / explicit release β€” "I don't want this address anymore"

Lease length is policy: short on guest Wi-Fi (hours), long on stable server nets (Scott's lab lease calculated out to August 2029 β€” chat did the math). If the pool is exhausted, the server walks the range looking for free addresses again; clients that never get a lease may land on a link-local / APIPA-style address from the OS stack.

Static vs DHCP on the same LAN: either leave a reserved range for hand-set statics, or let DHCP own "static" assignments via reservations. Mixing unmanaged statics into the DHCP pool is how you get silent IP conflicts. Servers often still use DHCP β€” they just always get the same reserved address.

Where does the DHCP server live? Often not on your client VLAN. Switches forward those broadcasts with DHCP relay to an infrastructure segment. Scott's phone outage story: DHCP config was fine; someone had disabled DHCP forwarding on the office switches. Phones shouted Discover into the void. Informed ticket beats "the phones don't work."

Inspect what you were actually handed:

nmcli -f DHCP4 device show <device>

Leases can carry options your client ignores once the OS is already running β€” and options installers/phones/switches care about a lot:

OptionCommon use
66TFTP / HTTP server for network boot
67Boot file
42NTP
120SIP servers (phones)

PXE install = DHCP Discover + those boot options. Running Linux just pulls IP/netmask/gateway/DNS (and friends) and ignores the rest.


Side Quest: VLANs (Chat Asked)

VLANs are tagged, isolated L2 segments on the same physical gear. Nate showed VLAN-typed NetworkManager connections (IDs 2, 10, 20, …) bridged into friendly names β€” services, IoT, lab β€” so smart bulbs aren't sitting next to the banking laptop. Tagging can come from DHCP or be set statically. Beyond day-one sysadmin scope, but worth knowing the word when your network person says it.


Quick Reference Card

# See what's live
ip a
ip route

# Inspect NetworkManager
nmcli con show
nmcli con show "Wired connection 1"
nmcli -f ipv4,DHCP4 con show "Wired connection 1"
nmcli device show
nmcli -f IP4.ADDRESS device show enp7s0

# Static IP (then bounce)
nmcli con mod "Wired connection 1" \
  ipv4.method manual \
  ipv4.address 192.168.122.42/24 \
  ipv4.dns "192.168.122.1,8.8.8.8" \
  ipv4.gateway 192.168.122.1
nmcli con down "Wired connection 1"
nmcli con up "Wired connection 1"

# Back toward DHCP (method auto), then bounce the same way
nmcli con mod "Wired connection 1" ipv4.method auto
nmcli con down "Wired connection 1" && nmcli con up "Wired connection 1"

# What DHCP actually gave you
nmcli -f DHCP4 device show enp7s0

Remember: modify β‰  apply. Down/up (or reboot) makes it real. Don't bounce the only path you're connected on without console/out-of-band access.

Binary netmask math got punted to "one day" β€” Nate's take: people ask a calculator (or Claude) for "16 addresses, what mask?" Scott still wants you to know why the numbers mean what they mean so it isn't magic.


Links

  • Video: https://www.youtube.com/watch?v=yFjDfhb7kwI
  • RHEL Developer Registration: https://developers.redhat.com/register
  • Interactive Labs: https://redhat.com/interactive-labs
  • Discord: https://red.ht/rhel-discord
  • Nate Lager: https://social.undrground.org/@gangrif
  • Scott McBrien: https://www.linkedin.com/in/scott-mcbrien-349b356

Into the Terminal is a live show from the Red Hat Enterprise Linux team covering practical Linux administration skills β€” commands, concepts, and war stories β€” for people who live in a shell. Like, subscribe, and yell war stories about static IPs that locked you out in the comments.


r/LinuxTeck • • 7d ago

Linux is only for hackers? Who actually uses Linux in their daily work?

63 Upvotes

I still hear people associate Linux mainly with hacking and cybersecurity.

But Linux runs web servers, cloud infrastructure, databases, supercomputers, development environments and even everyday desktops.

You don't need to be a hacker or a command-line expert to use it.

For Linux users here: what do you primarily use Linux for - development, system administration, cybersecurity, cloud infrastructure or everyday computing?

How diverse the Linux community actually is.


r/LinuxTeck • • 7d ago Thanks Bravo

What Linux security scanning tools do you use to detect hidden threats on your servers?

Post image
202 Upvotes

includes: https://www.linuxteck.com/linux-scanning-tools/

  • Lynis – Security auditing
  • OpenVAS – Vulnerability assessment
  • Nmap – Network scanning
  • Trivy – Package and container scanning
  • ClamAV – Malware detection
  • rkhunter and chkrootkit – Rootkit detection
  • AIDE – File integrity monitoring
  • OpenSCAP – Security compliance
  • Vuls – Package vulnerability scanning

r/LinuxTeck • • 8d ago

Linux Admin vs DevOps vs Cloud Engineer - which career path would you choose in 2026?

6 Upvotes

Linux Admin vs DevOps vs Cloud Engineer - which career path would you choose in 2026?

All three paths build on Linux, but the day-to-day technical work is quite different.

  • Linux Admin: Servers, systemd, networking, storage and troubleshooting.
  • DevOps Engineer: Bash/Python, CI/CD, Docker, Kubernetes and automation.
  • Cloud Engineer: AWS/Azure/GCP, infrastructure, IAM and cloud networking.

The salary gap isn't always straightforward. Experience, automation skills and production responsibility can make a bigger difference than the job title.

For professionals: which path offers the best combination of salary growth, job opportunities and long-term career stability?

Especially like to hear from people who have moved from Linux administration into DevOps or Cloud.


r/LinuxTeck • • 8d ago

Docker Inspect Command: Reconstruct Docker Run Commands - Tip 134

Post image
16 Upvotes

Question: What's the original docker run command for this container?

Try: docker inspect nginx | jq -r '.[0] | "docker run -d --name \(.Name|ltrimstr("/")) -p \(.NetworkSettings.Ports|to_entries|.[0].value[0].HostPort):\(.NetworkSettings.Ports|to_entries|.[0].key|split("/")|.[0]) \(.Config.Image)"'

Info: Reconstructs a basic docker run command from inspect JSON.

Examples:

$ docker inspect $(docker ps -q) | jq -r '.[] | .Name' # List names of all running containers

$ docker history nginx # Inspect image build layers and commands

$ docker ps --format '{{.Names}}: {{.Status}}' # Show a compact status list of containers

Note: For containers with volumes, networks, env vars, or restart policies, `runlike` (`pip install runlike`) handles full reconstruction better than a one-liner. Store definitions in `docker-compose.yml` for repeatable deployments.

Want to master Linux one command at a time?

Follow r/LinuxTeck - 1 practical Linux tip every day. For more #LinuxTips click here https://www.linuxteck.com/linux-tips/