Recent posts tagged sysadmin

Fabien B. • 1 day • in Discussions • 2 min read forumDiscussion group7 participants post-cover-36357
  • ai
  • llm
  • architecture
  • discuss
BashSnippets • 3 days • in Articles • 1 min read
The reflex when /etc says no is to put sudo in front. From a script: $ sudo echo "maxconn=200" > /etc/demo.conf pd.sh: line 2: /etc/demo.conf: Permission denied exit=1 $ echo "maxconn=200" | sudo -n tee /etc/demo.conf sudo: a password is required ex...
post-cover-33583
  • bash
  • linux
  • sysadmin
  • devops
BashSnippets • Nov 18 • in Articles • 1 min read
A four-line cleanup script, cd /srv/drop, rm .log, echo "cleanup done", run on a scratch tmpfs. At 80,290 files it emptied the directory. At 80,291: $ /srv/cleanup.sh /srv/cleanup.sh: line 4: /usr/bin/rm: Argument list too long cleanup done exit=0 $...
post-cover-30659
  • bash
  • linux
  • sysadmin
  • devops
BashSnippets • Nov 17 • in Articles • 1 min read
Two rsync commands one character apart both exit 0 and put the same file in different places. I ran them side by side in a scratch directory, rsync 3.5.0, with one file at projects/app/main.sh: $ rsync -a projects backup-a/ $ find backup-a -type f b...
post-cover-29099
  • bash
  • linux
  • devops
  • sysadmin
BashSnippets • Nov 12 • in Articles • 1 min read
On August 6 my laptop booted to a blank terminal. lightdm has Restart=always, and systemctl status said active running. Xorg had entered the NVIDIA init about 140 ms before the device nodes existed and hung there for fourteen hours: state S, 20 ms of...
post-cover-29098
  • bash
  • linux
  • sysadmin
  • devops
BashSnippets • Nov 10 • in Articles • 1 min read
On August 28 my laptop sat at 88 % disk. I deleted a 44.6 GB video intermediate I could rebuild any time. du on the folder dropped 44 GB. df on the filesystem moved 5. XFCE's thumbnailer, tumblerd, still had the file open, and a deleted file's blocks...
post-cover-29097
  • bash
  • linux
  • devops
  • sysadmin
BashSnippets • Nov 5 • in Articles • 1 min read
EADDRINUSE right after you stopped the server usually has one cause: the process you launched is not the process holding the socket. I reproduced it on my own machine with the wrapper shape npm run dev uses, a shell that starts the real server as a c...
post-cover-29095
  • bash
  • linux
  • devops
  • sysadmin
Tom Smithverified • 1 day • in Articles • 9 min read
Generating code got cheap. Verifying it didn't. That gap showed up everywhere this week — in a rewrite that Claude built in a week and took months to prove, in PRs that passed review while a feature drifted off-plan, in security scans where three mod...
post-cover-36324
  • devops
  • ai
  • codereview
  • agentai
tanit365 • Nov 2 • in Articles • 4 min read
Most small-business security advice is written for owners. This one is written for whoever actually holds the admin password — usually one person wearing the sysadmin, developer, and "IT guy" hat at the same time. Below is the same work reframed as c...
  • security
  • cybersecurity
  • smallbusiness
  • sysadmin
BashSnippets • Oct 29 • in Articles • 1 min read
A world-writable file can be rewritten by every account on the machine — including the service account your web server runs as. Code executing as www-data through a compromised plugin doesn't need root: any chmod 777 you left behind during past debug...
post-cover-28028
  • bash
  • linux
  • security
  • sysadmin
BashSnippets • Oct 28 • in Articles • 1 min read
A 64M scratch tmpfs, a worker process holding its log open on file descriptor 3, and the usual reflex when space runs low: rm the log. du on the directory dropped from 48M to 0. df stayed at 48M used. The next 32M write failed with No space left on d...
post-cover-30657
  • bash
  • linux
  • sysadmin
  • devops
CodeWithRomi • Oct 25 • in Articles • 9 min read
Originally published at codewithromi.comhttps://codewithromi.com/patch-these-four-linux-kernel-local-root-vulns-now-dirtyah6-pppoeject-tunderflow-and-diagspill/. Four Linux kernel vulnerabilities went public on 18 September 2026, and they are the kin...
post-cover-32434
  • linux
  • kernel
  • cybersecurity
  • sysadmin
BashSnippets • Oct 21 • in Articles • 1 min read
A demo script called report, two directories on PATH, and one mv between them, all on a scratch tmpfs: $ report report 2.1: 14 jobs ok exit=0 $ mv /opt/jobs/bin/report /opt/jobs/newbin/report $ ls -l /opt/jobs/newbin/report rwxrwxr-x 1 root root 42 ...
post-cover-30653
  • bash
  • linux
  • devops
  • sysadmin
BashSnippets • Oct 15 • in Articles • 1 min read
The standard bash alerting pattern ends the same way everywhere you read it: pipe the finding into mail. So I checked what my own box would actually do with that line. $ type -a mail mailx sendmail mail not found mailx not found sendmail not found ...
post-cover-28024
  • bash
  • linux
  • devops
  • sysadmin
BashSnippets • Oct 14 • in Articles • 1 min read
I wrote four lines to capture a bash error for a guide. One empty variable, tested twice: $ cat queue-check.sh !/bin/bash count="" if $count -eq 0 ; then echo "queue empty"; fi if $count -eq 0 ; then echo "queue empty "; fi $ bash queue-check.sh...
post-cover-29670
  • bash
  • linux
  • devops
  • sysadmin
BashSnippets • Oct 8 • in Articles • 1 min read
I set three log files to known ages with touch -d — exactly 30 days, 30 days and 12 hours, and 31 days — then ran what I thought was a 30-day retention policy: find . -name '.log' -mtime +30 It returned one file: the 31-day-old one. The 30.5-day f...
post-cover-28022
  • bash
  • linux
  • devops
  • sysadmin
BashSnippets • Oct 6 • in Articles • 1 min read
A disk almost never fails loudly. It fills a percent at a time until writes stop, and at 100% nothing reports "disk full" — the database throws write errors about its own files, apps crash-loop, and logging a write itself stops recording at the exact...
post-cover-28021
  • bash
  • linux
  • devops
  • sysadmin
BashSnippets • Oct 1 • in Articles • 1 min read
A four-line YAML file port: 8080, supportemail, transport: tcp, reportdir: /var/reports and the rename most people type first: sed -i 's/port/listenport/g' app.yml. GNU sed 4.9 exited 0 and printed nothing, because -i never does. Afterwards the file ...
post-cover-28020
  • bash
  • linux
  • devops
  • sysadmin
alexvoste • Sep 25 • in Articles • 6 min read
Somewhere out there is a job posting that describes a "Linux System Administrator" as someone who "maintains servers." That description is technically true the way "doctors deal with bodies" is technically true. It tells you nothing, it undersells th...
post-cover-28624
  • devops
  • sysadmin
  • security
  • linux
spounka • Sep 24 • in Articles • 5 min read
Most users would schedule their tasks using a cronjob, and that's perfectly reasonable Introduction > I will assume you are running on a linux machine with systemd which you should be if you're running on a server, other init systems such as runit ...
post-cover-28485
  • linux
  • selfhosted
  • sysadmin
BashSnippets • Sep 24 • in Articles • 1 min read
A script that writes straight to the path a consumer reads can die halfway and leave a torn file that everything downstream loads as complete. No error appears anywhere, because the only process that failed is gone. I tested the fix the unfriendly wa...
post-cover-28018
  • bash
  • linux
  • devops
  • sysadmin
BashSnippets • Sep 16 • in Articles • 1 min read
Who owns that port? One ss flag answers it without sudo For months my dev server started on 3001 because something already held 3000, and I kept stepping around it. When I finally asked, ss -ltn 'sport = :3000' showed the port listening on every in...
post-cover-27426
  • bash
  • linux
  • security
  • sysadmin
chevron_left
🔥 24 posts • 👩‍💻 7 active writers

✨ Want to write in this topic?
Share your learning. Get discovered. Build your profile.
Join CoderLegion

💡 Why developers use CoderLegion
Track learning • Share posts • Get ranked publicly
Create your profile