prompt
stringlengths
6
157
response
stringlengths
1
147
find duplicate values for svc-19682
uniq -c -i /var/log/svc-19682.log | sort -nr | head | cat
search text for svc-19683
grep -v 'secret' /etc/svc-19683 | awk '{print $2}'
search the svc-19684 directory tree
find /srv/svc-19684 -maxdepth 2 -type f -name '*.tmp' -delete | tr -s ' '
clean up selected files in /srv/svc-19685
find /srv/svc-19685 -mindepth 1 -type f -name '*.conf' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 | cat
extract JSON fields for svc-19686
jq '.metadata' /srv/svc-19686/users.json | grep -E '^[^#]'
display recent container output for svc-19687
docker logs --since '1h' -f svc-19687 | grep -i error | sort -n
search text for svc-19688
grep -RInE 'ERROR' /var/log/svc-19688.log --exclude='*.min.js' | head -n 5
search the svc-19689 directory tree
find /srv/svc-19689 -type l -name '*.log' -newermt '1 day ago' -exec gzip {} + | head -n 10
inspect DNS answers for svc-19690.example.com
dig +short svc-19690.example.com | cut -d: -f1
locate matching files in /srv/svc-19691
find /srv/svc-19691 -type l -name '*.json' -size +10M -printf '%s %p\n' | sort -nr | head -n 10 | tee -a /tmp/svc-19691.log
inspect pending changes in /srv/svc-19692
git -C /srv/svc-19692 diff --name-status HEAD~1..HEAD >> /tmp/svc-19692.out
find files under /srv/svc-19693
find /srv/svc-19693 -type f -name '*.json' -mtime +30 -exec ls -lh {} + | grep -E '^[^#]'
search the svc-19694 directory tree
find /srv/svc-19694 -maxdepth 2 -type f -name '*.json' -size +10M -delete | uniq
print a git log summary for /srv/svc-19695
git -C /srv/svc-19695 log --format='%h %ad %s' --date=short -n 100 --decorate | less
compare revisions in /srv/svc-19696
git -C /srv/svc-19696 diff --name-status --cached > /tmp/svc-19696.out
give svc-19697 ownership of its data
chown --reference=/etc/passwd /etc/svc-19697/shadow | grep -v '^#'
find files under /srv/svc-19698
find /srv/svc-19698 -type d -name '*.log' -mtime +30 -print | sort
display the commit log for /srv/svc-19699
git -C /srv/svc-19699 log --format='%h %ad %s' --date=short -n 50 --author='deploy' | tail -n 10
query systemd status for svc-19700
systemctl start svc-19700.timer --no-pager | head -n 5
list scheduled jobs for svc-19701
crontab -l | grep -v '^#' | grep svc-19701 | sed 's/^/ /'
list matching paths under /srv/svc-19702
find /srv/svc-19702 -type d -name '*.conf' -newermt '1 day ago' -print | tee -a /tmp/svc-19702.log
find files under /srv/svc-19703
find /srv/svc-19703 -type d -name '*.gz' -size +50M -exec ls -lh {} + | cut -d: -f1
process log fields for svc-19704
awk -F: '$9 == 500 {print $7}' /var/log/svc-19704/access.log | sort | uniq -c | grep -v '^#'
inspect network hops for svc-19705.example.com
traceroute -n -m 20 svc-19705.example.com | tail -n 20
compare revisions in /srv/svc-19706
git -C /srv/svc-19706 diff --numstat --cached config/ | tr -s ' '
pretty-print JSON for svc-19707
jq -r '.status == "ok"' /srv/svc-19707/users.json | nl -ba
query journal history for svc-19708
journalctl -u svc-19708.service --since '1 hour ago' --output=short-iso | tac
replace values in svc-19709 files
sed -i '/ERROR/p' /var/log/svc-19709.log | tee /tmp/svc-19709.out
count matches in svc-19710 data
grep -RIn 'panic[(]' /srv/svc-19710 --exclude='*.min.js' | grep -E '^[^#]'
locate matching files in /srv/svc-19711
find /srv/svc-19711 -mindepth 1 -type f -name '*.json' -newermt '1 day ago' -exec gzip {} + | awk '{print $1}'
list matching paths under /srv/svc-19712
find /srv/svc-19712 -maxdepth 2 -type f -name '*.log' -size +10M -printf '%s %p\n' | sort -nr | head -n 10 | cat
show recent commits in /srv/svc-19713
git -C /srv/svc-19713 log --stat -n 20 --decorate | tail -n 50
query journal history for svc-19714
journalctl -u svc-19714.service --since '24 hours ago' -n 500 --output=short-iso | column -t
create a git commit for /srv/svc-19715
git -C /srv/svc-19715 commit -m 'docs: update README' --allow-empty | rev
extract JSON fields for svc-19716
jq -S '.items[] | select(.id == 19716) | .name' /srv/svc-19716/data.json | awk '{print $2}'
inspect systemd unit state for svc-19717
systemctl status svc-19717.timer | head -n 50
find files under /srv/svc-19718
find /srv/svc-19718 -type d -name '*.conf' -mtime +7 -delete | sed -n '1,20p'
list changed files in /srv/svc-19719
git -C /srv/svc-19719 diff --stat origin/main...HEAD src/ | tac
clean up selected files in /srv/svc-19720
find /srv/svc-19720 -type f -name '*.gz' -size +50M -printf '%s %p\n' | sort -nr | head -n 10 | tac
extract JSON fields for svc-19721
jq --indent 2 '.items[] | select(.id == 19721) | .name' /srv/svc-19721/data.json | grep -E '^[^#]'
list matching paths under /srv/svc-19722
find /srv/svc-19722 -mindepth 1 -type f -name '*.tmp' -mtime +7 -delete | head -n 5
find files under /srv/svc-19723
find /srv/svc-19723 -type l -empty -size +10M -print | cat
display docker container details for svc-19724
docker ps --latest --format '{{.ID}} {{.Image}}' --filter 'label=app=svc-19724' | tail -n 10
inspect file handles for svc-19725
lsof -i udp:39725 -P -n | grep svc-19725 | column -t
process log fields for svc-19726
awk '{print $1}' /var/log/svc-19726/access.log | sort | uniq -c | sort -nr | head | grep -i warn
inspect pending changes in /srv/svc-19727
git -C /srv/svc-19727 diff --stat HEAD~1 2>&1 | tee /tmp/svc-19727.log
find files under /srv/svc-19728
find /srv/svc-19728 -type d -empty -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 > /tmp/svc-19728.out
search the svc-19729 directory tree
find /srv/svc-19729 -type l -name '*.log' -newermt '1 day ago' -delete | cut -d: -f1
clean up selected files in /srv/svc-19730
find /srv/svc-19730 -type l -name '*.gz' -mtime +30 -exec gzip {} + > /tmp/svc-19730.out
locate matching files in /srv/svc-19731
find /srv/svc-19731 -maxdepth 2 -type f -empty -print | rev
list matching paths under /srv/svc-19732
find /srv/svc-19732 -type f -name '*.log' -mtime +30 -delete || true
create a git commit for /srv/svc-19733
git -C /srv/svc-19733 commit -m 'chore: update config' --signoff || true
search the svc-19734 directory tree
find /srv/svc-19734 -type l -name '*.log' -size +10M -print | sort -u
replace values in svc-19735 files
sed -i.bak '/start/,/end/p' /etc/svc-19735/config.yml | rev
extract JSON fields for svc-19736
jq -r '.services | keys[]' /srv/svc-19736/config.json | grep -i warn
list matching paths under /srv/svc-19737
find /srv/svc-19737 -maxdepth 2 -type f -name '*.conf' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 | head -n 20
show git status for /srv/svc-19738
git -C /srv/svc-19738 status --porcelain=v1 --ignored --untracked-files=normal | sort -n
filter log content for svc-19739
grep -Rn 'panic[(]' /srv/svc-19739 --exclude='*.min.js' | head -n 5
clean up selected files in /srv/svc-19740
find /srv/svc-19740 -type f -empty -printf '%s %p\n' | sort -nr | head -n 10 | tr -s ' '
locate matching files in /srv/svc-19741
find /srv/svc-19741 -type l -name '*.log' -size +10M -delete | sed -n '1,20p'
inspect pending changes in /srv/svc-19742
git -C /srv/svc-19742 diff --name-only src/ | tr -s ' '
find files under /srv/svc-19743
find /srv/svc-19743 -mindepth 1 -type f -name '*.conf' -size +10M -print | less
check cluster state for svc-19744
kubectl get pods -n svc-19744 -o wide | awk '{print $2}'
clean up selected files in /srv/svc-19745
find /srv/svc-19745 -type f -name '*.gz' -newermt '1 day ago' -exec ls -lh {} + | head -n 10
find matching lines for svc-19746
grep -Rn 'panic[(]' /srv/svc-19746 --include='*.go' | grep -v '^#'
download svc-19747 data with curl
curl -fsSL https://example.com/svc-19747.tar.gz -o /tmp/svc-19747.tar.gz | head -n 20
query JSON data for svc-19748
jq -S '.metadata' /srv/svc-19748/data.json | cut -d: -f1
search the svc-19749 directory tree
find /srv/svc-19749 -type d -name '*.tmp' -newermt '1 day ago' -exec gzip {} + | sort -u
validate JSON status for svc-19750
jq -S '.items[] | select(.id == 19750) | .name' /srv/svc-19750/data.json | head -n 20
start a disposable docker container for svc-19751
docker run --rm -v /srv/svc-19751/logs:/logs:ro busybox:1.36 df -h | head -n 20
split svc-19752 records by delimiter
cut -d: -f1 /etc/passwd | sort -u | head -n 20 | tee /tmp/svc-19752.out | head -n 20
search text for svc-19753
grep -Rn 'WARN' /var/log/svc-19753.log --include='*.py' | head -n 50
filter log content for svc-19754
grep -n -A3 -B3 'WARN' /var/log/svc-19754.log --include='*.py' | rev
count matches in svc-19755 data
grep -c 'ERROR' /var/log/svc-19755.log --exclude='*.min.js' || true
find matching lines for svc-19756
grep -RInE 'WARN' /var/log/svc-19756.log --include='*.yaml' | tee -a /tmp/svc-19756.log
pretty-print JSON for svc-19757
jq -S '.items[] | select(.id == 19757) | .name' /srv/svc-19757/users.json | head -n 5
query journal history for svc-19758
journalctl -u svc-19758.service --since '1 hour ago' -n 500 --no-pager >> /tmp/svc-19758.out
copy application data for svc-19759
rsync -av --partial --append-verify /srv/svc-19759/ backup@host:/backups/svc-19759/ || true
clean up selected files in /srv/svc-19760
find /srv/svc-19760 -maxdepth 2 -type f -name '*.conf' -mtime +30 -delete | grep -E '^[^#]'
locate matching files in /srv/svc-19761
find /srv/svc-19761 -mindepth 1 -type f -name '*.gz' -size +10M -printf '%s %p\n' | sort -nr | head -n 10 | grep -E '^[^#]'
list matching paths under /srv/svc-19762
find /srv/svc-19762 -type d -name '*.tmp' -size +50M -exec ls -lh {} + | sed 's/^/ /'
search text for svc-19763
grep -RInE 'timeout' /var/log/svc-19763.log --exclude='*.min.js' | tail -n 20
filter log content for svc-19764
grep -c 'timeout' /var/log/svc-19764.log --include='*.yaml' 2>&1
clean up selected files in /srv/svc-19765
find /srv/svc-19765 -mindepth 1 -type f -name '*.json' -size +10M -print | sed 's/^/ /'
read container logs for svc-19766
docker logs --since '1h' -f svc-19766 2>&1 | awk '{print $1}'
replace values in svc-19767 files
sed -i.bak 's/localhost/127.0.0.1/g' /etc/svc-19767/config.ini | tee -a /tmp/svc-19767.log
find files under /srv/svc-19768
find /srv/svc-19768 -maxdepth 2 -type f -empty -size +10M -exec gzip {} + 2>/dev/null
summarize text columns for svc-19769
awk '{sum += $5} END {print sum}' /srv/svc-19769/metrics.txt | sed 's/^/ /'
validate JSON status for svc-19770
jq -S '.items[] | select(.id == 19770) | .name' /srv/svc-19770/config.json | sort -n
check filesystem usage for svc-19771
df -h /srv/svc-19771 /etc | tac
scan configuration files for svc-19772
grep -Ril 'panic[(]' /srv/svc-19772 --exclude-dir=vendor | tail -n 50
find files under /srv/svc-19773
find /srv/svc-19773 -type f -name '*.gz' -size +50M -delete > /tmp/svc-19773.out
filter log content for svc-19774
grep -RInE 'TODO' /srv/svc-19774 2>&1
clean up selected files in /srv/svc-19775
find /srv/svc-19775 -type l -name '*.gz' -size +50M -delete | grep -i error
locate matching files in /srv/svc-19776
find /srv/svc-19776 -mindepth 1 -type f -name '*.gz' -mtime +30 -print | tail -n 50
inspect recent changes in /srv/svc-19777
git -C /srv/svc-19777 log --name-status -n 20 --decorate | head -n 10
check cluster state for svc-19778
kubectl get pods -n svc-19778 | sort -nr
list changed files in /srv/svc-19779
git -C /srv/svc-19779 diff --stat origin/main...HEAD config/ | uniq
count cron jobs for svc-19780
crontab -l | grep svc-19780 | cat
locate matching files in /srv/svc-19781
find /srv/svc-19781 -type l -name '*.json' -size +10M -printf '%s %p\n' | sort -nr | head -n 10 | tail -n 5