Linux tips, CLI tools & real-world sysadmin lessons
Helping beginners → advanced users improve their daily Linux workflow
LinuxTeck | Tutorials • Tools • Mistakes • Learnings https://www.linuxteck.com/

@linuxteck.bsky.social
Linux tips, CLI tools & real-world sysadmin lessons
Helping beginners → advanced users improve their daily Linux workflow
LinuxTeck | Tutorials • Tools • Mistakes • Learnings https://www.linuxteck.com/
Follow @linuxteck - 1 practical Hosting tip every day. For more #HostingTips click here www.linuxteck.com/hosting-tips/
Quick HostingTip #3: Block SSH brute-force attacks with fail2ban try sudo apt install -y fail2ban && printf '[sshd]\nenabled = true\nmaxretry = 4\nbantime = 1h\nfindtime = 10m\n' | sudo tee /etc/fail2ban/jail.d/sshd.local > /dev/null && sudo systemctl restart fail2ban [email protected]
Want to master Linux one command at a time?
Follow @linuxteck - 1 practical Linux tip every day. For more #LinuxTips click here www.linuxteck.com/linux-tips/
Quick Linux Tip #140
Q: How do I chain commands safely in shell scripts?
Try:set -euo pipefail && cd /opt/app && git pull && make test && make deploy && systemctl reload myapp
Info: Exits on error and chains safe commands.
Follow @linuxteck.bsky.social - 1 practical Linux tip every day.
Get Newer Software on Debian Without Switching to Testing
www.linuxteck.com/debian-backp...
Did you know Debian Stable can run selected newer software packages without moving your whole system to Testing
Keep your stable base. Upgrade selectively
Follow @linuxteck - 1 practical Hosting tip every day. For more #HostingTips click here www.linuxteck.com/hosting-tips/
Quick Hosting Tip #2: Measure TTFB
- Cached pages: often under 0.2s
- ~0.8s: often uncached app/DB work
- TTFB minus TLS (~0.76s here): post-TLS + server time
Test yours:
curl -o /dev/null -s -w 'TLS: %{time_appconnect}s\nTTFB: %{time_starttransfer}s\n' example.com
Follow @linuxteck.bsky.social
Want to master Linux one command at a time?
Follow @linuxteck - 1 practical Linux tip every day. For more #LinuxTips click here www.linuxteck.com/linux-tips/
Quick Linux Tip #139
Q: How do I verify a user in LDAP/AD exists before adding them?
Try:ldapsearch -x -H ldap://ldap.example.com -b 'dc=example,dc=com' -D 'cn=admin,dc=example,dc=com' -W '(uid=jsmith)' cn mail
Info: Queries LDAP/AD directories for matching users.
Follow @linuxteck.bsky.social
Follow @linuxteck - 1 practical Hosting tip every day. For more #HostingTips click here www.linuxteck.com/hosting-tips/
Quick Hosting Tip #1: Shared, VPS, cloud, or dedicated?
• Shared: many sites, no root
• VPS: virtual slice + root
• Cloud: hourly VMs + scaling
• Dedicated: full physical server
Check yours:
systemd-detect-virt; nproc; free -h | awk '/Mem/{print "RAM: "$2}'
Follow @linuxteck.bsky.social
Want to master Linux one command at a time?
Follow @linuxteck - 1 practical Linux tip every day. For more #LinuxTips click here www.linuxteck.com/linux-tips/
Quick Linux Tip #138
Q: I have a .deb file. How do I install it including its dependencies?
Try:sudo apt install ./package.deb
Info: Installs a local .deb package and resolves dependencies.
Want to master Linux one command at a time?
Follow @linuxteck.bsky.social - 1 Linux tip every day.
Want to master Linux one command at a time?
Follow @linuxteck - 1 practical Linux tip every day. For more #LinuxTips click here www.linuxteck.com/linux-tips/
Quick Linux Tip #137
Q: How many physical CPU cores does my server actually have?
Try: lscpu | grep -E 'Socket|Core|Thread'
Info: Calculates physical cores vs. logical threads.
Want to master Linux one command at a time?
Follow @linuxteck.bsky.social - 1 practical Linux tip every day.
Want to master Linux one command at a time?
Follow @linuxteck - 1 practical Linux tip every day. For more #LinuxTips click here www.linuxteck.com/linux-tips/
Quick Linux Tip #136
Q: How do I update a config value in 500 files at once, safely?
Try:sed -i.bak 's/debug=true/debug=false/g' /etc/myapp/*.conf
Info: Edits files in place and keeps .bak backups.
Want to master Linux one command at a time?
Follow @linuxteck.bsky.social - 1 Linux tip every day.
Managed vs Unmanaged VPS - Which One Fits Your Needs?
www.linuxteck.com/managed-vs-u...
Managed VPS offers help with server maintenance and administration. Unmanaged VPS gives you greater control and typically lower costs, but requires skills.
Want to master Linux one command at a time?
Follow @linuxteck - 1 practical Linux tip every day. For more #LinuxTips click here www.linuxteck.com/linux-tips/
Quick Linux Tip #135 Question: What files on my server can anyone write to? (security audit) Try: sudo find / -type f -perm -o+w ! -path '/proc/*' ! -path '/sys/*' 2>/dev/null | head -20 Info: Finds world-writable files to spot security risks. Follow @linuxteck - 1 practical Linux tip every day