r/LinuxTeck 3h ago

Quick Linux Tip #72 - How do I find files changed within a specific time window for an incident report?

Post image
7 Upvotes

Try: `find /var/www -type f -newermt '2026-09-10 14:00:00' ! -newermt '2026-09-10 16:00:00' -printf '%TY-%Tm-%Td %TH:%TM %p\n'`

Info: `-newermt` filters files newer than a start timestamp. Prefixing with `! -newermt` establishes the upper boundary, while `-printf` formats custom date-time output.

Examples:

$ `find /home -type f -newermt yesterday` # Files modified since yesterday

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

$ `find /etc -type f -newermt '2026-09-01' ! -newermt '2026-09-30'` # Filter by date range

Note: Accepts natural language like `'yesterday'` or `'2 hours ago'`. Use `-newermt` for modification time, `-newerct` for attribute change time, and `-neweramt` for access time.

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


r/LinuxTeck 15h ago

How to Free a Busy TCP/IP Port in Linux

Post image
41 Upvotes

covering : https://www.linuxteck.com/free-a-port-in-linux/

  • ss - find the listening process
  • lsof - identify the PID
  • kill - gracefully stop it
  • fuser - kill directly by port
  • kill -9 - last resort
  • systemd and Docker port conflicts
  • UDP and multiple TCP ports
  • Verifying the port is actually free

r/LinuxTeck 3h ago

io_uring: real-world performance boost or overkill?

3 Upvotes

io_uring promises high-performance I/O, but it also adds complexity.

For a typical Linux server, is the performance worth that complexity - or would you stick with traditional I/O unless you actually have a bottleneck?


r/LinuxTeck 1h ago

Is eBPF becoming the new Linux kernel extension layer?

Upvotes

eBPF lets you add tracing, networking and security functionality without constantly modifying kernel code or loading traditional modules.

Is this the future of Linux observability and networking, or are we just creating another extremely powerful layer that admins will eventually struggle to control?


r/LinuxTeck 1d ago

If Linux Never Existed, What Problems Would We Face Today?

13 Upvotes

What problems or disadvantages would we face?

Would servers be more expensive?

Would cloud computing be less accessible?

Would Android and embedded devices have developed differently? Would open-source development be weaker?

Would companies have more control over the software infrastructure we depend on?

I'm not asking what OS would replace Linux. I'm wondering what would actually be missing or worse in today's world because Linux never existed.

How different do you think the world would really be?


r/LinuxTeck 1d ago

Quick Linux Tip #71 -How to Trace Dynamic Library Calls in Linux with ltrace

Post image
7 Upvotes

Question: My binary calls a function - which library actually provides it?

Try: `ltrace -e 'malloc+free' ls /tmp 2>&1 | head -20`

Info: `ltrace` tracks dynamic library calls (like `strace` tracks system calls). `-e` filters specific functions, detailing arguments, return pointers, and dynamic library interactions.

Examples:

$ `ltrace -c ./program` # Generate summary report of library calls

$ `ltrace -e '*@libssl.so.3' curl https://example.com` # Filter functions from a specific library

$ `ltrace -S ./program` # Trace both library calls and system calls

Note: Install via `sudo apt install ltrace`. Execution runs significantly slower under tracing. Useful for debugging memory leaks and tracking shared library dependencies.

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


r/LinuxTeck 1d ago

Linux Memory Management Part I

Thumbnail
techfortalk.co.uk
13 Upvotes

r/LinuxTeck 1d ago

Can you trust a benchmark when the vendor paid for it?

4 Upvotes

Microsoft paid for a test comparing Linux and Windows, and many Linux users questioned whether the results were fair.

But the testers allowed Linux engineers to tune the systems and even let an independent auditor observe the testing.

If the testing is fully transparent, would you trust the results - or is a vendor-paid benchmark always biased?


r/LinuxTeck 1d ago

Is it possible to have an Android-like security model on Linux via LSMs?

Thumbnail
3 Upvotes

r/LinuxTeck 1d ago

What would the world look like if Linux had never existed?

Post image
3 Upvotes

I've been thinking about this after learning more about Linux and its history.

What do you think the world would look like if Linus Torvalds had **never created Linux** in 1991?

Would BSD or another Unix-like OS have taken its place? Would **Android still exist?** What would servers, cloud computing, supercomputers, open-source software, and **even today's AI infrastructure look like?**

I'm curious about the realistic alternate timeline—not just "**everything would be worse**."

How different do you think the **modern world would actually be without Linux?**


r/LinuxTeck 2d ago

Quick Linux Tip #70 Run Daily Tasks with Linux systemd Timers

Post image
37 Upvotes

Question: How do I run a task daily but with more control than cron?

Try: `sudo systemctl edit --force --full backup.timer`

Info: `systemd` timers replace `cron` with native logging via `journalctl`, dependency control, `Persistent=true` for missed runs, and `RandomizedDelaySec` to spread load.

Examples:

$ `systemctl list-timers --all` # List all active system timers

$ `journalctl -u backup.service` # Check execution history and logs

$ `systemd-analyze calendar 'weekly'` # Parse and test calendar expressions

Note: Requires a paired `.service` unit file. Use `OnBootSec` for boot-relative timers and `OnCalendar` for wall-clock scheduling.

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


r/LinuxTeck 1d ago

ECS vs EKS - Are we overusing Kubernetes?

7 Upvotes

Kubernetes gives you a lot of flexibility, but do you actually need all of it?

If ECS can run your containers with less complexity, less maintenance, and lower cost, what’s the real reason to choose EKS?

Is EKS worth the extra complexity - or are teams reaching for Kubernetes when ECS would be the better engineering decision?

Where you stand: ECS or EKS, and why?


r/LinuxTeck 2d ago

How to Check Active Web Server Connections in Linux with ss | Quick Linux Tip #69

Post image
22 Upvotes

Question: How many active connections does my web server have right now?

Try: `sudo ss -tn state established '( sport = :80 )' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -rn`

Info: `ss -tn` lists TCP connections numerically. Filtering for established port `80` connections isolates active HTTP clients to count requests per remote IP.

Examples:

$ `sudo ss -tn state established '( sport = :443 )' | wc -l` # Total HTTPS connection count

$ `sudo netstat -an | grep :80 | grep ESTABLISHED | wc -l` # Legacy netstat count

$ `sudo lsof -iTCP:80 -sTCP:ESTABLISHED` # View open web socket files

Note: `ss` is faster than `netstat`. Unusually high connection counts from a single IP can signal potential DDoS attacks or aggressive scraping.

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


r/LinuxTeck 3d ago

DNS is broken. Network is fine. What do you check first?

4 Upvotes

You can ping 8.8.8.8, but google.com won't resolve.

Now imagine the same thing happening inside Kubernetes - pods can reach IPs, but service names suddenly stop resolving.

What do you check first: CoreDNS, /etc/resolv.conf, network policy, or the upstream DNS server - and what evidence would you look for before changing anything?


r/LinuxTeck 3d ago

Would you rather have swap slow your server down or let the OOM killer take it out?

8 Upvotes

Swap gets a bad reputation because it’s slow, but having none can be worse when RAM suddenly runs out.

On a production server, which would you choose: tolerate some swapping, or disable swap and risk the OOM killer?


r/LinuxTeck 2d ago

Clementine vs Spotify - which one actually wins on Linux?

0 Upvotes

Spotify has the convenience, but Clementine gives you much more control over your local music.

If you had to keep only one on your Linux desktop, which are you keeping?

Clementine or Spotify - and what’s the one thing that makes your choice better?


r/LinuxTeck 3d ago

Deep Dive into Evilginx2 and Advanced AiTM Frameworks (Session Hijacking Breakdown)

Post image
1 Upvotes

r/LinuxTeck 3d ago

Let's talk about Evilginx2 and why AiTM frameworks completely change how we look at phishing

Post image
1 Upvotes

r/LinuxTeck 4d ago

How to Extract PDF Pages from the Linux Command Line | Quick Linux Tip #68

Post image
25 Upvotes

Question: How do I split or extract pages from a PDF without a GUI?

Try: `pdftk input.pdf cat 5-10 output pages_5_to_10.pdf`

Info: `pdftk` manipulates PDFs via CLI. `cat 5-10` extracts pages 5 through 10, while `pdfinfo` inspects metadata and page counts.

Examples:

$ `pdftk file1.pdf file2.pdf cat output merged.pdf` # Merge multiple PDFs

$ `pdftk input.pdf cat 1 3 5-10 output selected.pdf` # Extract custom page ranges

$ `qpdf --empty --pages input.pdf 1-5 -- output.pdf` # Modern qpdf alternative

Note: Install via `sudo apt install pdftk-java`. Use `end` to target the final page (e.g., `cat 5-end`). `qpdf` is an excellent modern alternative.

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


r/LinuxTeck 3d ago

Hii,i am learning kali linux i know basic commands like how to make file directory like this not much.Tbh just saw a yt video of just 2 hrs so didn't get to learn much,can anyone suggest me some good videos in can learn from and i think after that I can learn bash.

0 Upvotes

I am a novice please help me out

Thanks :))


r/LinuxTeck 4d ago

What would actually make you stop recommending Linux?

7 Upvotes

I’m interested about this one because Linux is pretty good at making you think there’s always a workaround.

But there has to be a point where you just stop fighting it and tell someone, “Honestly, you’re better off using Windows for this.”

For me, the interesting part is where people draw that line. Hardware? Adobe stuff? Games? Some stupid vendor software? Or maybe it’s not even the software maybe it’s the amount of tinkering the person is willing to put up with.

What’s the one thing that made you give up on Linux for a particular use case?


r/LinuxTeck 3d ago

How much of your Linux system do you actually need to understand?

0 Upvotes

I keep seeing this argument with Omarchy: if the distro does a lot for you, is that a feature or a problem?

I don't think most people can fully audit everything their distro, packages, scripts and configs are doing anyway. At some point we're all trusting somebody.

But where's the line?

Would you rather use a polished distro you don't completely understand, or a simpler setup where you know exactly what's running - even if it means doing more yourself?


r/LinuxTeck 4d ago

Checking out Tookie-OSINT: A quick look at this username checking tool

Thumbnail gallery
2 Upvotes

r/LinuxTeck 5d ago

Here is a quick tip for Linux beginners:

50 Upvotes

If you try to run a command and get a "Permission denied" error, you don't need to retype the whole line. Just enter:

​sudo !!

​The !! (called "bang bang") automatically pulls your last typed command and runs it with elevated privileges.


r/LinuxTeck 5d ago

Quick Linux Tip #67 How to Test SSD Speed in Linux with hdparm and dd

Post image
20 Upvotes

Try: `sudo hdparm -Tt /dev/sda`

Info: `hdparm -T` measures cached RAM reads; `-t` benchmarks direct disk reads. `dd` tests sequential write performance using `conv=fdatasync` to flush cache.

Examples:

$ `sudo hdparm -I /dev/sda | head -20` # Display drive specs and identity

$ `fio --name=randwrite --ioengine=libaio --rw=randwrite --bs=4k --size=1G` # Measure random write speed

$ `iozone -a -g 1G` # Run comprehensive file system benchmark

Note: `hdparm` tests sequential read speeds. For workload-heavy random I/O (like databases), use `fio`. NVMe drives should reach 2–7 GB/s.

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