Skip to the content
Skip to content
Top Menu
Sep 25, 2026
  • About Us
  • FAQ
  • Write For Us
  • Tech News
  • Facebook
  • Twitter
  • LinkedIn
  • Twitter
  • fa-youtube
Join to our facebook group
logo
  • Home
  • Linux
    • Distributions
      • RHEL-Centos
      • Rocky Linux
      • Ubuntu
    • LINUX COMMANDS
    • Shell Scripting
    • Cheat Sheets
      • Linux
      • Docker
    • Linux General
    • Linux Opinion
    • Troubleshooting
  • Enterprise Linux
  • Linux Interview Q & A
    • Linux Basics Q&A
    • Shell Scripting Q&A
      • Level 1: Beginner (0–1 Year)
    • Networking Q&A
  • Guides
    • Hosting
  • Linux Tips
Main Menu

Linux Tips

find large files in Linux
QUICK LINUX TIPS : 80

How to Find Large Files Modified Recently in Linux

Sep 25, 2026 - by john

My server ran out of disk. Which files grew the most in the last 24 hours? Try: sudo find / -type f -mtime -1 -size +100M -exec ls -lah {} \; 2>/dev/null Info: Uses -mtime -1 to target files modified within the last 24 hours and -size +100M to isolate […]

Read More
chmod 644 755 Linux
QUICK LINUX TIPS : 79

How to Set 644 for Files and 755 for Directories in Linux

Sep 24, 2026 - by john

How do I set 644 for files and 755 for directories in one shot? Try: find /var/www/site -type d -exec chmod 755 {} + && find /var/www/site -type f -exec chmod 644 {} + Info: Uses -type d to grant directories execute permissions (755) and -type f to grant files […]

Read More
monitor network interface traffic in Linux
QUICK LINUX TIPS : 78

How to Monitor Network Interface Traffic in Linux with sar

Sep 22, 2026 - by john

Which network interface is being overloaded? Try: sar -n DEV 1 5 Info: sar -n DEV displays real-time network interface statistics. The 1 5 arguments sample network activity every 1 second for 5 samples, showing throughput such as rxkB/s and txkB/s, along with packet rates. Examples: $ sar -n TCP […]

Read More
git compare branches
QUICK LINUX TIPS : 77

Git Diff Between Main and Feature Branch

Sep 22, 2026 - by john

How do I see all differences between production and my feature branch? Try: git log --oneline --left-right --graph main...feature/new-api Info: The three-dot ... notation compares the two branches from their common ancestor. --left-right marks commits unique to the left branch with < and commits unique to the right branch with […]

Read More
OpenSSL self-signed certificate
QUICK LINUX TIPS : 76

Generate a Self-Signed SSL Certificate with OpenSSL

Sep 20, 2026 - by john

I need SSL for local development. How do I generate a certificate quickly? Try: openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365 -nodes -subj '/CN=localhost' Info: Generates a 4096-bit RSA self-signed certificate valid for 1 year. The -x509 option creates a self-signed certificate, while -subj supplies […]

Read More
taskset CPU affinity
QUICK LINUX TIPS : 75

Pin Linux Processes to Specific CPUs with taskset

Sep 18, 2026 - by john

My high-priority process needs dedicated cores. How do I pin it to specific CPUs? Try: taskset -cp 0,1 3456 Info: taskset sets or retrieves CPU affinity. The -c option specifies CPU numbers, while -p applies the affinity to an existing process by PID. Examples: $ taskset -c 0-3 ./program  # […]

Read More
compress old Linux logs
QUICK LINUX TIPS : 74

Compress Old Linux Logs and Keep 30 Days

Sep 17, 2026 - by john

My logs are eating disk space. How do I compress old ones and keep only 30 days? Try: find /var/log/app -name '*.log' -mtime +7 -exec gzip {} \; && find /var/log/app -name '*.log.gz' -mtime +30 -delete Info: Compresses logs older than 7 days with gzip to save disk space, then […]

Read More
Linux btrace
QUICK LINUX TIPS : 73

How to Trace Disk I/O Activity in Linux with btrace

Sep 16, 2026 - by john

Something is thrashing my disks. How do I see block-level filesystem activity live? Try: sudo btrace /dev/sda Info: btrace traces block-layer I/O events in real time. It shows low-level read and write activity along with timing, process IDs, and I/O stages, helping you identify which processes are generating disk activity. […]

Read More
find files changed in Linux
QUICK LINUX TIPS : 72

How to Find Files Changed During a Specific Time in Linux

Sep 15, 2026 - by john

How do I find files changed within a specific time window for an incident report? 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 specified timestamp. Prefixing it with ! creates an upper time boundary, allowing […]

Read More
Linux ltrace
QUICK LINUX TIPS : 71

How to Trace Dynamic Library Calls in Linux with ltrace

Sep 14, 2026 - by john

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, similar to how strace tracks system calls. The -e option filters specific functions, showing arguments, return values, and dynamic library interactions. Examples: $ […]

Read More
Linux systemd timers
QUICK LINUX TIPS : 70

Run Daily Tasks with Linux systemd Timers

Sep 13, 2026 - by john

How do I run a task daily but with more control than cron? Try: sudo systemctl edit --force --full backup.timer Info: systemd timers provide a flexible alternative to cron with native logging through journalctl, dependency control, Persistent=true for missed runs, and RandomizedDelaySec to spread system load. Examples: $ systemctl list-timers […]

Read More
check active connections Linux
QUICK LINUX TIPS : 69

How to Check Active Web Server Connections in Linux with ss

Sep 12, 2026 - by john

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 using numeric addresses and ports. Filtering […]

Read More
extract PDF pages Linux
QUICK LINUX TIPS : 68

How to Extract PDF Pages from the Linux Command Line

Sep 11, 2026 - by john

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 from the command line. cat 5-10 extracts pages 5 through 10, while pdfinfo can inspect PDF metadata and page counts. Examples: $ pdftk file1.pdf file2.pdf cat […]

Read More
test SSD speed Linux
QUICK LINUX TIPS : 67

How to Test SSD Speed in Linux with hdparm and dd

Sep 10, 2026 - by john

Is my SSD really as fast as advertised? Try: sudo hdparm -Tt /dev/sda Info: hdparm -T measures cached RAM reads; -t benchmarks direct disk reads. dd can test sequential write performance using conv=fdatasync to flush cached writes. Examples: $ sudo hdparm -I /dev/sda | head -20  # Display drive specs […]

Read More
redirect stdout and stderr Linux
QUICK LINUX TIPS : 66

How to Redirect stdout and stderr to Separate Files in Linux

Sep 09, 2026 - by john

How do I save errors and normal output to different files? Try: ./deploy.sh > success.log 2> errors.log Info: > redirects stdout (file descriptor 1), while 2> redirects stderr (file descriptor 2). Separating the two streams keeps normal output and error messages in different files for easier troubleshooting. Examples: $ ./script […]

Read More
Linux pstree
QUICK LINUX TIPS : 65

How to View Child Processes in Linux with pstree

Sep 08, 2026 - by john

How do I see all child processes spawned by a parent? Try: pstree -pau 3456 Info: pstree displays process hierarchies. -p includes PIDs, -a shows full command arguments, and -u lists usernames. Curly braces {} indicate threads. Examples: $ pstree -pau $$  # View process tree starting from current shell […]

Read More

Posts navigation

1 2 … 5 Next

Trending

  • Learn the basics of the echo command in Linux for New Users
  • 9 Steps to Install Ubuntu 22.04 LTS (Step-by-Step With Screenshots)
  • RHEL vs Ubuntu Server: Best Enterprise Linux in 2026
  • 10 CLI Commands You Have Probably Never Used - But Should
  • Complete Linux System Administration Guide for 2026
  • Why Fedora Became the Best Linux Distro for Almost Everyone
  • Top 53 Bash Command Hierarchy Interview Questions for Beginners (Part 2/8)
  • How LVM Works in Linux
  • How to configure Two Node High Availability Cluster On RHEL/CentOS/RockyLinux
  • Linux System Administration Command Cheat Sheet
  • Popular
  • Comments
  • Tags
echo command in Linux

Learn the basics of the echo command in Linux for New Users

Aug 01, 2019

install ubuntu on virtualbox

9 Steps to Install Ubuntu 22.04 LTS (Step-by-Step With Screenshots)

Feb 16, 2023

Aneeshya SLearn Archiving and Compression in Linux like a Pro
muglLearn Archiving and Compression in Linux like a Pro
No tags to show

Google Add as a preferred
source on Google
  • Contact US
  • Privacy Policy
  • Terms of use
  • Affiliate Disclosure
  • Advertise
Copyright © 2026 LinuxTeck. All Rights Reserved.
Material from our website cannot be republished ONLINE or OFFLINE without our permission.
L