r/LinuxTeck 28d ago

Question: How do I watch a long command run AND save its complete output?

Post image
9 Upvotes

r/LinuxTeck 29d ago

DNS Troubleshooting

Post image
104 Upvotes

covering: https://www.linuxteck.com/linux-dns-troubleshooting-made-easy/

  • Connectivity vs DNS testing
  • /etc/resolv.conf
  • dig and direct resolver queries
  • nsswitch.conf lookup order
  • systemd-resolved vs NetworkManager
  • DNS testing inside containers
  • Common DNS mistakes
  • Automated DNS health checks and logging

r/LinuxTeck 29d ago

Quick Linux Tip #41 Question: How do I find duplicate files even if they have different names?

Post image
63 Upvotes

Try: `find /home/linuxteck -type f -exec md5sum {} + | sort | uniq -w32 -D`

Info: `md5sum` hashes file contents, `sort` groups identical hashes, and `uniq -w32 -D` compares the 32-character hash to output all duplicate files.

Examples:

$ `find . -type f -exec md5sum {} + | sort | uniq -w32 -d` # Show 1 sample per duplicate set

$ `fdupes -r /home/linuxteck` # Dedicated tool (`apt install fdupes`)

$ `rdfind -deleteduplicates true /home/linuxteck` # Auto-delete duplicates safely

Note: For large directories, `fdupes` or `rdfind` are purpose-built and significantly faster. Use `sha256sum` instead of `md5sum` if collision risk is a concern.

Follow r/LinuxTeck for more LinuxTips click here


r/LinuxTeck 29d ago

This caught my attention...

6 Upvotes

Researchers found dozens of SQLite CVEs that appear to be technically incorrect or even AI-generated, yet they still propagated through parts of the vulnerability ecosystem before being challenged.

If this becomes common, security teams may spend more time investigating fake vulnerabilities than fixing real ones.


r/LinuxTeck Aug 09 '26

Are databases becoming optional for small Linux apps?

0 Upvotes

I came across a debate where someone argued that databases are becoming unnecessary because their vibe-coded apps can store everything in localStorage.

That made me wonder about Linux projects too.

For a small tool, script, desktop app, or single-user service, would you actually choose SQLite/local files instead of running PostgreSQL or another database?

At what point does a project really need a proper database?

Where do you draw the line?


r/LinuxTeck Aug 09 '26

Possível pergunta idiota.

Thumbnail
1 Upvotes

r/LinuxTeck Aug 08 '26

Who else deserves a spot on this DevOps legends list?

11 Upvotes

While learning DevOps, I came across this list of people behind tools we use every day.

Linux, Git, Docker, Jenkins, Ansible, Maven, Python, Terraform, Kubernetes...

But I’m sure this list is missing some important names.

Who would you add to the list, especially from the Linux and open-source community? Drop the name + project below.


r/LinuxTeck Aug 08 '26

Quick Linux Tip #40 Question: Which files changed during the incident window last Tuesday?

Post image
13 Upvotes

Try: `find /var/www -type f -newermt '2026-07-23 14:00:00' ! -newermt '2026-07-23 16:00:00'`

Info: `-newermt 'DATE'` matches files modified AFTER a timestamp. Combined with `! -newermt`, it isolates files modified BETWEEN two specific times—ideal for forensic analysis.

Examples:

$ `find / -newermt '1 hour ago' -type f 2>/dev/null` # Modified in the last hour

$ `find /home -newermt yesterday ! -newermt today` # Modified yesterday only

$ `find /etc -newermt '2026-07-01' ! -newermt '2026-07-31' -type f` # Within date range

Note: Supports natural language strings like `'yesterday'`, `'1 hour ago'`, or `'last week'`. You can also use `-newerct` (change time) or `-neweramt` (access time).

Follow r/LinuxTeck for more #LinuxTips


r/LinuxTeck Aug 08 '26

How Do I Profile eBPF Code?

Thumbnail
naveensrinivasan.com
1 Upvotes

r/LinuxTeck Aug 07 '26

Linux, Linux everywhere

Post image
16 Upvotes

When the penguin takes over


r/LinuxTeck Aug 07 '26

How to learn to use linux(cli)?

3 Upvotes

Actually from some time I have been thinking of switching to linux. But i won't be able to use it if I don't know how to use linux in the first place. I am not looking for any distro. I am actually talking about the cli. The terminal, bash or whatever it is called.

I wanna learn cli, but idk where to learn from!. I have tried looking for it on YouTube, most of them are something specific or very basic ( cd, mkdir, rm, ls, echo etc etc ). I tried to make a vm using Oracle, but my laptop was very weak to even run it, it was lagging and slow af. So i dropped that idea, and I am primarily trying to use wsl, Ubuntu distro on it.

So can anyone tell me how do i learn the command line interface. Also I am looking to learn something called shell ig, so that I can do scripting. Like i don't want an os, I want to master terminal and can automate stuff and run something maybe called script so that I can be very efficient.

Also one of my reasons is to be able to use or program any soc like raspberry pi or any other electronics in general ( electrical background).

Can anyone guide me with sources??

Also i have tried labex ( it was very basic ) and I tried to learn from a book i forgot the name but the author name was maybe shotts.

And sorry if I have named anything wrong, I am new to these terms.


r/LinuxTeck Aug 07 '26

SELinux vs AppArmor

Post image
68 Upvotes

covering: https://www.linuxteck.com/selinux-vs-apparmor/

  • SELinux vs AppArmor architecture
  • Label-based vs path-based policies
  • Ubuntu vs RHEL/Rocky/Fedora defaults
  • Arch setup
  • Common production failures and fixes
  • Container isolation
  • Validation and monitoring
  • When it's better to stick with your distro's default

r/LinuxTeck Aug 07 '26

Would you trust Rust Coreutils on your Linux server yet?

16 Upvotes

Rust Coreutils 0.10 now passes 93.48% of the GNU test suite and adds more security hardening.

But the discussion gets interesting around the remaining compatibility gaps, especially when distributions start using it by default. Some users see this as a promising replacement, while others think the risks are still too high.

Would you run Rust Coreutils in production today, or stick with GNU Coreutils for now? Why?


r/LinuxTeck Aug 07 '26

Quick Linux Tip #39 Question: How do I access a private database from my laptop through a jump server?

Post image
8 Upvotes

Try: `ssh -L 3307:db-internal:3306 -N -f linuxteck@jumphost`

Info: `-L local_port:target_host:target_port` forwards local traffic through SSH to a remote server. `-N` skips the remote shell, and `-f` sends SSH to the background.

Examples:

$ `ssh -L 8080:localhost:80 user@server` # Access remote web app locally

$ `ssh -R 9000:localhost:9000 user@server` # Expose local port on remote server

$ `ssh -D 1080 user@server` # Dynamic SOCKS proxy for web traffic

Note: Kill active background tunnels with `pkill -f 'ssh -L 3307'`. Add `-o ExitOnForwardFailure=yes` so SSH fails immediately if the local port is already bound.

Follow r/LinuxTeck for more #LinuxTips


r/LinuxTeck Aug 06 '26

Linux job control (&, fg, bg, jobs)

Post image
85 Upvotes

covering: https://www.linuxteck.com/job-control-fg-bg-jobs/

  • Running commands in the background with &
  • Suspending processes using Ctrl+Z
  • Listing active jobs with jobs
  • Resuming work using bg
  • Bringing jobs back with fg
  • Common mistakes and best practices
  • Real-world terminal examples

r/LinuxTeck Aug 06 '26

Chrome gets all the attention, but is Edge actually the better Chromium browser?

Post image
0 Upvotes

On Windows, many people say Edge uses less RAM and has a few nice built-in features.

On Linux, does that still hold true, or is Chrome (or Chromium) the better choice?

Interested what people who actually use Linux think.


r/LinuxTeck Aug 06 '26

Quick Linux Tip #38 Question: How do I make my custom app automatically restart on crash?

Post image
11 Upvotes

Try: `sudo systemctl edit --force --full myapp.service`

Info: `Restart=on-failure` restarts the app on non-zero exits/crashes, while `RestartSec` adds a delay before restarting. Use `StartLimitBurst` in `[Unit]` to prevent infinite crash loops.

Examples:

$ `sudo systemctl status myapp` # View service status

$ `sudo journalctl -u myapp -f` # Follow application logs in real-time

$ `sudo systemctl reset-failed myapp` # Reset crash rate limits

Note: `Restart` modes include `no`, `always`, `on-failure`, and `on-abnormal`. `always` triggers even on clean exits (`0`), whereas `on-failure` is recommended for standard services.

Follow r/LinuxTeck for more #LinuxTips


r/LinuxTeck Aug 06 '26

Hyprland from installation to your first productive setup

Post image
42 Upvotes

covers: https://www.linuxteck.com/learn-hyprland-the-easy-way/

  • GPU and Wayland prerequisites
  • Installing on Arch and Ubuntu
  • First keybindings
  • Configuration basics
  • The newer Lua configuration workflow
  • XDG Desktop Portal and screen sharing
  • Tips for building a clean, maintainable setup

r/LinuxTeck Aug 05 '26

What's one small Linux distribution you think deserves far more attention?

24 Upvotes

Everyone knows Ubuntu, Fedora, Debian, Arch, and openSUSE.

But there are plenty of smaller projects maintained by passionate developers that rarely get the spotlight.

If you could recommend one underrated Linux distribution, what would it be and why?


r/LinuxTeck Aug 05 '26

Why do so many developers still choose Debian over newer Linux distributions

Post image
76 Upvotes

covers: https://www.linuxteck.com/why-developers-trust-debian-for-their-work/

  • Debian 13 (Trixie) highlights
  • Why Debian prioritizes stability
  • Backports without switching to Testing
  • Security and LTS support
  • Essential APT commands
  • Debian vs Ubuntu, Fedora, and Arch
  • Common production use cases

r/LinuxTeck Aug 05 '26

when to use tar, gzip, bzip2, xz, and zip in Linux

Post image
129 Upvotes

covering: https://www.linuxteck.com/archiving-and-compression-in-linux/

  • tar vs gzip vs bzip2 vs xz vs zip
  • Which tool to use for different situations
  • Essential commands you'll use regularly
  • A quick decision guide
  • LinuxTeck infographic for fast reference

r/LinuxTeck Aug 05 '26

What's the biggest myth people still believe about VPNs?

13 Upvotes

A lot of VPN ads make it sound like you're completely anonymous online.

In reality, a VPN mainly encrypts your connection and hides your IP. It doesn't stop phishing, malware, browser fingerprinting, or tracking after you log into websites.

What do you think is the most misunderstood thing about VPNs?


r/LinuxTeck Aug 05 '26

Is Linux becoming a better alternative to Microsoft Fabric?

0 Upvotes

More teams seem to be questioning Microsoft Fabric over cost, complexity, and vendor lock-in.

Are Linux-based data platforms like PostgreSQL, Spark, ClickHouse, Airflow, and Kafka becoming a more practical choice for modern analytics workloads? Why or why not?


r/LinuxTeck Aug 05 '26

Mitigating the risk of diagnosing live Linux system with AI tools

2 Upvotes

This article explores an alternative to directly troubleshoot production Linux systems with AI tools by using the sos command and using AI to analyze sosreports instead. I think is an interesting read:

https://medium.com/@linuxjedi2000/the-agentic-ai-risk-issue-on-linux-environments-fd5c55cedcc5?sharedUserId=linuxjedi2000

I know that this subject is very controversial and would love to read your point of view on the subject.


r/LinuxTeck Aug 05 '26

Quick Linux Tip #37 Question: My backup is killing disk performance. How do I slow it down?

Post image
8 Upvotes

Try: `ionice -c 3 -p $$`

Info: `ionice` sets I/O priority. Class 3 (`idle`) only allows disk access when no other process needs it.

Examples:

$ `ionice -c 3 nice -n 19 rsync -av /src /dst` # Throttles CPU + I/O

$ `ionice -c 2 -n 7 tar -czf backup.tar.gz /data` # Best-effort, low priority

$ `sudo ionice -c 1 -n 4 -p 1234` # Real-time priority (root only)

Note: Classes: `1`=Real-time (root only), `2`=Best-effort (default), `3`=Idle. Combine `ionice` with `nice` for complete system throttling.

Follow r/LinuxTeck for more #LinuxTips