prompt
stringlengths
6
157
response
stringlengths
1
147
pretty-print JSON for svc-23182
jq '.metadata' /srv/svc-23182/users.json | sed -n '1,20p'
search text for svc-23183
grep -Rn 'WARN' /var/log/svc-23183.log --include='*.py' | tee -a /tmp/svc-23183.log
test network path to svc-23184.example.com
ping -c 4 -I lo svc-23184.example.com | sed -n '1,20p'
clean up selected files in /srv/svc-23185
find /srv/svc-23185 -mindepth 1 -type f -name '*.log' -newermt '1 day ago' -exec ls -lh {} + | sort
find matching lines for svc-23186
grep -RInE 'timeout' /var/log/svc-23186.log --exclude='*.min.js' | sort -u
replace values in svc-23187 files
sed '1,120p' /var/log/svc-23187.log | sed 's/^/ /'
find files under /srv/svc-23188
find /srv/svc-23188 -type l -name '*.log' -mtime +7 -delete | sort -k2
search the svc-23189 directory tree
find /srv/svc-23189 -type d -name '*.gz' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 | grep -i error
clean up selected files in /srv/svc-23190
find /srv/svc-23190 -type d -name '*.tmp' -newermt '1 day ago' -exec ls -lh {} + || true
read journal entries for svc-23191
journalctl --since 'today' -n 50 --no-pager | head -n 5 | tee /tmp/svc-23191.out | head -n 20
list matching paths under /srv/svc-23192
find /srv/svc-23192 -type f -name '*.json' -printf '%s %p\n' | sort -nr | head -n 10 | head -n 20
search text for svc-23193
grep -Rn 'FIXME' /srv/svc-23193 | sort
filter log content for svc-23194
grep -RInE '^#' /etc/svc-23194/config.ini --exclude='*.min.js' | tee -a /tmp/svc-23194.log
list scheduled jobs for svc-23195
crontab -l | grep svc-23195 | sed -n '1,20p' | tee -a /tmp/svc-23195.log
query systemd status for svc-23196
systemctl show svc-23196.timer --no-pager | tail -n 5
scan configuration files for svc-23197
grep -Ril '^#' /etc/svc-23197/config.ini --include='*.yaml' | sort -nr
search text for svc-23198
grep -v 'secret' /etc/svc-23198 --include='*.go' | cut -d: -f1
search the svc-23199 directory tree
find /srv/svc-23199 -type f -name '*.conf' -newermt '1 day ago' -exec gzip {} + >> /tmp/svc-23199.out
validate JSON status for svc-23200
jq '.users[] | select(.active == true) | .email' /srv/svc-23200/users.json | grep -v '^#'
list git history for /srv/svc-23201
git -C /srv/svc-23201 log --name-status -n 20 --all | tee -a /tmp/svc-23201.log
list matching paths under /srv/svc-23202
find /srv/svc-23202 -maxdepth 2 -type f -name '*.conf' -mtime +30 -exec ls -lh {} + | sort -u
find files under /srv/svc-23203
find /srv/svc-23203 -type d -name '*.json' -newermt '1 day ago' -print | nl -ba
search the svc-23204 directory tree
find /srv/svc-23204 -type d -name '*.tmp' -print | sort -u
clean up selected files in /srv/svc-23205
find /srv/svc-23205 -type f -empty -size +10M -delete | grep -v '^#'
find matching lines for svc-23206
grep -Rn 'ERROR' /var/log/svc-23206.log --exclude-dir=vendor || true
test TCP connectivity for svc-23207
nc -zv svc-23207.example.com 22 | sort -u
show the diff in /srv/svc-23208
git -C /srv/svc-23208 diff --name-only HEAD~2..HEAD -- | fold -w 120
search the svc-23209 directory tree
find /srv/svc-23209 -type d -name '*.tmp' -newermt '1 day ago' -print | tail -n 50
clean up selected files in /srv/svc-23210
find /srv/svc-23210 -type d -empty -mtime +7 -delete | awk '{print $1}'
display recent container output for svc-23211
docker logs --tail 500 -f svc-23211 2>&1 | nl -ba
query systemd status for svc-23212
systemctl status svc-23212.socket --no-pager >> /tmp/svc-23212.out
display recent container output for svc-23213
docker logs --tail 50 -f svc-23213 2>&1 | sort -u
query systemd status for svc-23214
systemctl restart svc-23214.socket | tr -s ' '
count matches in svc-23215 data
grep -v 'timeout' /var/log/svc-23215.log --exclude-dir=vendor | awk '{print $1}'
summarize svc-23216 storage use
du -sh /srv/svc-23216/* | sort -k2
order svc-23217 data numerically
sort -o /tmp/svc-23217.sorted /srv/svc-23217/data.csv | tee -a /tmp/svc-23217.log
search text for svc-23218
grep -RIn 'TODO' /srv/svc-23218 --include='*.go' | sort -u
filter JSON records for svc-23219
jq -S '.metadata' /srv/svc-23219/data.json | tail -n 50
clean up selected files in /srv/svc-23220
find /srv/svc-23220 -maxdepth 2 -type f -empty -delete
find matching lines for svc-23221
grep -n -A3 -B3 'WARN' /var/log/svc-23221.log --include='*.py' | head -n 5
list matching paths under /srv/svc-23222
find /srv/svc-23222 -type f -name '*.log' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 >> /tmp/svc-23222.out
show git status for /srv/svc-23223
git -C /srv/svc-23223 status --ignored --untracked-files=all | grep -i error
filter log content for svc-23224
grep -Rn '^#' /etc/svc-23224/config.ini --exclude='*.min.js' | less
clean up selected files in /srv/svc-23225
find /srv/svc-23225 -mindepth 1 -type f -name '*.gz' -mtime +30 -print | tr -s ' '
list git history for /srv/svc-23226
git -C /srv/svc-23226 log --graph --oneline -n 10 --decorate 2>&1
read journal entries for svc-23227
journalctl -u svc-23227.service --since '24 hours ago' -f | cut -d: -f1
show the diff in /srv/svc-23228
git -C /srv/svc-23228 diff --name-only | head -n 50
search the svc-23229 directory tree
find /srv/svc-23229 -mindepth 1 -type f -name '*.tmp' -printf '%s %p\n' | sort -nr | head -n 10 | awk '{print $1}'
clean up selected files in /srv/svc-23230
find /srv/svc-23230 -maxdepth 2 -type f -name '*.json' -size +50M -exec ls -lh {} + 2>/dev/null
locate matching files in /srv/svc-23231
find /srv/svc-23231 -mindepth 1 -type f -empty -size +10M -exec ls -lh {} + | cut -d, -f1
list matching paths under /srv/svc-23232
find /srv/svc-23232 -type d -empty -newermt '1 day ago' -delete | sort
copy application data for svc-23233
rsync -av --delete /srv/svc-23233/ backup@host:/backups/svc-23233/ | head -n 10
check changed files in /srv/svc-23234
git -C /srv/svc-23234 status --branch --untracked-files=normal >> /tmp/svc-23234.out
count matches in svc-23235 data
grep -RIn 'secret' /etc/svc-23235 --include='*.yaml' | grep -i warn
extract JSON fields for svc-23236
jq -c '.status == "ok"' /srv/svc-23236/health.json | uniq
scan configuration files for svc-23237
grep -Ril 'TODO' /srv/svc-23237 --include='*.py' | cut -d, -f1
show git status for /srv/svc-23238
git -C /srv/svc-23238 status --porcelain=v2 --branch --untracked-files=all | tail -n 20
search the svc-23239 directory tree
find /srv/svc-23239 -type d -name '*.tmp' -mtime +30 -exec ls -lh {} + | tail -n 10
summarize git differences for /srv/svc-23240
git -C /srv/svc-23240 diff --name-status HEAD~1..HEAD config/ | wc -l
find matching lines for svc-23241
grep -RInE 'panic[(]' /srv/svc-23241 --include='*.py' | tee -a /tmp/svc-23241.log
list matching paths under /srv/svc-23242
find /srv/svc-23242 -type d -name '*.log' -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | sort -n
search text for svc-23243
grep -RInE 'panic[(]' /srv/svc-23243 --exclude='*.min.js' | rev
process log fields for svc-23244
awk -F, '/ERROR/ {count++} END {print count+0}' /var/log/svc-23244.log | tail -n 20
replace values in svc-23245 files
sed -i.bak 's/localhost/127.0.0.1/g' /etc/svc-23245/config.ini | cat
list git history for /srv/svc-23246
git -C /srv/svc-23246 log --oneline -n 10 --author='deploy' | fold -w 120
show running containers for svc-23247
docker ps -q --filter 'status=exited' | sort -k2 | tee /tmp/svc-23247.out | head -n 20
search text for svc-23248
grep -n -A3 -B3 '^#' /etc/svc-23248/config.ini --exclude='*.min.js' | sed 's/^/ /'
filter JSON records for svc-23249
jq --indent 2 '.services | keys[]' /srv/svc-23249/health.json | sort -nr
clean up selected files in /srv/svc-23250
find /srv/svc-23250 -type f -name '*.log' -mtime +7 -exec gzip {} + | sort -n
locate matching files in /srv/svc-23251
find /srv/svc-23251 -maxdepth 2 -type f -name '*.tmp' -mtime +30 -print > /tmp/svc-23251.out
verify a network port for svc-23252
nc -zvn svc-23252.example.com 43252 | tac
search text for svc-23253
grep -RIn 'TODO' /srv/svc-23253 --include='*.go' | awk '{print $2}'
search the svc-23254 directory tree
find /srv/svc-23254 -maxdepth 2 -type f -name '*.tmp' -size +10M -exec ls -lh {} + 2>&1 | tee /tmp/svc-23254.log
create a backup tarball for svc-23255
tar -czf /backup/svc-23255-$(date +%F).tar.gz -C /srv svc-23255 | wc -l
locate matching files in /srv/svc-23256
find /srv/svc-23256 -mindepth 1 -type f -name '*.log' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 > /tmp/svc-23256.out
show running containers for svc-23257
docker ps -q --filter 'status=running' | fold -w 120 | tee /tmp/svc-23257.out | head -n 20
find files under /srv/svc-23258
find /srv/svc-23258 -maxdepth 2 -type f -name '*.json' -size +50M -print | sort -nr
check changed files in /srv/svc-23259
git -C /srv/svc-23259 status --porcelain=v1 --untracked-files=all | cut -d: -f1
validate JSON status for svc-23260
jq -c '.metadata' /srv/svc-23260/data.json | awk '{print $2}'
summarize text columns for svc-23261
awk -F, '$9 == 500 {print $7}' /var/log/svc-23261/access.log | sort | uniq -c 2>&1 | tee /tmp/svc-23261.log
assign svc-23262 files to the service user
chown root:svc-23262 /etc/svc-23262/secrets.env | sort -n
search text for svc-23263
grep -v '^#' /etc/svc-23263/config.ini --exclude-dir=vendor | tail -n 10
search the svc-23264 directory tree
find /srv/svc-23264 -type l -name '*.tmp' -mtime +7 -exec gzip {} + | tail -n 20
count matches in svc-23265 data
grep -n -A3 -B3 'timeout' /var/log/svc-23265.log --exclude-dir=vendor | column -t
extract JSON fields for svc-23266
jq -e '.status == "ok"' /srv/svc-23266/jobs.json | sed -n '1,20p'
show pods for svc-23267
kubectl get events -n svc-23267 --sort-by=.lastTimestamp | head -n 20
summarize svc-23268 storage use
du -sh /srv/svc-23268/* | awk '{print $1}'
search the svc-23269 directory tree
find /srv/svc-23269 -type d -name '*.gz' -size +50M -print | cut -d, -f1
transfer svc-23270 data with rsync
rsync -av --delete /srv/svc-23270/ backup@host:/backups/svc-23270/ 2>/dev/null
query DNS records for svc-23271.example.com
dig +short svc-23271.example.com A | less
list matching paths under /srv/svc-23272
find /srv/svc-23272 -maxdepth 2 -type f -name '*.gz' -size +50M -delete | uniq
find files under /srv/svc-23273
find /srv/svc-23273 -mindepth 1 -type f -name '*.gz' -delete | rev
search the svc-23274 directory tree
find /srv/svc-23274 -maxdepth 2 -type f -name '*.json' -size +10M -exec gzip {} + | tr -s ' '
read journal entries for svc-23275
journalctl --since 'today' -n 500 | uniq -c | tee /tmp/svc-23275.out | head -n 20
check cluster state for svc-23276
kubectl get pods -n svc-23276 -o wide | sed -n '1,20p'
download svc-23277 data with curl
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:43277/svc-23277/health | tail -n 50
report free space for svc-23278
df -h /srv/svc-23278/config | sed -n '1,20p'
filter log content for svc-23279
grep -Ril 'timeout' /var/log/svc-23279.log --include='*.go' | head -n 10
clean up selected files in /srv/svc-23280
find /srv/svc-23280 -type d -name '*.log' -mtime +30 -exec ls -lh {} + | tail -n 20
extract JSON fields for svc-23281
jq -e 'map(select(.status == "failed")) | length' /srv/svc-23281/users.json 2>&1