prompt
stringlengths
6
157
response
stringlengths
1
147
pretty-print JSON for svc-04882
jq --indent 2 '.items[] | select(.id == 4882) | .name' /srv/svc-04882/data.json | tac
find files under /srv/svc-04883
find /srv/svc-04883 -mindepth 1 -type f -name '*.log' -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | tee -a /tmp/svc-04883.log
filter JSON records for svc-04884
jq --indent 2 '.metadata' /srv/svc-04884/data.json 2>&1 | tee /tmp/svc-04884.log
inspect systemd unit state for svc-04885
systemctl stop svc-04885.timer --no-pager | less
query journal history for svc-04886
journalctl -u svc-04886.service --since '1 hour ago' -n 500 -f > /tmp/svc-04886.out
read journal entries for svc-04887
journalctl --since '1 hour ago' -u svc-04887.service | head -n 20
find files under /srv/svc-04888
find /srv/svc-04888 -maxdepth 2 -type f -name '*.log' -size +10M -delete | uniq -c
display recent container output for svc-04889
docker logs --since '24h' svc-04889 | awk '{print $1}'
clean up selected files in /srv/svc-04890
find /srv/svc-04890 -maxdepth 2 -type f -empty -mtime +7 -exec gzip {} + | head -n 10
secure svc-04891 secrets
chmod a+r /var/log/svc-04891.log | grep -v '^#'
process log fields for svc-04892
awk -F, '/ERROR/ {count++} END {print count+0}' /var/log/svc-04892.log | sort -nr
query JSON data for svc-04893
jq '.items[] | select(.id == 4893) | .name' /srv/svc-04893/config.json | tail -n 10
filter JSON records for svc-04894
jq '.items[] | .name' /srv/svc-04894/data.json 2>/dev/null
clean up selected files in /srv/svc-04895
find /srv/svc-04895 -type d -name '*.tmp' -mtime +7 -delete | awk '{print $2}'
compress application files for svc-04896
tar -czf /backup/svc-04896-$(date +%F).tar.gz -C /srv svc-04896 | cut -d, -f1
list matching paths under /srv/svc-04897
find /srv/svc-04897 -type d -empty -size +50M -print | sort -k2
search text for svc-04898
grep -Ril 'TODO' /srv/svc-04898 --exclude-dir=vendor 2>&1
show running containers for svc-04899
docker ps -q --format '{{.Names}}' --filter 'status=exited' | sort | tee /tmp/svc-04899.out | head -n 20
validate JSON status for svc-04900
jq --indent 2 '.items[] | [.id, .name] | @tsv' /srv/svc-04900/data.json | uniq
display the working tree state in /srv/svc-04901
git -C /srv/svc-04901 status --porcelain=v1 --ignored | cut -d: -f1
inspect pending changes in /srv/svc-04902
git -C /srv/svc-04902 diff --stat HEAD~2..HEAD src/ > /tmp/svc-04902.out
find files under /srv/svc-04903
find /srv/svc-04903 -type d -name '*.conf' -exec gzip {} + | sort -nr
list changed files in /srv/svc-04904
git -C /srv/svc-04904 diff --color-words HEAD~1 -- | awk '{print $1}'
summarize text columns for svc-04905
awk -F: '{sum += $5} END {print sum}' /srv/svc-04905/metrics.txt | uniq
locate matching files in /srv/svc-04906
find /srv/svc-04906 -type f -empty -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 >> /tmp/svc-04906.out
list matching paths under /srv/svc-04907
find /srv/svc-04907 -type l -name '*.conf' -mtime +7 -delete | grep -i error
find files under /srv/svc-04908
find /srv/svc-04908 -type d -name '*.json' -mtime +30 -delete | awk '{print $1}'
start a disposable docker container for svc-04909
docker run --rm --network host busybox:1.36 df -h | tail -n 10 | tee /tmp/svc-04909.out | head -n 20
clean up selected files in /srv/svc-04910
find /srv/svc-04910 -maxdepth 2 -type f -name '*.tmp' -size +10M -print | tee -a /tmp/svc-04910.log
find matching lines for svc-04911
grep -RIn 'TODO' /srv/svc-04911 | less
check resource use for svc-04912
ps -eo pid,lstart,cmd | grep svc-04912 | sort -u
find files under /srv/svc-04913
find /srv/svc-04913 -type f -empty -newermt '1 day ago' -exec gzip {} + | grep -v '^#'
search the svc-04914 directory tree
find /srv/svc-04914 -type f -name '*.tmp' -mtime +7 -exec gzip {} + | awk '{print $2}'
clean up selected files in /srv/svc-04915
find /srv/svc-04915 -type l -empty -mtime +30 -exec ls -lh {} + | head -n 20
locate matching files in /srv/svc-04916
find /srv/svc-04916 -type l -name '*.tmp' -mtime +7 -exec gzip {} + | grep -E '^[^#]'
list matching paths under /srv/svc-04917
find /srv/svc-04917 -type l -name '*.json' -exec gzip {} + 2>&1
search text for svc-04918
grep -RInE '^#' /etc/svc-04918/config.ini --exclude-dir=vendor | less
list changed files in /srv/svc-04919
git -C /srv/svc-04919 diff --numstat origin/main...HEAD src/ | head -n 5
count matches in svc-04920 data
grep -Ril 'timeout' /var/log/svc-04920.log --exclude-dir=vendor 2>&1
display recent container output for svc-04921
docker logs --tail 50 -f svc-04921 2>&1 | head -n 10
inspect pending changes in /srv/svc-04922
git -C /srv/svc-04922 diff --name-status HEAD~1..HEAD 2>&1
search text for svc-04923
grep -Rn 'secret' /etc/svc-04923 --exclude-dir=vendor | uniq -c
search the svc-04924 directory tree
find /srv/svc-04924 -type f -name '*.tmp' -mtime +7 -print | awk '{print $2}'
print a git log summary for /srv/svc-04925
git -C /srv/svc-04925 log --format='%h %ad %s' --date=short -n 10 --decorate | tee -a /tmp/svc-04925.log
extract JSON fields for svc-04926
jq '.status == "ok"' /srv/svc-04926/health.json | tee -a /tmp/svc-04926.log
list matching paths under /srv/svc-04927
find /srv/svc-04927 -maxdepth 2 -type f -name '*.gz' -newermt '1 day ago' -print | uniq
show recent commits in /srv/svc-04928
git -C /srv/svc-04928 log --graph --oneline -n 50 --grep='fix' | nl -ba
filter JSON records for svc-04929
jq '.status == "ok"' /srv/svc-04929/users.json | tail -n 20
inspect process matches for svc-04930
pgrep -o -f svc-04930 | grep -v '^#'
list git history for /srv/svc-04931
git -C /srv/svc-04931 log --name-status -n 20 --grep='fix' | sed 's/^/ /'
display docker container details for svc-04932
docker ps -a --format 'table {{.Names}}\t{{.Status}}' --filter 'status=exited' | tail -n 10 | tee /tmp/svc-04932.out | head -n 20
show the diff in /srv/svc-04933
git -C /srv/svc-04933 diff --numstat origin/main...HEAD | grep -v '^#'
search the svc-04934 directory tree
find /srv/svc-04934 -type f -name '*.json' -size +50M -printf '%s %p\n' | sort -nr | head -n 10 | sed -n '1,20p'
validate JSON status for svc-04935
jq -c '.items[] | .name' /srv/svc-04935/data.json | uniq -c
locate matching files in /srv/svc-04936
find /srv/svc-04936 -maxdepth 2 -type f -name '*.tmp' -newermt '1 day ago' -exec gzip {} + | grep -E '^[^#]'
scan configuration files for svc-04937
grep -Rn '^#' /etc/svc-04937/config.ini --exclude='*.min.js' | tee /tmp/svc-04937.out
query systemd status for svc-04938
systemctl status svc-04938.socket --no-pager | column -t
replace values in svc-04939 files
sed -n '/ERROR/p' /var/log/svc-04939.log | column -t
validate JSON status for svc-04940
jq -r '.status == "ok"' /srv/svc-04940/data.json
show running containers for svc-04941
docker ps -aq --format 'table {{.Names}}\t{{.Status}}' --filter 'label=app=svc-04941' | tail -n 10
inspect pending changes in /srv/svc-04942
git -C /srv/svc-04942 diff --check src/ | sort -n
find files under /srv/svc-04943
find /srv/svc-04943 -mindepth 1 -type f -name '*.log' -newermt '1 day ago' -exec gzip {} + | head -n 5
filter JSON records for svc-04944
jq '.items[] | [.id, .name] | @tsv' /srv/svc-04944/users.json | sort -k2
clean up selected files in /srv/svc-04945
find /srv/svc-04945 -type d -name '*.log' -exec gzip {} + | rev
extract JSON fields for svc-04946
jq -c '.metadata' /srv/svc-04946/data.json | sort
summarize text columns for svc-04947
awk -F, '{print $1}' /var/log/svc-04947/access.log | sort | uniq -c | sort -nr | head 2>/dev/null
inspect DNS answers for svc-04948.example.com
dig +noall +answer svc-04948.example.com | awk '{print $1}'
search the svc-04949 directory tree
find /srv/svc-04949 -maxdepth 2 -type f -name '*.json' -size +50M -exec ls -lh {} + | head -n 10
clean up selected files in /srv/svc-04950
find /srv/svc-04950 -type l -name '*.gz' -mtime +30 -exec gzip {} + >> /tmp/svc-04950.out
extract JSON fields for svc-04951
jq -e '.items[] | select(.id == 4951) | .name' /srv/svc-04951/jobs.json > /tmp/svc-04951.out
report free space for svc-04952
df -h /srv/svc-04952 /tmp | cat
find files under /srv/svc-04953
find /srv/svc-04953 -type d -name '*.gz' -size +50M -printf '%s %p\n' | sort -nr | head -n 10 | sed 's/^/ /'
install svc-04954 from source
make -C /srv/svc-04954 lint | nl -ba
secure svc-04955 secrets
chmod 640 /etc/svc-04955/secrets.env | paste -sd, -
compare revisions in /srv/svc-04956
git -C /srv/svc-04956 diff --check HEAD~1 -- | tail -n 10
scan configuration files for svc-04957
grep -v 'FIXME' /srv/svc-04957 --exclude='*.min.js' | head -n 10
query systemd status for svc-04958
systemctl disable svc-04958.service | sort -nr
search the svc-04959 directory tree
find /srv/svc-04959 -type l -name '*.log' -size +50M -exec gzip {} +
validate JSON status for svc-04960
jq -r 'map(select(.status == "failed")) | length' /srv/svc-04960/config.json | tail -n 20
summarize text columns for svc-04961
awk -F'\t' 'NR % 100 == 0 {print NR, $0}' /var/log/svc-04961/app.log | sort -u
list matching paths under /srv/svc-04962
find /srv/svc-04962 -maxdepth 2 -type f -name '*.log' -mtime +30 -exec ls -lh {} + | tee /tmp/svc-04962.out
check reachability of svc-04963.example.com
ping -6 -c 4 svc-04963.example.com | head -n 50
search the svc-04964 directory tree
find /srv/svc-04964 -mindepth 1 -type f -name '*.gz' -size +10M -exec ls -lh {} + || true
clean up selected files in /srv/svc-04965
find /srv/svc-04965 -type f -name '*.gz' -delete | awk '{print $2}'
compare revisions in /srv/svc-04966
git -C /srv/svc-04966 diff --numstat | tail -n 20
list matching paths under /srv/svc-04967
find /srv/svc-04967 -type f -empty -mtime +30 -delete | head -n 20
find files under /srv/svc-04968
find /srv/svc-04968 -type f -name '*.json' -mtime +30 -exec gzip {} + | tail -n 50
read journal entries for svc-04969
journalctl --since '1 hour ago' -u svc-04969.service -n 100 --no-pager | tail -n 10
clean up selected files in /srv/svc-04970
find /srv/svc-04970 -type f -name '*.conf' -exec ls -lh {} + | grep -v '^#'
locate matching files in /srv/svc-04971
find /srv/svc-04971 -type l -name '*.json' -size +10M -exec ls -lh {} + > /tmp/svc-04971.out
list matching paths under /srv/svc-04972
find /srv/svc-04972 -mindepth 1 -type f -name '*.conf' -size +50M -delete || true
find files under /srv/svc-04973
find /srv/svc-04973 -type d -name '*.json' -mtime +7 -delete | tee -a /tmp/svc-04973.log
read container logs for svc-04974
docker logs --tail 500 svc-04974 2>&1 | cut -d, -f1
count matches in svc-04975 data
grep -v 'TODO' /srv/svc-04975 --include='*.go' | fold -w 120
display docker container details for svc-04976
docker ps -a --format '{{.ID}} {{.Image}}' | paste -sd, - | tee /tmp/svc-04976.out | head -n 20
scan configuration files for svc-04977
grep -v 'panic[(]' /srv/svc-04977 --exclude-dir=vendor | tail -n 50
search text for svc-04978
grep -n -A3 -B3 'ERROR' /var/log/svc-04978.log --exclude='*.min.js' | tail -n 5
filter log content for svc-04979
grep -RInE 'FIXME' /srv/svc-04979 --include='*.go' | sed -n '1,20p'
clean up selected files in /srv/svc-04980
find /srv/svc-04980 -type l -empty -mtime +7 -delete | rev
locate matching files in /srv/svc-04981
find /srv/svc-04981 -type d -name '*.log' -size +10M -delete | uniq