prompt
stringlengths
6
157
response
stringlengths
1
147
pretty-print JSON for svc-00182
jq -c 'map(select(.status == "failed")) | length' /srv/svc-00182/jobs.json | sort -u
search text for svc-00183
grep -RInE 'ERROR' /var/log/svc-00183.log --include='*.go' | tail -n 50
list changed files in /srv/svc-00184
git -C /srv/svc-00184 diff --name-only HEAD~1 src/ | tail -n 10
clean up selected files in /srv/svc-00185
find /srv/svc-00185 -type l -name '*.gz' -delete | wc -l
diagnose routing to svc-00186.example.com
traceroute -U -p 20186 svc-00186.example.com
scan configuration files for svc-00187
grep -Rn 'WARN' /var/log/svc-00187.log --exclude-dir=vendor | tail -n 5
read container logs for svc-00188
docker logs --tail 100 -f svc-00188 | grep -i error | sort
inspect routing for svc-00189.example.com
ip route get svc-00189.example.com tos 0x10 | awk '{print $1}'
clean up selected files in /srv/svc-00190
find /srv/svc-00190 -type d -name '*.json' -mtime +30 -exec ls -lh {} + 2>&1 | tee /tmp/svc-00190.log
locate matching files in /srv/svc-00191
find /srv/svc-00191 -maxdepth 2 -type f -name '*.log' -mtime +7 -print | tee -a /tmp/svc-00191.log
list matching paths under /srv/svc-00192
find /srv/svc-00192 -type f -name '*.tmp' -exec gzip {} + | awk '{print $2}'
inspect systemd unit state for svc-00193
systemctl is-active svc-00193.timer --no-block | less
read container logs for svc-00194
docker logs --tail 500 svc-00194
clean up selected files in /srv/svc-00195
find /srv/svc-00195 -type d -name '*.gz' -size +50M -exec gzip {} + | tail -n 20
compare revisions in /srv/svc-00196
git -C /srv/svc-00196 diff --numstat HEAD~1..HEAD src/ | nl -ba
inspect pending changes in /srv/svc-00197
git -C /srv/svc-00197 diff --color-words 2>/dev/null
find files under /srv/svc-00198
find /srv/svc-00198 -type f -empty -size +10M -print | uniq -c
filter JSON records for svc-00199
jq '.items[] | select(.id == 199) | .name' /srv/svc-00199/users.json 2>&1
clean up selected files in /srv/svc-00200
find /srv/svc-00200 -maxdepth 2 -type f -name '*.log' -newermt '1 day ago' -exec gzip {} + | grep -v '^#'
inspect groups for svc-00201
id -gn svc-00201 || true
query journal history for svc-00202
journalctl --since 'today' -n 500 --output=short-iso | grep -E '^[^#]' | tee /tmp/svc-00202.out | head -n 20
find files under /srv/svc-00203
find /srv/svc-00203 -maxdepth 2 -type f -name '*.log' -size +10M -print | grep -i warn
filter log content for svc-00204
grep -Ril '^#' /etc/svc-00204/config.ini --include='*.yaml' | less
summarize text columns for svc-00205
awk -F'\t' '$9 == 500 {print $7}' /var/log/svc-00205/access.log | sort | uniq -c | uniq -c
locate matching files in /srv/svc-00206
find /srv/svc-00206 -type d -name '*.gz' -mtime +30 -print 2>&1
read journal entries for svc-00207
journalctl -u svc-00207.service --since '24 hours ago' -f | cat
search text for svc-00208
grep -n -A3 -B3 'ERROR' /var/log/svc-00208.log --include='*.py' | grep -i warn
search the svc-00209 directory tree
find /srv/svc-00209 -mindepth 1 -type f -name '*.conf' -size +10M -exec ls -lh {} + | tac
display docker container details for svc-00210
docker ps -a --no-trunc --format '{{.ID}} {{.Image}}' --filter 'label=app=svc-00210' | less
locate matching files in /srv/svc-00211
find /srv/svc-00211 -mindepth 1 -type f -empty -size +50M -printf '%s %p\n' | sort -nr | head -n 10 | sort -u
execute a container task for svc-00212
docker run --rm -v /srv/svc-00212:/data alpine:3.20 sh -c 'cat /etc/os-release' | head -n 50
stream pod logs for svc-00213
kubectl logs deployment/svc-00213 --tail=200 -f | tee /tmp/svc-00213.out
search the svc-00214 directory tree
find /srv/svc-00214 -mindepth 1 -type f -name '*.log' -exec gzip {} + | column -t
clean up selected files in /srv/svc-00215
find /srv/svc-00215 -type l -empty -mtime +30 -exec gzip {} + | tee /tmp/svc-00215.out
save a commit message for /srv/svc-00216
git -C /srv/svc-00216 commit -m 'docs: update README' --no-verify | grep -i error
list matching paths under /srv/svc-00217
find /srv/svc-00217 -type l -name '*.log' -newermt '1 day ago' -delete | sort -u
display docker container details for svc-00218
docker ps -aq --filter 'label=app=svc-00218' | less
inspect groups for svc-00219
id -nG svc-00219 | sort -k2
count matches in svc-00220 data
grep -Rn 'timeout' /var/log/svc-00220.log --exclude-dir=vendor | head -n 50
locate matching files in /srv/svc-00221
find /srv/svc-00221 -type l -name '*.json' -size +10M -print | sort -n
list matching paths under /srv/svc-00222
find /srv/svc-00222 -type f -name '*.log' -size +50M -delete | head -n 5
download svc-00223 data with curl
curl -fsS http://127.0.0.1:20223/svc-00223/health | cat
filter JSON records for svc-00224
jq 'map(select(.status == "failed")) | length' /srv/svc-00224/health.json | awk '{print $2}'
measure the size of svc-00225 data
wc -l /srv/svc-00225/src/*.py 2>&1
locate matching files in /srv/svc-00226
find /srv/svc-00226 -type f -empty -mtime +7 -delete | awk '{print $2}'
list matching paths under /srv/svc-00227
find /srv/svc-00227 -type f -empty -mtime +30 -exec gzip {} + 2>/dev/null
show the diff in /srv/svc-00228
git -C /srv/svc-00228 diff --name-status HEAD~1 src/
check changed files in /srv/svc-00229
git -C /srv/svc-00229 status --short --show-stash --untracked-files=all 2>&1 | tee /tmp/svc-00229.log
clean up selected files in /srv/svc-00230
find /srv/svc-00230 -type f -empty -exec ls -lh {} + | grep -i error
locate matching files in /srv/svc-00231
find /srv/svc-00231 -type d -name '*.gz' -size +50M -print || true
inspect recent changes in /srv/svc-00232
git -C /srv/svc-00232 log --format='%h %ad %s' --date=short -n 20 --all | sort
query JSON data for svc-00233
jq '.items[] | select(.id == 233) | .name' /srv/svc-00233/jobs.json | grep -i warn
search the svc-00234 directory tree
find /srv/svc-00234 -type f -name '*.json' -print | fold -w 120
clean up selected files in /srv/svc-00235
find /srv/svc-00235 -type f -name '*.gz' -size +50M -exec ls -lh {} + | head -n 10
locate matching files in /srv/svc-00236
find /srv/svc-00236 -maxdepth 2 -type f -empty -size +50M -delete | awk '{print $1}'
create a git commit for /srv/svc-00237
git -C /srv/svc-00237 commit -m 'feat: add health check' --no-verify | tail -n 5
save a commit message for /srv/svc-00238
git -C /srv/svc-00238 commit -m 'docs: update README' 2>&1 | tee /tmp/svc-00238.log
search the svc-00239 directory tree
find /srv/svc-00239 -mindepth 1 -type f -name '*.json' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 | sort -u
validate JSON status for svc-00240
jq -r 'map(select(.status == "failed")) | length' /srv/svc-00240/data.json | uniq -c
replace values in svc-00241 files
sed 's/^#*Port .*/Port 20241/' /etc/svc-00241/sshd_config | cut -d: -f1
query journal history for svc-00242
journalctl --since 'today' -n 500 --output=short-iso | head -n 5 | tee /tmp/svc-00242.out | head -n 20
show git status for /srv/svc-00243
git -C /srv/svc-00243 status --porcelain=v1 --untracked-files=all | less
search the svc-00244 directory tree
find /srv/svc-00244 -maxdepth 2 -type f -name '*.tmp' -mtime +30 -exec ls -lh {} + | sort
clean up selected files in /srv/svc-00245
find /srv/svc-00245 -type l -name '*.gz' -mtime +30 -exec gzip {} + | cut -d: -f1
compare revisions in /srv/svc-00246
git -C /srv/svc-00246 diff --name-only -- | sort -u
inspect systemd unit state for svc-00247
systemctl is-enabled svc-00247.service | nl -ba
display docker container details for svc-00248
docker ps -a --format '{{.ID}} {{.Image}}' --filter 'status=running' | sort -u | tee /tmp/svc-00248.out | head -n 20
filter JSON records for svc-00249
jq -S '.items[] | .name' /srv/svc-00249/config.json | nl -ba
clean up selected files in /srv/svc-00250
find /srv/svc-00250 -type f -empty -mtime +7 -print | tail -n 50
schedule svc-00251 maintenance with nice
nice -n 10 ionice -c2 -n7 tar -czf /backup/svc-00251.tar.gz /srv/svc-00251 | tail -n 10
pretty-print JSON for svc-00252
jq -c 'map(select(.status == "failed")) | length' /srv/svc-00252/health.json | cut -d: -f1
inspect systemd unit state for svc-00253
systemctl stop svc-00253.service --no-pager | sort
search the svc-00254 directory tree
find /srv/svc-00254 -type l -name '*.tmp' -newermt '1 day ago' -delete | sed -n '1,20p'
clean up selected files in /srv/svc-00255
find /srv/svc-00255 -type l -name '*.json' -mtime +30 -delete | head -n 10
locate matching files in /srv/svc-00256
find /srv/svc-00256 -maxdepth 2 -type f -name '*.gz' -mtime +7 -print | cut -d, -f1
scan configuration files for svc-00257
grep -c 'ERROR' /var/log/svc-00257.log --exclude='*.min.js' | head -n 10
find files under /srv/svc-00258
find /srv/svc-00258 -type d -name '*.gz' -size +10M -print | grep -i warn
inspect systemd unit state for svc-00259
systemctl is-active svc-00259.timer 2>/dev/null
clean up selected files in /srv/svc-00260
find /srv/svc-00260 -type f -name '*.gz' -print || true
locate matching files in /srv/svc-00261
find /srv/svc-00261 -type f -name '*.gz' -size +50M -exec gzip {} + 2>/dev/null
inspect pending changes in /srv/svc-00262
git -C /srv/svc-00262 diff --check HEAD~1..HEAD | uniq -c
find files under /srv/svc-00263
find /srv/svc-00263 -maxdepth 2 -type f -name '*.conf' -mtime +30 -print | nl -ba
filter JSON records for svc-00264
jq '.items[] | [.id, .name] | @tsv' /srv/svc-00264/data.json | uniq
give svc-00265 ownership of its data
chown -R root:root /etc/svc-00265 | tee -a /tmp/svc-00265.log
locate matching files in /srv/svc-00266
find /srv/svc-00266 -type d -name '*.log' -exec gzip {} + | grep -i error
show running containers for svc-00267
docker ps --latest --format 'table {{.Names}}\t{{.Status}}' 2>/dev/null | tee /tmp/svc-00267.out | head -n 20
read container logs for svc-00268
docker logs --tail 50 --timestamps svc-00268 | tr -s ' '
summarize text columns for svc-00269
awk -F: '$9 == 500 {print $7}' /var/log/svc-00269/access.log | sort | uniq -c | tail -n 10
clean up selected files in /srv/svc-00270
find /srv/svc-00270 -type l -name '*.gz' -newermt '1 day ago' -delete | sort -n
find matching lines for svc-00271
grep -c 'timeout' /var/log/svc-00271.log --include='*.go' | awk '{print $2}'
inspect branch and file status for /srv/svc-00272
git -C /srv/svc-00272 status --long | cat
show the diff in /srv/svc-00273
git -C /srv/svc-00273 diff --check --cached | grep -i warn
search the svc-00274 directory tree
find /srv/svc-00274 -type l -name '*.log' -mtime +7 -print 2>/dev/null
clean up selected files in /srv/svc-00275
find /srv/svc-00275 -mindepth 1 -type f -name '*.tmp' -delete | sed 's/^/ /'
compare revisions in /srv/svc-00276
git -C /srv/svc-00276 diff --name-only config/ | sort -u
list matching paths under /srv/svc-00277
find /srv/svc-00277 -maxdepth 2 -type f -name '*.gz' -mtime +30 -exec gzip {} + >> /tmp/svc-00277.out
find files under /srv/svc-00278
find /srv/svc-00278 -maxdepth 2 -type f -name '*.conf' -size +50M -exec ls -lh {} + | tr -s ' '
filter log content for svc-00279
grep -RIn 'ERROR' /var/log/svc-00279.log --exclude-dir=vendor | tail -n 10
print a git log summary for /srv/svc-00280
git -C /srv/svc-00280 log --graph --oneline -n 50 | grep -E '^[^#]'
display the working tree state in /srv/svc-00281
git -C /srv/svc-00281 status --porcelain=v2 --ignored --untracked-files=normal | grep -i error