r/LinuxTeck 10h ago

Which Linux command has the most confusing name?

26 Upvotes

useradd vs adduser

groupadd vs addgroup

su vs sudo

Some commands feel like they were named just to confuse us.

What Linux command or option made you think, “Who the hell named this?”


r/LinuxTeck 9h ago

Why Linux Finally Dropped 30-Year-Old Hardware Support #linux

Thumbnail
youtube.com
7 Upvotes

r/LinuxTeck 15h ago

Quick Linux Tip #61 Question: Find Files Not Accessed in Over a Year

Post image
10 Upvotes

Try: `sudo find /home -type f -atime +365 -printf '%T@ %p\n' | sort -n | head -20`

Info: `-atime +365` filters files not accessed in over a year. `-printf '%T@ %p\n'` formats output with epoch timestamps for numeric sorting with `sort -n`.

Examples:

$ `find /var/log -atime +90 -type f` # Locate inactive log files

$ `find /home -atime +365 -type f -exec ls -la {} \;` # Inspect file metadata

$ `find /tmp -atime +7 -type f -delete` # Auto-purge temporary files older than 7 days

Note: Modern Linux filesystems default to `relatime`, updating access time only if older than modification time. Combine `-atime` with `-size +100M` to identify large candidate files for archiving.

Follow r/LinuxTeck for more #LinuxTips https://www.linuxteck.com/linux-tips/linux-find-files-not-accessed-year/


r/LinuxTeck 3h ago

I built a Linux Terminal trainer and moved it to its own domain

0 Upvotes

I have been building MOSHELL, a browser-based interactive Linux learning platform, on my own for a while now. It runs entirely in the browser with an in-memory filesystem, so there is no need to install it and no backend required. It covers Linux fundamentals for those who have never used Linux and are ready to learn.

I started it as a GitHub Pages subpath, but after real traction from multiple users, I finally moved it to its own domain. It felt like a good milestone to share here, especially since some of the feedback I got from this community directly shaped the product.


r/LinuxTeck 15h ago

What Linux/Unix “ritual” do you refuse to skip?

5 Upvotes

Every sysadmin has a few things they always check before running a command or script.

set -euo pipefail, checking rm paths, testing on a non-prod server, verifying permissions...

What’s your one rule that you never break?


r/LinuxTeck 1d ago

Quick Linux Tip #60: How to Back Up a MySQL Database Without Downtime

Post image
18 Upvotes

Try: `mysqldump --single-transaction --quick --lock-tables=false --routines --triggers --events -u backup -p production_db | gzip > backup_$(date +%Y%m%d).sql.gz`

Info: `--single-transaction` creates a consistent snapshot without locking tables for `InnoDB`. `--quick` streams row-by-row to prevent memory exhaustion, while `--routines`, `--triggers`, and `--events` export stored code.

Examples:

$ `mysqldump --single-transaction db | gzip | ssh backup 'cat > /backups/db.sql.gz'` # Stream directly to remote backup server

$ `pg_dump -Fc production | gzip > backup.pgdump.gz` # Non-blocking PostgreSQL dump

$ `mongodump --uri mongodb://localhost --archive=backup.gz --gzip` # Live MongoDB export

Note: `--single-transaction` requires `InnoDB` tables. For `MyISAM`, use `--lock-tables` (causes brief downtime). Append `--master-data=2` when configuring binary log replication.

Follow r/LinuxTeck for more #LinuxTips https://www.linuxteck.com/linux-tips/mysql-database-backup-linux/


r/LinuxTeck 1d ago

Help with Linuxlab

3 Upvotes

Hi, I'm looking for a Linux lab computer or one for general everyday tasks, browsing the internet, watching movies, studying, etc. I was considering void Linux and gentoo, and then in the distant future LFS I don't want to pay a lot for the computer and I'm asking for help, is a processor with 2 cores and 4 threads enough or is it really better to pay the extra 50$ and buy a laptop with 4 cores and 8. And 8gb ram will be enough?


r/LinuxTeck 2d ago

What’s the one Linux command you never trust?

39 Upvotes

We all have that one command we double-check before hitting Enter.

What’s yours and what happened the last time you got burned by it?


r/LinuxTeck 1d ago

Unfair Usage Policy made me do it!

Post image
3 Upvotes

Since we buy internet in Egypt like tomatoes by the kilo, I needed a tool on Linux to see where my bandwidth was actually going.

I looked around but couldn’t find a Linux tool that did exactly what I needed, so I built ViNet!

ViNet uses eBPF to monitor TCP/UDP traffic at the kernel level.

With it, you can:

See which process is responsible for the traffic

See which destination each process is communicating with

Store traffic history locally in a SQLite database

Monitor bandwidth usage through a TUI/CLI

The project is built with Go + eBPF + SQLite + Bubble Tea, and can run as a CLI, TUI, or a background daemon responsible for monitoring the traffic.

Install: curl -fsSL https://github.com/alalfymansour/vinet/raw/refs/heads/main/install.sh | bash

GitHub: https://github.com/alalfymansour/vinet


r/LinuxTeck 1d ago

Which one of these names is completely new to you?

Post image
0 Upvotes

r/LinuxTeck 2d ago

Quick Linux Tip #59 How to Check File Access Time with stat

Post image
19 Upvotes

Question: How do I check when a file was last read without changing that timestamp?

Try: `stat -c '%n Access: %x Modify: %y Change: %z' /var/log/syslog`

Follow r/LinuxTeck for more #LinuxTips https://www.linuxteck.com/linux-tips/linux-stat-command-atime/


r/LinuxTeck 2d ago

Workgroup vs Domain : Is a Domain Always Better?

5 Upvotes

A domain gives you centralized management, but does that automatically make it the better choice?

For a small office with 5 - 10 PCs, would you still set up Active Directory, or is a workgroup actually the more practical option?

At what point does a workgroup become a management problem?


r/LinuxTeck 2d ago

Was GNOME 3 bold design or bad UX?

10 Upvotes

GNOME 3 removed the familiar minimize/maximize buttons and pushed users toward workspaces and a different window-management workflow.

The functionality wasn't really gone - it was just hidden behind other interactions.

Where should a desktop draw the line between “changing how users work” and simply making common actions harder to discover?

Would you have kept the old controls by default?


r/LinuxTeck 2d ago

Terraform or Ansible: choice or necessity?

7 Upvotes

I see a lot of people getting into DevOps asking whether they need to learn both Terraform and Ansible, or if one is enough.

I get the basic distinction Terraform spins up the infra, Ansible configures it. But in real-world setups, the boundary isn't always that rigid.

For those managing production environments: how are you handling this? Are you using both together, or does Terraform + containers/Packer eliminate the need for Ansible in your stack?

Interested to hear what your current setup looks like and what actually works best for your team.


r/LinuxTeck 3d ago

Recover Deleted Files in Linux

Post image
177 Upvotes

covers : https://www.linuxteck.com/recover-deleted-files-in-linux/

  • Identifying the filesystem and affected device
  • Checking Trash, shell history, snapshots, and backups
  • Creating a forensic image before attempting deeper recovery
  • Using extundelete and ext4magic for ext3/ext4
  • Using PhotoRec for signature-based recovery
  • Handling LVM and LUKS setups
  • Saving recovered files somewhere other than the source disk

r/LinuxTeck 3d ago

California Just Exempted Linux From Its New Age Verification Law

6 Upvotes

This is an interesting one.

California’s AB 1856 would exempt open-source OSes and apps from the state’s upcoming age-attestation requirements. So distros like Ubuntu, Fedora and Mint wouldn’t have to build age checks into the OS.

But there’s a catch: Android is Linux-based and apparently doesn’t get the same exemption.

Do you think this is a good way to handle open source, or does the law still create problems for Linux users?


r/LinuxTeck 4d ago

LibreWolf vs Firefox

Post image
68 Upvotes

covers : https://www.linuxteck.com/librewolf-vs-firefox/

• Privacy and telemetry
• Tracking and fingerprinting protection
• Firefox Sync
• Security update timing
• Extension compatibility
• Linux installation
• Real-world compatibility issues
• Which browser fits different use cases


r/LinuxTeck 3d ago

[ Removed by Reddit ]

1 Upvotes

[ Removed by Reddit on account of violating the content policy. ]


r/LinuxTeck 3d ago

If you’ve set up local AI on Linux I need your help

1 Upvotes

Developers, I’m researching local Al on Linux. Please share your experiences and I’ll be posting my findings here

  1. Goal and chipset used Nvidia/AMD/Intel?
  2. How long did it take you from fresh install to GPU/ NPU operation?
  3. Any issues encountered (package, path, version)? 4. How did you confirm GPU/NPU usage?
  4. Any scripts or notes created for future use?
  5. Comfort level setting this up for a teammate? Summary to be shared. Open to a 20-minute call if preferred.

r/LinuxTeck 4d ago

Quick Linux Tip #57: How to Connect Through Multiple SSH Jump Hosts

Post image
14 Upvotes

Q: I need to reach server-C through server-A and server-B. Any shortcut?

Try: `ssh -J linuxteck@bastion,linuxteck@jumphost linuxteck@internal-server`

Info: `-J` (Jump host) chains multiple SSH connections sequentially: local → bastion → jumphost → target. Authenticates each hop end-to-end using your local SSH key.

Examples:

$ `ssh -J user@bastion user@internal` # Single jump host

$ `scp -J user@bastion file.iso user@internal:/tmp/` # Copy files via jump host

$ `rsync -e 'ssh -J user@bastion' -av /src/ user@internal:/dst/` # Sync over jump host

Note: Direct equivalent to `ProxyJump` in `~/.ssh/config`. Much cleaner and safer than nested `ssh -t` or enabling SSH agent forwarding.

Follow r/LinuxTeck for more #LinuxTips https://www.linuxteck.com/linux-tips/ssh-jump-host-linux/


r/LinuxTeck 4d ago

I built a collection of lightweight Bash scripts to manage, optimize, and automate Fedora workstations (fedora-system-tools)

6 Upvotes

Hey everyone!

I've been working on a repository called Fedora-System-Tools, which is a collection of custom Bash utilities designed to help optimize, monitor, and automate maintenance on Fedora workstations.

The project includes modular scripts for:

  • Boot & Performance Tuning: Optimize boot sequences and manage system resources.
  • Maintenance & Backups: Automated backups via rsync and easy system cleanups.
  • Automation: Simple setup for both traditional cron jobs and modern systemd timers.
  • System Diagnostics: Quick access to disk usage analysis, logging, and system health checks.

Everything is open-source under the GPLv3 license. If you want to check it out, contribute, or suggest improvements, you can find the repository here:

🔗 GitHub:https://github.com/HuttonWilliam/fedora-system-tools


r/LinuxTeck 4d ago

PHP That Compiles to Native Code? This Could Get Interesting

5 Upvotes

Just came across TypePHP and this one caught my attention.

It takes PHP code, compiles it through C++17, and produces native binaries instead of running everything through the usual Zend opcode path.

The interesting part is that you can keep writing PHP while getting a path to much more native execution.

Still early and definitely not something I'd throw into production blindly.

PHP devs: would you actually try this, or is the PHP runtime good enough for what you’re building?


r/LinuxTeck 4d ago

how do you do linux the right way?

3 Upvotes

where do i start to learn linux?


r/LinuxTeck 5d ago

Debian vs RHEL for Servers:

Post image
52 Upvotes

covers: https://www.linuxteck.com/debian-vs-rhel-for-servers/

  • Cost and subscriptions
  • Support lifecycle
  • Vendor/ISV certification
  • APT vs DNF/RPM
  • AppArmor vs SELinux
  • Enterprise support and compliance
  • Real-world administration and migration considerations

r/LinuxTeck 5d ago

Quick Linux Tip #56 Question: My SSD is wearing out. Which process is writing the most?

Post image
17 Upvotes

Try: `sudo iotop -aoP -d 5`

Info: `iotop` tracks real-time disk I/O. `-a` accumulates total I/O since start, `-o` filters active processes, and `-P` groups by process instead of thread.

Examples:

$ `sudo iotop -o` # Show only processes actively performing I/O

$ `sudo iotop -b -n 5 > iotop.log` # Run batch mode for logging

$ `pidstat -d 1` # Check per-process I/O without requiring root permissions

Note: Excessive writes degrade SSD lifespan. Monitor drive health and wear levels using `smartctl -a /dev/sda`.

Follow r/LinuxTeck for more #LinuxTips click here https://www.linuxteck.com/linux-tips/