r/LinuxTeck • • 5h ago Bravo

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

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

Verify LDAP Users in Linux Using ldapsearch - 139

Post image
6 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 • • 1h ago

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

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

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

Thumbnail gallery
1 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 • • 18h ago

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

Post image
4 Upvotes

r/LinuxTeck • • 1d ago

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

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

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

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

Are Cheap VPS Hosting Providers Worth It?

Thumbnail reddit.com
3 Upvotes

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

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

Thumbnail reddit.com
0 Upvotes

r/LinuxTeck • • 1d ago

Where is your main website hosted right now?

Thumbnail reddit.com
2 Upvotes

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

94 Linux programs energy graded

Thumbnail isene.org
8 Upvotes

r/LinuxTeck • • 2d ago

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

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

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

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

20 Linux Directories

59 Upvotes

r/LinuxTeck • • 2d ago

94 Linux programs energy graded

2 Upvotes

r/LinuxTeck • • 3d 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/


r/LinuxTeck • • 3d ago

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

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

I keep forgetting package manager commands when switching Linux distros 😂

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

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

Thumbnail
youtu.be
8 Upvotes

r/LinuxTeck • • 3d 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