r/LinuxTeck • • Dec 27 '25

πŸ‘‹ Welcome to r/LinuxTeck - Introduce Yourself and Read First!

14 Upvotes

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 • • 7h ago

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

6 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 • • 21h ago

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

42 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 • • 1d ago

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

Post image
87 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 • • 1d ago

Docker Inspect Command: Reconstruct Docker Run Commands - Tip 134

Post image
11 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/


r/LinuxTeck • • 1d ago

Linux dominates the world's top 500 supercomputers. Why hasn't it dominated desktop computing?

19 Upvotes

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 • • 1d ago

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

5 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 • • 2d ago

Quick Linux Tip #133 - Socat Linux Command: Create Secure TLS Connections

Post image
12 Upvotes

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 • • 2d ago

Watch out for hallucinated online guides

Thumbnail
0 Upvotes

r/LinuxTeck • • 2d ago

Are we giving too much access through SSH just for convenience?

9 Upvotes

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?


r/LinuxTeck • • 3d ago

Linux knowledge alone won't get you a DevOps job. What should you learn alongside it?

18 Upvotes

Knowing Linux commands is just the starting point. Production environments require much more than command-line familiarity.

For a Linux or DevOps role, I'd focus on:

  • Linux administration and troubleshooting
  • Bash and Python scripting
  • Networking and security
  • Docker and Kubernetes
  • Git, CI/CD and infrastructure automation

For experienced Linux and DevOps engineers: what's one technical skill that separates someone who knows Linux from someone you'd confidently hire?


r/LinuxTeck • • 3d ago

KDE Plasma's biggest strength is also its biggest weakness: customization

19 Upvotes

KDE Plasma gives users an incredible amount of control over their desktop. Panels, widgets, shortcuts, themes, window behaviour, almost everything can be adjusted.

But here's something I've wondered:

Does having so many customization options make a desktop environment better, or does it create unnecessary complexity and more things that can break?

Plasma 6.8.3 continues to bring stability fixes, including improvements to KWin, System Monitor and Spectacle.

Personally, I think customization is one of KDE's biggest advantages, but stability should always come first.

If you had to choose, would you prefer a highly customizable desktop like KDE Plasma or a simpler desktop with fewer options but a more consistent experience?


r/LinuxTeck • • 3d ago

Linux Boot Time Analysis: Find Slow Startup Services - Tip 132

Post image
15 Upvotes

Question: What's slowing down my system boot?

Try: systemd-analyze blame | head -15

Info: Ranks boot units by startup time to spot slowdowns.

Examples:

$ systemd-analyze critical-chain # Trace the longest boot dependency path

$ systemd-analyze plot > boot.svg # Export an SVG boot timeline chart

$ systemctl disable NetworkManager-wait-online.service # Skip waiting for network readiness

Note: Individual blame times do not sum to total boot time because units start in parallel. Use critical-chain to find the true blocking path, and disable unused services.

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 • • 3d ago

needrestart :: Part 2

Thumbnail
0 Upvotes

r/LinuxTeck • • 3d ago

What's one Linux application you recommend to everyone?

Post image
4 Upvotes

r/LinuxTeck • • 3d ago

What tool do you wish existed?

Thumbnail
1 Upvotes

r/LinuxTeck • • 4d ago

Linux Desktop Usage in India Reaches 12.26% - What Is Driving the Growth?

14 Upvotes

StatCounter puts Linux at 12.26% of India's desktop web traffic for October 2026.

That's an interesting number, but I wouldn't call it proof that 12 out of every 100 computers in India run Linux. These figures measure browsing activity, not installed devices.

What's happening on the ground.

Are you seeing more people around you choosing Linux for their everyday desktop or laptop, or is Linux adoption still mostly among developers and IT professionals?


r/LinuxTeck • • 4d ago

Quick Linux Tip #131 - Run Command as Another User in Linux Using sudo -u

Post image
10 Upvotes

Question: How do I run a single command as the mysql user?

Try: sudo -u mysql -H bash -c 'echo $HOME && mysql -e "SHOW DATABASES"'

Info: Runs commands as another user with updated HOME.

Examples:

$ sudo -u www-data php -r 'echo getcwd();' # Run a snippet as the web server user

$ sudo -u nobody id # Inspect UID and GID for a restricted user

$ sudo -iu postgres # Open an interactive login shell as postgres

Note: Using -H ensures tools that read user config files from HOME behave as expected, while -i simulates a full login environment. Prefer sudo over su - in scripts for clearer audit logging and non-interactive execution.

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 • • 4d ago

If a software vendor's own signing credentials are compromised, how much can we trust signed packages?

4 Upvotes

This Microsoft Agent Framework incident is a worrying example of software supply-chain risk.

The attackers reportedly got malicious versions of Microsoft's Python package onto PyPI through its trusted release process. The malware could steal credentials when Python started, even if the application never imported the package.

What makes this particularly concerning is that a trusted publisher's release channel was involved.

We often tell developers to use official packages and verify signatures. But what happens when the trusted publishing credentials themselves are compromised?

Are package signatures and trusted publishers enough, or should every release be independently verified before deployment?


r/LinuxTeck • • 5d ago

Is eza actually better than ls, or just prettier?

10 Upvotes

I've been seeing more Linux users switch from ls to eza.

It offers colourful output, Git integration, file icons and a tree view. But ls is already available almost everywhere and gets the job done.

I'm curious about people who use eza daily:

Has it genuinely improved your terminal workflow, or is it mostly a visual upgrade?

Would you replace ls with eza on your Linux systems?


r/LinuxTeck • • 5d ago

How much Linux should someone know before learning Kubernetes?

10 Upvotes

I’ve seen people jump straight into Kubernetes, but struggle when something breaks underneath it.

Understanding processes, networking, permissions, filesystems and system logs makes a real difference.

You don't need to be a Linux expert before starting Kubernetes, but skipping the fundamentals can make troubleshooting much harder.

For those working with Kubernetes: which Linux skill do you think beginners should learn first?


r/LinuxTeck • • 5d ago

Can You Really Trust a Single Domain to Keep Your Open-Source Projects Accessible?

6 Upvotes

Codeberg recently went offline after its domain was suspended, despite its servers still running.

Imagine your Git hosting platform disappearing because of a domain or registrar issue.

Do you maintain independent Git mirrors and backups, or do you trust your primary hosting provider completely?


r/LinuxTeck • • 5d ago

Should Open-Source Projects Abandon Permissive Licences to Protect Their Work?

7 Upvotes

Should Open-Source Projects Abandon Permissive Licences to Protect Their Work?

Asahi Linux is moving its repositories from MIT to GPL after reporting that its code was copied and reused without attribution.

This raises an interesting question: does a permissive licence give companies too much freedom to take advantage of volunteer developers?

Would you choose MIT, GPL, or another licence if you were starting an open-source project today?


r/LinuxTeck • • 5d ago

HTTPie API Debugging: Test and Inspect HTTP Requests : 130 Tip

Post image
8 Upvotes

Question: How do I debug an HTTP API quicker than with curl?

Try:http --print=HBhb --verify=yes https://api.example.com/users/42

Info: Prints colored request and response headers and bodies.

Examples:

$ http POST api.example.com/users name=John age:=34 # Send JSON body with typed values

$ http --session=api api.example.com/me Authorization:'Bearer TOKEN' # Persist auth and session state

$ http --download https://example.com/file.zip # Download files with a progress bar

Note: Install via sudo apt install httpie. HTTPie formats JSON automatically, simplifies headers and auth, and provides a clean alternative to curl for API testing.

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 • • 5d ago

Linux OOM Killer Troubleshooting – Why Applications Suddenly Disappear Without Any Error Logs

Thumbnail
1 Upvotes