LinuxTeck - Linux Sysadmins Community - RHEL, CentOS, Ubuntu, Debian & Rocky Linux
92 subscribers
325 photos
2 videos
1 file
466 links
LinuxTeck is a high-quality tutorial site dedicated to beginners, system administrators, developers, and everyone interested in learning about Linux. https://www.linuxteck.com/
Download Telegram
How Sysadmins Use AWK for Log Analysis: Real-World Examples Every Admin Should Know

AWK remains one of the most powerful tools in a Linux sysadmin's toolkit.

Learn how system administrators use AWK to analyze logs, count requests, identify errors, find top IPs, filter events, and extract valuable insights from massive log files.

Whether you're managing Linux servers, troubleshooting applications, or preparing for a SysAdmin/DevOps role, these practical AWK examples can save hours of manual work.

Read the full guide:
https://www.linuxteck.com/how-sysadmins-use-awk-for-log-analysis/

#linuxteck #Linux #AWK #SysAdmin #DevOps #LinuxAdmin #LogAnalysis #LinuxCommands #SRE #ServerManagement
BAT Command in Linux: Read Files Better in the Terminal


The BAT command brings modern features to file viewing in Linux:

✓ Syntax highlighting
✓ Git integration
✓ Line numbers
✓ Theme support
✓ Better readability

If you're still using cat for everything, this guide is worth a look.

https://www.linuxteck.com/bat-command-in-linux/

#Linux #OpenSource #DevOps #SysAdmin #BATCommand #linuxteck
SSH is one of the first tools every Linux administrator learns, but it's also one of the most common sources of frustration when connections fail.
Read the complete guide:
https://www.linuxteck.com/ssh-troubleshooting-guide/
From "Connection Refused" and "Permission Denied" to host key warnings, timeouts, and firewall issues, this step-by-step SSH troubleshooting guide helps you diagnose problems faster and fix them correctly.
#Linux #SSH #SysAdmin #LinuxAdmin #DevOps #ServerManagement #OpenSSH #LinuxTeck
Linux runlevels and systemd targets don't have to be confusing.

Learn:
• Runlevel meanings (0–6)
• Systemd target mapping
• Multi-user vs graphical mode
• Checking current target
• Changing default boot mode

Read more:
https://www.linuxteck.com/systemd-targets-boot-modes-linux-explained/

#linuxteck #Linux #Systemd #RHEL #SysAdmin #DevOps #LinuxLearning
How do you systematically troubleshoot systemd service failures on Linux?
Post:
One of the biggest challenges for Linux admins is identifying why a systemd service fails to start. I put together a practical guide that covers a structured troubleshooting workflow using systemctl, journalctl, dependency analysis, permissions, exit codes, timeout issues, and automatic restart policies.
It also includes production-friendly examples and common mistakes to avoid.
Guide:
https://www.linuxteck.com/fix-systemd-service-errors-complete-guide/
Quick Linux Tip #1

Question:How do I change a string in all files at once?

Try:find . -type f -name '*.txt' -exec sed -i 's/old/new/g' {} +

Info:Use find with sed to search and replace text across multiple files efficiently. The -i flag edits files in place.

Examples:

$ find . -name '*.py' -exec sed -i 's/import os/import sys/g' {} +

$ grep -rl 'TODO' . | xargs sed -i 's/TODO/DONE/g'

$ find /var/www -name '*.php' -exec sed -i 's/old/new/g' {} +

Note:Always backup before bulk editing. Use grep -rl first to preview what will change.

Follow @LinuxTeck for more #LinuxTips
Quick Linux Tip #2

Question:How do I clean up old log files automatically?

Try:sudo find /var/log -name '*.log' -mtime +30 -delete

Info:Delete log files older than 30 days. The -mtime +30 finds files modified more than 30 days ago. Use sudo because /var/log files are owned by root.

Examples:
$ sudo find /var/log -name '*.log' -mtime +30 -delete
$ find ~/Downloads -type f -size +1G -delete
$ find /tmp -name '*.tmp' -mtime +7 -delete

Note:Use sudo for system directories. Use -ls first to preview what will be deleted. Deletion is permanent.

Follow @LinuxTeck for more #LinuxTips 
See less
Quick Linux Tip #3

Question:How do I backup files fast, only copying changes?

Try: rsync -avz --delete /source/ /destination/

Info: rsync only transfers changed files, making backups much faster. -a archive, -v verbose, -z compress.

Examples:

$ rsync -avz /home/user/ /mnt/backup/
$ rsync -avz --delete remote:/data/ /local/backup/
$ rsync -avz --exclude='*.tmp' /src/ /dst/

Note: Use --dry-run first. A trailing slash (/source/) copies contents; omitting it (/source) copies the folder itself.

Follow @LinuxTeck for more #LinuxTips
AI agents are transforming modern DevOps by automating Infrastructure as Code (IaC), deployments, monitoring, and self-healing workflows.

If you're curious how natural language can become working infrastructure, this guide walks through the complete process.

https://www.linuxteck.com/ai-agents-for-devops-automation-guide/

#linuxteck #DevOps #AI #Linux #Terraform
Quick Linux Tip #4

Question:How long does my script take and how much CPU does it use?

Try:time ./backup.sh

Info:time command shows execution time. real=wall clock, user=CPU for program, sys=CPU for system calls.

Examples:

$ time ./deploy.sh
$ /usr/bin/time -v ./process.py
$ time tar -czf backup.tar.gz /home/data

Note:Use /usr/bin/time -v for detailed resource usage including memory.

Follow @linuxteck for more #LinuxTips
Quick Linux Tip #5

Question:How do I schedule tasks to run automatically?

Try:crontab -e

Info:crontab -e opens editor for scheduled tasks. Format: minute hour day month weekday command.

Examples:
$ crontab -e
$ crontab -l
$ crontab -r

Note: Use journalctl -u cron to inspect active execution logs. Always use full path variables in your commands.

Follow @LinuxTeck for more #LinuxTips
Quick Linux Tip #6

Question: What files is a specific process using?

Try: lsof -p 3456

Info: lsof shows all files, sockets, and connections used by a process. Great for troubleshooting.

Examples:

$ lsof -p 3456
$ lsof -i :8080
$ lsof -u username

Note:Use -i for network connections. -i :PORT shows process using that port.

Follow @LinuxTeck for more #LinuxTips