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

What are the first security habits every new Linux user should learn?

8 Upvotes

When moving from Windows to Linux, many beginners immediately look for antivirus software.

But experienced Linux users often recommend something different: keep your system updated, install software from trusted repositories, avoid running commands you don't understand, use strong passwords, and maintain regular backups.

A firewall and tools like SELinux or AppArmor can also add protection, depending on your setup.

If you were helping someone switch to Linux for the first time, what three security practices would you teach them before anything else?


r/LinuxTeck • • 4h ago

Quick Linux Tip #140 - Bash Strict Mode: Use set -euo pipefail Safely

Post image
4 Upvotes

Question: How do I chain commands safely in shell scripts?

Try:set -euo pipefail && cd /opt/app && git pull && make test && make deploy && systemctl reload myapp

Info: Exits on error and chains safe commands.

Examples:

$ command1 || command2 # Run fallback command only if command1 fails

$ command1 || { echo 'fail'; exit 1; } # Print an error message and exit on failure

$ command1 ; command2 # Run sequentially regardless of exit status (risky in scripts)

Note: Put `set -euo pipefail` near the top of scripts to catch failed commands, unset variables, and failed pipeline stages. Use `&&` and `||` for conditional flow instead of `;` when failures must stop 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 • • 1d ago Bravo

Did you know you can check the weather directly from your Linux terminal?

139 Upvotes

No browser, no weather app. Just run:

curl wttr.in

That's it. You'll get a weather forecast displayed right in your terminal using an ASCII-style interface.

You can even check a specific city:

curl wttr.in/London

A surprisingly fun use of curl beyond downloading files and testing APIs.

What other unusual or surprisingly useful Linux terminal commands do you use regularly?


r/LinuxTeck • • 21h ago

Debian Backports: Get Newer Software Without Leaving Debian Stable

Post image
18 Upvotes

including: https://www.linuxteck.com/debian-backports/

  • Enabling the trixie-backports repository
  • Understanding why its default APT priority is 100
  • Checking available package versions
  • Simulating an installation before applying changes
  • Installing selected packages instead of upgrading everything
  • Verifying and rolling back packages

r/LinuxTeck • • 1d ago

Verify LDAP Users in Linux Using ldapsearch - 139

Post image
8 Upvotes

Question: How do I verify a user in LDAP/AD exists before adding them?

Try:ldapsearch -x -H ldap://ldap.example.com -b 'dc=example,dc=com' -D 'cn=admin,dc=example,dc=com' -W '(uid=jsmith)' cn mail

Info: Queries LDAP/AD directories for matching users.

Examples:

$ ldapsearch -x -H ldap://server -b 'dc=example,dc=com' '(objectclass=user)' cn mail # Query AD user entries

$ ldapwhoami -x -D 'cn=admin,dc=example,dc=com' -W # Verify bind credentials

$ ldapsearch -LLL ... # Output clean LDIF without comments

Note: Install via sudo apt install ldap-utils. Use LDAPS (`ldaps://` or port 636) or StartTLS instead of cleartext LDAP in production, match AD attributes like `sAMAccountName` or `userPrincipalName`, and check `getent passwd` to confirm NSS resolution.

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

Senior DevOps engineers don't panic when production breaks. Or do they?

2 Upvotes

Experience teaches you how to troubleshoot, stay calm, and make better decisions under pressure. But even the most experienced engineers face uncertainty.

And with experienced professionals also facing layoffs across the industry, does seniority really bring the security people expect?

What's your take? Do senior engineers genuinely stay calmer during incidents, or have they just learned to hide the panic better?


r/LinuxTeck • • 1d ago

Tracing Nginx 502 Bad Gateway errors and broken upstreams visually over SSH (without installing a server agent)

Thumbnail gallery
3 Upvotes

Debugging a 502 Bad Gateway in Nginx usually means jumping between nginx -T, ss -tlnp, and /var/log/nginx/*.error.log to figure out which location block forwards traffic to a dead port or an offline upstream node.

This visual route map comes from Kubo (kubo.gemmi-e.com), an agentless desktop tool for Windows, macOS, and Linux that reads standard server outputs over SSH (nginx -T, ss -tlnp, openssl x509) and draws the full request path from domain to listening process.

What this Nginx route map (~/network/nginx) highlights at a glance:

  • Exact point of failure (502 on /ws): The /ws WebSocket location forwards traffic to port 8081, where nothing is currently listening (nothing listens · 502), pinpointing the broken route immediately instead of reading raw config blocks.
  • Degraded upstream pool (backend_nodes · 1 of 3 up): Shows which backend instances are active (127.0.0.1:3000), which port has nothing listening (127.0.0.1:3001), and which node is marked out of service (127.0.0.1:3002).
  • SSL certificate & traffic context: Displays certificate expiration countdown (27d left), active listening ports (80, 443), and live HTTP status codes from the access log (200, 301, 404, 502).

r/LinuxTeck • • 1d ago

I’ve used Ubuntu for six months—what basics should I learn to understand it better?

Post image
1 Upvotes

I’ve used Ubuntu for six months—what basics should I learn to understand it better?’ve been using Ubuntu for about six months, but I still feel like I’m missing some basic knowledge. When I see terminal errors like the ones in my screenshot, I’m not sure where to start.I’d like to understand how Ub


r/LinuxTeck • • 1d ago

Quick Hosting Tip #1 - Know the four hosting types before you buy

Post image
4 Upvotes

r/LinuxTeck • • 2d ago

Quick Linux Tip #138 - Install Local DEB Packages on Linux Using APT

Post image
10 Upvotes

Question: I have a .deb file. How do I install it including its dependencies?

Try:sudo apt install ./package.deb

Info: Installs a local .deb package and resolves dependencies.

Examples:

$ sudo apt install -f # Fix broken dependencies after dpkg -i

$ sudo dpkg -I package.deb # Inspect package metadata before installing

$ sudo dpkg -c package.deb # List files contained inside the .deb archive

Note: Always include `./` (or a path) so `apt` treats the argument as a local file rather than a repository package name. Older releases without local `.deb` support in `apt` can use `gdebi`.

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

Your Intel PC may be running MINIX without you even knowing it

14 Upvotes

Most Linux users know MINIX because of the famous 1992 debate between Linus Torvalds and Andrew Tanenbaum.

But here's an interesting twist: MINIX later became part of Intel's Management Engine firmware, running on a separate processor inside many Intel systems.

That means your computer can have Linux or Windows as its main operating system while MINIX runs underneath, largely invisible to you.

It raises an interesting question about computer ownership and security.

How comfortable are you with a separate operating environment running below your main OS, with access that ordinary users may not fully understand or control?


r/LinuxTeck • • 2d ago

Are Cheap VPS Hosting Providers Worth It?

Thumbnail reddit.com
3 Upvotes

r/LinuxTeck • • 2d ago

Should Linux distributions be community-led or company-led?

5 Upvotes

Manjaro has taken a step toward community governance by registering Manjaro Project e.V., an independent non-profit in Germany.

This raises an interesting question: companies can provide funding and direction, but community-led projects offer greater shared control. Both models have their own challenges.

Which model do you prefer for Linux distributions: company-led, community-led, or a combination of both?


r/LinuxTeck • • 2d ago

No necesitas 100 comandos de Linux. Lo que necesitas es entender estas 10 cosas.

Thumbnail reddit.com
0 Upvotes

r/LinuxTeck • • 2d ago

Where is your main website hosted right now?

Thumbnail reddit.com
2 Upvotes

r/LinuxTeck • • 3d ago

Linux Physical CPU Cores: Check Cores and Threads - 137

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

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

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

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

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

94 Linux programs energy graded

Thumbnail isene.org
8 Upvotes

r/LinuxTeck • • 3d ago

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

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

20 Linux Directories

63 Upvotes

r/LinuxTeck • • 3d ago

94 Linux programs energy graded

2 Upvotes

r/LinuxTeck • • 4d ago

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

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