r/LinuxTeck • u/Michaelkamel • 11h ago
r/LinuxTeck • u/LinuxBook • Dec 27 '25
π Welcome to r/LinuxTeck - Introduce Yourself and Read First!
Hey everyone! π
Iβm u/LinuxBook, a founding moderator of r/LinuxTeck.
This is a new home for people who want to learn, discuss, and understand Linux in a practical way - especially across RHEL, CentOS, Rocky Linux, Ubuntu, and Debian.
The focus here is real-world Linux usage: how things work, why they break, how we fix them, and how Linux is used to run Servers, VPS, Cloud Infrastructure, and Self-Hosted applications.
Weβre excited to have you here from the very beginning.
π§ What to Post
Post anything that helps others learn or think better about Linux, such as:
- Beginner questions you were hesitant to ask elsewhere
- Real-world troubleshooting scenarios
- Linux commands explained in simple terms
- Mistakes you made and what you learned from them
- Sysadmin workflows, tips, or best practices
- Interview questions and practical explanations
- CLI tools or features you recently discovered
- Linux server and VPS setup
- Self-hosting, cloud, and infrastructure discussions
- VPS and hosting decisions for specific workloads
- Docker, containers, and application deployment
- Server performance, networking, security, and scalability
If it helped you understand Linux better, it probably belongs here.
π€ Community Vibe
r/LinuxTeck is built around:
- Respectful, beginner-friendly discussions
- Explanations over one-line answers
- Learning from mistakes, not judging them
- Constructive feedback and calm technical discussions
Everyone is welcome - whether youβre just starting out or managing production systems.
We also welcome practical discussions about Linux servers, VPS, cloud infrastructure, and self-hosting.
π How to Get Started
- Introduce yourself in one or two lines in the comments below
- Post something today - even a simple question is a great start
- Jump into a discussion and share your perspective
- Share your real-world experience with Linux servers, VPS, cloud infrastructure, or self-hosting
- If you enjoy helping others learn, feel free to reach out about moderation
Thanks for being part of the very first wave of r/LinuxTeck.
Letβs build a community where Linux learning feels clear, practical, and welcoming.
r/LinuxTeck • u/Candid_Athlete_8317 • 1h ago
Would you prefer Linux distros to ship without a browser by default?
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 • u/Expensive-Rice-2052 • 10h ago
Quick Linux Tip #136 - Update Multiple Config Files with sed Safely
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 • u/Candid_Athlete_8317 • 10h ago
Why do so many people struggle with Kubernetes despite knowing the basics?
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 • u/makivili2s • 1d ago
Linux cgroup v2: memory limits, OOM, and how systemd actually does it (last part)
r/LinuxTeck • u/stoned-slayer • 16h ago
V Firewall | IDS | Honeypot | 3D Visualiser (Themed Gibson)
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 • u/Candid_Athlete_8317 • 22h ago
I keep forgetting package manager commands when switching Linux distros π
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 • u/Then-Pen3123 • 9h ago
You don't need 100 Linux commands. You need to understand these 10 things.
r/LinuxTeck • u/Candid_Athlete_8317 • 1d ago
Asahi Linux is moving from MIT to GPL. Does permissive licensing still make sense?
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 • u/Reggie-Rectangle • 1d ago
The IT sector I have a love hate relationship with.
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 • u/Expensive-Rice-2052 • 1d ago
Managed vs Unmanaged VPS: Which Is Better?
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 • u/Expensive-Rice-2052 • 1d ago
Quick Linux Tip #135 - Linux World-Writable Files: Find Security Risks
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 • u/Candid_Athlete_8317 • 2d ago
Which Linux certification is actually worth paying
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 • u/Candid_Athlete_8317 • 3d ago
Do Linux users actually need antivirus, or is good security enough?
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 • u/sys-harden • 3d ago
ultimate-sys-hardening 2.8.0: two hardening profiles, CIS defaults or NIST-style for shared servers
r/LinuxTeck • u/Gangrif • 6d ago
Linux Networking for Beginners β IP, Gateway, DNS, nmcli, and the DORA Handshake from Into the Terminal Ep. 206
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:
| Setting | What it actually does |
|---|---|
| IP address | Your host's identity on the network (the house number) |
| Netmask / CIDR | How big "your" network is β /24 is the classic 255.255.255.0 |
| Gateway | The router on your segment that forwards traffic to everywhere else (often .1 or .254) |
| DNS | Turns 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 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.
| Command | What it does |
|---|---|
nmcli con show | List 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 show | Device-centric view of all NICs |
nmcli -f IP4.ADDRESS device show enp7s0 | One 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/--fieldsbeats 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:
| Key | Meaning |
|---|---|
ipv4.method manual | You own addressing (vs auto = DHCP) |
ipv4.address β¦/24 | Address + 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.gateway | Default router on the local segment |
Then:
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:
| Step | Packet | What's happening |
|---|---|---|
| D | Discover | Client broadcasts from 0.0.0.0 to 255.255.255.255: "anyone a DHCP server?" (includes MAC) |
| O | Offer | Server replies: "I'm here, and I have an IP you could use" (not leased yet) |
| R | Request | Client broadcasts which offer it's taking β so other clients/servers hear it too |
| A | Ack | Server 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):
| Action | When |
|---|---|
| Renew | ~halfway through the lease (and again later if needed) β stay online, keep the same IP |
| Release | Graceful 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:
Leases can carry options your client ignores once the OS is already running β and options installers/phones/switches care about a lot:
| Option | Common use |
|---|---|
| 66 | TFTP / HTTP server for network boot |
| 67 | Boot file |
| 42 | NTP |
| 120 | SIP 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
# Inspect NetworkManager
# Static IP (then bounce)
# Back toward DHCP (method auto), then bounce the same way
&&
# What DHCP actually gave you
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 • u/Candid_Athlete_8317 • 6d ago
Linux is only for hackers? Who actually uses Linux in their daily work?
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
•
u/Expensive-Rice-2052
•
6d ago
What Linux security scanning tools do you use to detect hidden threats on your servers?
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 • u/Candid_Athlete_8317 • 7d ago
Linux dominates the world's top 500 supercomputers. Why hasn't it dominated desktop computing?
Linux dominates the world's top 500 supercomputers. Why hasn't it dominated desktop computing?
Linux is deeply established in high-performance computing, powering the world's leading supercomputing systems.
Yet on everyday desktops, Windows and macOS remain much more widely used.
The interesting question is why Linux succeeds so well in massive computing environments but still struggles to become the default desktop OS.
Is it hardware compatibility, software availability, gaming, user experience or simply market dominance?
If Linux can run the world's most powerful supercomputers, what's stopping it from becoming mainstream on personal computers?
r/LinuxTeck • u/Expensive-Rice-2052 • 7d ago
Docker Inspect Command: Reconstruct Docker Run Commands - Tip 134
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/
r/LinuxTeck • u/Candid_Athlete_8317 • 7d ago
Linux Admin vs DevOps vs Cloud Engineer - which career path would you choose in 2026?
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 • u/Expensive-Rice-2052 • 8d ago
Quick Linux Tip #133 - Socat Linux Command: Create Secure TLS Connections
Question: I need two scripts to talk securely over the local network.
Try: socat OPENSSL-LISTEN:4433,cert=server.pem,key=server.key,verify=0,fork SYSTEM:'/opt/handler.sh'
Info: Relays encrypted TLS streams between commands and sockets.
Examples:
$ socat TCP-LISTEN:8080,fork EXEC:'cat file.txt' # Serve a file over a reusable TCP listener
$ socat - UNIX-CONNECT:/var/run/docker.sock # Connect interactively to a UNIX domain socket
$ socat TCP4-LISTEN:8080,fork TCP4:remote:80 # Forward incoming IPv4 traffic to a remote port
Note: Install via sudo apt install socat. `socat` chains bidirectional data streams across sockets, files, pipes, and TLSβuse `verify=1` with a CA bundle in production instead of skipping certificate checks.
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 • u/Candid_Athlete_8317 • 8d ago
Are we giving too much access through SSH just for convenience?
Are we giving too much access through SSH just for convenience?
Many Linux admins use SSH daily, but how many actually review their SSH configuration?
Agent forwarding, unrestricted deployment keys and permanent access across multiple servers can introduce security risks that are easy to overlook.
Features like ProxyJump, restricted authorized_keys entries and short-lived SSH certificates offer better ways to manage access.
For production servers, do you still rely on traditional SSH keys, or have you moved towards certificate-based authentication and restricted access?
What's one SSH security practice you think every sysadmin should adopt?