prompt
stringlengths
6
157
response
stringlengths
1
147
list matching paths under /srv/svc-20182
find /srv/svc-20182 -type d -name '*.conf' -mtime +30 -exec gzip {} + | head -n 20
find files under /srv/svc-20183
find /srv/svc-20183 -type l -name '*.conf' -size +50M -print | grep -i error
search the svc-20184 directory tree
find /srv/svc-20184 -type l -name '*.conf' -printf '%s %p\n' | sort -nr | head -n 10 | tac
inspect systemd unit state for svc-20185
systemctl is-enabled svc-20185.timer --no-pager | cut -d, -f1
find matching lines for svc-20186
grep -n -A3 -B3 'secret' /etc/svc-20186 --include='*.yaml' | uniq
show running containers for svc-20187
docker ps -a --no-trunc --format '{{.ID}} {{.Image}}' --filter 'label=app=svc-20187' | cut -d, -f1
find files under /srv/svc-20188
find /srv/svc-20188 -type l -name '*.gz' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 | paste -sd, -
list changed files in /srv/svc-20189
git -C /srv/svc-20189 diff --check HEAD~2..HEAD src/ | awk '{print $1}'
restart svc-20190 by signaling its workers
pkill -HUP -f svc-20190 | head -n 50
locate matching files in /srv/svc-20191
find /srv/svc-20191 -type d -name '*.log' -size +10M -exec gzip {} + | tac
check port bindings for svc-20192
ss -tlnp | grep -E 'svc-20192|LISTEN' | tee -a /tmp/svc-20192.log
test TCP connectivity for svc-20193
nc -zv svc-20193.example.com 9090 | tac
search the svc-20194 directory tree
find /srv/svc-20194 -type d -name '*.log' -mtime +30 -delete | sed 's/^/ /'
order svc-20195 data numerically
sort -r /srv/svc-20195/names.txt | nl -ba
query systemd status for svc-20196
systemctl stop svc-20196.socket --no-pager | uniq -c
scan configuration files for svc-20197
grep -c 'TODO' /srv/svc-20197 --include='*.py' | grep -i error
search text for svc-20198
grep -Ril 'secret' /etc/svc-20198 --include='*.go' >> /tmp/svc-20198.out
filter JSON records for svc-20199
jq -c '.services | keys[]' /srv/svc-20199/health.json | tee -a /tmp/svc-20199.log
process log fields for svc-20200
awk -F: '/ERROR/ {count++} END {print count+0}' /var/log/svc-20200.log | tee /tmp/svc-20200.out
query DNS records for svc-20201.example.com
dig +short svc-20201.example.com A | cut -d, -f1
list matching paths under /srv/svc-20202
find /srv/svc-20202 -mindepth 1 -type f -name '*.conf' -mtime +7 -exec ls -lh {} +
inspect groups for svc-20203
id -un svc-20203 | cut -d: -f1
filter JSON records for svc-20204
jq -e 'map(select(.status == "failed")) | length' /srv/svc-20204/users.json | fold -w 120
count matches in svc-20205 data
grep -RIn 'panic[(]' /srv/svc-20205 --exclude='*.min.js' | tail -n 5
list git history for /srv/svc-20206
git -C /srv/svc-20206 log --name-status -n 10 --all | sort -u
scan configuration files for svc-20207
grep -Ril 'ERROR' /var/log/svc-20207.log --include='*.yaml' | tee -a /tmp/svc-20207.log
read container logs for svc-20208
kubectl logs deployment/svc-20208 --previous | sort
search the svc-20209 directory tree
find /srv/svc-20209 -type l -name '*.json' -mtime +30 -delete | tee -a /tmp/svc-20209.log
summarize git differences for /srv/svc-20210
git -C /srv/svc-20210 diff --name-only --cached src/ | grep -E '^[^#]'
list git history for /srv/svc-20211
git -C /srv/svc-20211 log --format='%h %ad %s' --date=short -n 10 --grep='fix' | cat
list matching paths under /srv/svc-20212
find /srv/svc-20212 -type f -name '*.conf' -mtime +7 -print | sort -nr
start a disposable docker container for svc-20213
docker run --rm -d --network host busybox:1.36 df -h 2>&1 | tee /tmp/svc-20213.log
filter JSON records for svc-20214
jq -e '.services | keys[]' /srv/svc-20214/users.json | cat
clean up selected files in /srv/svc-20215
find /srv/svc-20215 -type f -name '*.json' -size +50M -printf '%s %p\n' | sort -nr | head -n 10 | grep -v '^#'
install svc-20216 from source
make -C /srv/svc-20216 -B build | awk '{print $2}'
summarize text columns for svc-20217
awk -F: '{sum += $5} END {print sum}' /srv/svc-20217/metrics.txt | tac
find files under /srv/svc-20218
find /srv/svc-20218 -type f -empty -size +10M -exec ls -lh {} + | sed -n '1,20p'
search the svc-20219 directory tree
find /srv/svc-20219 -type l -empty -size +50M -exec ls -lh {} + | rev
summarize svc-20220 storage use
du -sh /srv/svc-20220/config | sed -n '1,20p'
find matching lines for svc-20221
grep -RInE 'FIXME' /srv/svc-20221 --include='*.py' | tail -n 50
scan configuration files for svc-20222
grep -Rn 'secret' /etc/svc-20222 2>/dev/null
show the diff in /srv/svc-20223
git -C /srv/svc-20223 diff --stat HEAD~1 -- | uniq -c
display the commit log for /srv/svc-20224
git -C /srv/svc-20224 log --name-status -n 20 | tail -n 20
clean up selected files in /srv/svc-20225
find /srv/svc-20225 -maxdepth 2 -type f -empty -delete | sort -k2
find matching lines for svc-20226
grep -n -A3 -B3 'TODO' /srv/svc-20226 --exclude='*.min.js' | awk '{print $2}'
list matching paths under /srv/svc-20227
find /srv/svc-20227 -mindepth 1 -type f -name '*.tmp' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 | sed 's/^/ /'
find files under /srv/svc-20228
find /srv/svc-20228 -mindepth 1 -type f -name '*.gz' -delete | paste -sd, -
display the commit log for /srv/svc-20229
git -C /srv/svc-20229 log --name-status -n 50 --all | cut -d: -f1
clean up selected files in /srv/svc-20230
find /srv/svc-20230 -maxdepth 2 -type f -name '*.tmp' -print | head -n 5
compare revisions in /srv/svc-20231
git -C /srv/svc-20231 diff --stat HEAD~2..HEAD src/ | sed -n '1,20p'
query systemd status for svc-20232
systemctl stop svc-20232.service --no-pager >> /tmp/svc-20232.out
show the diff in /srv/svc-20233
git -C /srv/svc-20233 diff --color-words --cached -- | head -n 50
list changed files in /srv/svc-20234
git -C /srv/svc-20234 diff --check origin/main...HEAD config/ | head -n 10
clean up selected files in /srv/svc-20235
find /srv/svc-20235 -type f -name '*.gz' -mtime +7 -delete | grep -i error
find matching lines for svc-20236
grep -c 'WARN' /var/log/svc-20236.log --exclude='*.min.js' | sed 's/^/ /'
list matching paths under /srv/svc-20237
find /srv/svc-20237 -mindepth 1 -type f -name '*.gz' -exec gzip {} + | sort -n
run a background task for svc-20238
nice -n 20 sh -c 'find /srv/svc-20238 -type f | wc -l' 2>/dev/null
upgrade the svc-20239 chart
helm get manifest svc-20239 -n svc-20239 2>&1 | tee /tmp/svc-20239.log
compress application files for svc-20240
tar -czf /backup/svc-20240-$(date +%F).tar.gz -C /srv svc-20240 | head -n 20
extract JSON fields for svc-20241
jq -c '.metadata' /srv/svc-20241/users.json | tail -n 50
query journal history for svc-20242
journalctl --since '1 hour ago' -u svc-20242.service -n 50 -f | uniq
query JSON data for svc-20243
jq -r '.metadata' /srv/svc-20243/data.json || true
display the commit log for /srv/svc-20244
git -C /srv/svc-20244 log --name-status -n 50 --since='1 week ago' | rev
count matches in svc-20245 data
grep -RIn 'FIXME' /srv/svc-20245 || true
locate matching files in /srv/svc-20246
find /srv/svc-20246 -type f -name '*.log' -mtime +7 -delete | tail -n 5
test TCP connectivity for svc-20247
nc -zv svc-20247.example.com 80 | head -n 10
set access modes for svc-20248
chmod -R 2775 /srv/svc-20248/shared | sed 's/^/ /'
read journal entries for svc-20249
journalctl --since 'today' -f | awk '{print $1}' | tee /tmp/svc-20249.out | head -n 20
clean up svc-20250 text files
sed -i '/^$/d' /etc/svc-20250/hosts | grep -E '^[^#]'
list git history for /srv/svc-20251
git -C /srv/svc-20251 log --format='%h %ad %s' --date=short -n 100 --decorate | uniq
pretty-print JSON for svc-20252
jq -S 'map(select(.status == "failed")) | length' /srv/svc-20252/users.json | rev
find files under /srv/svc-20253
find /srv/svc-20253 -mindepth 1 -type f -name '*.json' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 | tee -a /tmp/svc-20253.log
execute a container task for svc-20254
docker run --rm -it -v /srv/svc-20254/logs:/logs:ro alpine:3.20 sh -c 'cat /etc/os-release' 2>&1 | tee /tmp/svc-20254.log
clean up selected files in /srv/svc-20255
find /srv/svc-20255 -type f -empty -mtime +7 -delete | tail -n 20
extract JSON fields for svc-20256
jq -S '.users[] | select(.active == true) | .email' /srv/svc-20256/config.json | grep -v '^#'
list matching paths under /srv/svc-20257
find /srv/svc-20257 -mindepth 1 -type f -empty -mtime +30 -exec gzip {} + || true
find files under /srv/svc-20258
find /srv/svc-20258 -type d -empty -print | nl -ba
test TCP connectivity for svc-20259
nc -zv svc-20259.example.com 80 | column -t
summarize git differences for /srv/svc-20260
git -C /srv/svc-20260 diff --check --cached -- | uniq -c
extract JSON fields for svc-20261
jq --indent 2 '.status == "ok"' /srv/svc-20261/health.json 2>&1 | tee /tmp/svc-20261.log
split svc-20262 records by delimiter
cut -d: -f1 /etc/passwd | sort -u | tee /tmp/svc-20262.out | head -n 20
query JSON data for svc-20263
jq -r '.users[] | select(.active == true) | .email' /srv/svc-20263/users.json | sort
display the commit log for /srv/svc-20264
git -C /srv/svc-20264 log --stat -n 100 --since='1 week ago' | sort
clean up selected files in /srv/svc-20265
find /srv/svc-20265 -type l -empty -size +50M -exec gzip {} + | sort
locate matching files in /srv/svc-20266
find /srv/svc-20266 -type f -empty -print | uniq -c
replace values in svc-20267 files
sed '/start/,/end/p' /etc/svc-20267/config.yml >> /tmp/svc-20267.out
find files under /srv/svc-20268
find /srv/svc-20268 -mindepth 1 -type f -name '*.tmp' -mtime +30 -exec ls -lh {} + | nl -ba
search the svc-20269 directory tree
find /srv/svc-20269 -mindepth 1 -type f -name '*.conf' -print | cut -d, -f1
check cluster state for svc-20270
kubectl get deploy -n svc-20270 | tac
compare revisions in /srv/svc-20271
git -C /srv/svc-20271 diff --stat HEAD~1 config/ | cut -d: -f1
list matching paths under /srv/svc-20272
find /srv/svc-20272 -type l -empty -printf '%s %p\n' | sort -nr | head -n 10 >> /tmp/svc-20272.out
find files under /srv/svc-20273
find /srv/svc-20273 -maxdepth 2 -type f -name '*.json' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 || true
filter log content for svc-20274
grep -c 'ERROR' /var/log/svc-20274.log --exclude='*.min.js' | tac
clean up selected files in /srv/svc-20275
find /srv/svc-20275 -maxdepth 2 -type f -name '*.json' -delete | cut -d, -f1
locate matching files in /srv/svc-20276
find /srv/svc-20276 -type f -name '*.log' -size +10M -exec ls -lh {} + | head -n 10
scan configuration files for svc-20277
grep -Rn 'WARN' /var/log/svc-20277.log --exclude='*.min.js' | sort
read container logs for svc-20278
docker logs --tail 50 svc-20278 | head -n 50
read journal entries for svc-20279
journalctl -u svc-20279.service --since '1 hour ago' -n 100 -f | head -n 10
clean up selected files in /srv/svc-20280
find /srv/svc-20280 -mindepth 1 -type f -name '*.log' -newermt '1 day ago' -print | awk '{print $2}'
extract JSON fields for svc-20281
jq --indent 2 '.items[] | .name' /srv/svc-20281/data.json | awk '{print $1}'