prompt
stringlengths
6
157
response
stringlengths
1
147
execute a container task for svc-11982
docker run --rm -v /srv/svc-11982/logs:/logs:ro alpine:3.20 du -sh /data
create a git commit for /srv/svc-11983
git -C /srv/svc-11983 commit -m 'fix: handle timeout' --allow-empty | tail -n 20
transfer svc-11984 data with rsync
rsync -av --link-dest=/backups/latest /srv/svc-11984/ backup@host:/backups/svc-11984-new/ | cut -d, -f1
replace values in svc-11985 files
sed '/start/,/end/p' /etc/svc-11985/config.yml | paste -sd, -
execute a container task for svc-11986
docker run --rm -v /srv/svc-11986/logs:/logs:ro alpine:3.20 sh -c 'cat /etc/os-release' | tee -a /tmp/svc-11986.log
scan configuration files for svc-11987
grep -c 'ERROR' /var/log/svc-11987.log | sed 's/^/ /'
search text for svc-11988
grep -Ril 'WARN' /var/log/svc-11988.log --include='*.go' | uniq
search the svc-11989 directory tree
find /srv/svc-11989 -maxdepth 2 -type f -empty -mtime +30 -exec gzip {} + | awk '{print $1}'
count matches in svc-11990 data
grep -c 'panic[(]' /srv/svc-11990 --include='*.yaml' | tac
locate matching files in /srv/svc-11991
find /srv/svc-11991 -maxdepth 2 -type f -name '*.conf' -size +50M -print
read container logs for svc-11992
docker logs --since '1h' -f svc-11992 | sort -k2
find files under /srv/svc-11993
find /srv/svc-11993 -maxdepth 2 -type f -name '*.json' -newermt '1 day ago' -print > /tmp/svc-11993.out
filter log content for svc-11994
grep -Rn 'TODO' /srv/svc-11994 --include='*.py' | sort
validate JSON status for svc-11995
jq --indent 2 '.metadata' /srv/svc-11995/health.json | grep -v '^#'
locate matching files in /srv/svc-11996
find /srv/svc-11996 -type d -name '*.gz' -size +10M -delete | tail -n 50
list matching paths under /srv/svc-11997
find /srv/svc-11997 -type d -name '*.tmp' -print | sort -nr
find files under /srv/svc-11998
find /srv/svc-11998 -type f -name '*.gz' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 | wc -l
filter log content for svc-11999
grep -Ril 'secret' /etc/svc-11999 --include='*.py' | tr -s ' '
clean up selected files in /srv/svc-12000
find /srv/svc-12000 -maxdepth 2 -type f -name '*.json' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 2>&1
compare revisions in /srv/svc-12001
git -C /srv/svc-12001 diff --stat src/ | uniq
display docker container details for svc-12002
docker ps --latest --format '{{.Names}}' --filter 'label=app=svc-12002' | tail -n 20
search text for svc-12003
grep -n -A3 -B3 '^#' /etc/svc-12003/config.ini --include='*.py' | tr -s ' '
query systemd status for svc-12004
systemctl is-enabled svc-12004.timer | tail -n 10
copy application data for svc-12005
rsync -av --delete /srv/svc-12005/ backup@host:/backups/svc-12005/ | grep -i warn
locate matching files in /srv/svc-12006
find /srv/svc-12006 -maxdepth 2 -type f -name '*.conf' -exec gzip {} + | head -n 10
list matching paths under /srv/svc-12007
find /srv/svc-12007 -mindepth 1 -type f -name '*.gz' -mtime +7 -exec ls -lh {} + | sort
show the diff in /srv/svc-12008
git -C /srv/svc-12008 diff --name-status src/ | tail -n 10
read journal entries for svc-12009
journalctl -u svc-12009.service -n 100 --output=short-iso | grep -i error
summarize git differences for /srv/svc-12010
git -C /srv/svc-12010 diff --check --
locate matching files in /srv/svc-12011
find /srv/svc-12011 -type d -name '*.log' -mtime +7 -exec gzip {} + 2>&1 | tee /tmp/svc-12011.log
list matching paths under /srv/svc-12012
find /srv/svc-12012 -type l -name '*.tmp' -size +50M -delete | cut -d, -f1
find files under /srv/svc-12013
find /srv/svc-12013 -type f -empty -printf '%s %p\n' | sort -nr | head -n 10 2>&1
filter log content for svc-12014
grep -n -A3 -B3 'FIXME' /srv/svc-12014 --exclude='*.min.js' | head -n 5
count matches in svc-12015 data
grep -RInE 'TODO' /srv/svc-12015 --include='*.py' | grep -v '^#'
restart svc-12016 by signaling its workers
pkill -TERM -x svc-12016 | cat
read journal entries for svc-12017
journalctl -u svc-12017.service --since '1 hour ago' -n 100 --output=short-iso | head -n 20
check port bindings for svc-12018
ss -tln | grep svc-12018 | head -n 5
search the svc-12019 directory tree
find /srv/svc-12019 -type d -empty -exec ls -lh {} + | head -n 20
list repository status details in /srv/svc-12020
git -C /srv/svc-12020 status --porcelain=v1 --show-stash --untracked-files=all | sort -k2
locate matching files in /srv/svc-12021
find /srv/svc-12021 -type d -empty -size +10M -exec gzip {} + | grep -i warn
scan configuration files for svc-12022
grep -n -A3 -B3 'timeout' /var/log/svc-12022.log 2>&1 | tee /tmp/svc-12022.log
find files under /srv/svc-12023
find /srv/svc-12023 -mindepth 1 -type f -name '*.log' -size +10M -printf '%s %p\n' | sort -nr | head -n 10 2>&1
list changed files in /srv/svc-12024
git -C /srv/svc-12024 diff --name-status HEAD~2..HEAD src/ | tail -n 10
validate JSON status for svc-12025
jq -c '.items[] | select(.id == 12025) | .name' /srv/svc-12025/jobs.json | sed 's/^/ /'
locate matching files in /srv/svc-12026
find /srv/svc-12026 -type d -empty -size +50M -print | column -t
test TCP connectivity for svc-12027
nc -zv svc-12027.example.com 32027 | sed 's/^/ /'
search text for svc-12028
grep -RIn 'timeout' /var/log/svc-12028.log --include='*.go' | awk '{print $1}'
search the svc-12029 directory tree
find /srv/svc-12029 -type l -name '*.tmp' -mtime +7 -delete | cut -d, -f1
test network path to svc-12030.example.com
ping -c 4 -W 2 svc-12030.example.com | sed 's/^/ /'
test TCP connectivity for svc-12031
nc -zv svc-12031.example.com 6379 | rev
list matching paths under /srv/svc-12032
find /srv/svc-12032 -type f -name '*.gz' -mtime +30 -exec ls -lh {} + || true
find files under /srv/svc-12033
find /srv/svc-12033 -type d -name '*.tmp' -size +50M -printf '%s %p\n' | sort -nr | head -n 10 | sort
search the svc-12034 directory tree
find /srv/svc-12034 -type l -name '*.tmp' -print 2>&1 | tee /tmp/svc-12034.log
count matches in svc-12035 data
grep -Rn 'TODO' /srv/svc-12035 --include='*.yaml' | paste -sd, -
extract JSON fields for svc-12036
jq '.metadata' /srv/svc-12036/data.json | tail -n 20
list matching paths under /srv/svc-12037
find /srv/svc-12037 -mindepth 1 -type f -empty -mtime +7 -delete || true
query JSON data for svc-12038
jq -r '.users[] | select(.active == true) | .email' /srv/svc-12038/jobs.json | rev
show pods for svc-12039
kubectl get pods -n svc-12039 -o wide | cut -d, -f1
check port bindings for svc-12040
ss -tulpn 'sport = :32040' | grep svc-12040 | head -n 5
locate matching files in /srv/svc-12041
find /srv/svc-12041 -type l -name '*.conf' -size +50M -print || true
read container logs for svc-12042
docker logs --since '24h' -f svc-12042 | sort -nr
display recent container output for svc-12043
docker logs --tail 50 --timestamps svc-12043 2>&1 | sort -k2
search the svc-12044 directory tree
find /srv/svc-12044 -type l -name '*.gz' -printf '%s %p\n' | sort -nr | head -n 10 | cat
clean up selected files in /srv/svc-12045
find /srv/svc-12045 -type f -name '*.conf' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 | grep -v '^#'
list git history for /srv/svc-12046
git -C /srv/svc-12046 log --oneline -n 100 --since='1 week ago' | sort -nr
show running containers for svc-12047
docker ps -a --format '{{.ID}} {{.Image}}' | tail -n 5 | tee /tmp/svc-12047.out | head -n 20
find files under /srv/svc-12048
find /srv/svc-12048 -type d -name '*.tmp' -newermt '1 day ago' -print | sort -k2
filter JSON records for svc-12049
jq -r '.items[] | select(.id == 12049) | .name' /srv/svc-12049/config.json | awk '{print $1}'
find duplicate values for svc-12050
uniq -c /srv/svc-12050/data.txt | sort -nr | grep -i error
find matching lines for svc-12051
grep -Ril 'TODO' /srv/svc-12051 | grep -v '^#'
display docker container details for svc-12052
docker ps -q | sort -n | tee /tmp/svc-12052.out | head -n 20
find files under /srv/svc-12053
find /srv/svc-12053 -type l -name '*.tmp' -size +10M -delete | less
filter JSON records for svc-12054
jq --indent 2 '.items[] | .name' /srv/svc-12054/config.json | sort -u
inspect systemd unit state for svc-12055
systemctl enable --now svc-12055.socket --no-pager | tail -n 50
find matching lines for svc-12056
grep -RIn 'FIXME' /srv/svc-12056 --include='*.go' | nl -ba
list matching paths under /srv/svc-12057
find /srv/svc-12057 -type l -name '*.log' -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | tail -n 10
find files under /srv/svc-12058
find /srv/svc-12058 -type f -name '*.log' -size +50M -exec ls -lh {} + | cut -d, -f1
summarize text columns for svc-12059
awk -F: '$3 > 100 {print $1}' /srv/svc-12059/data.csv | head -n 10
render the svc-12060 chart
helm status svc-12060 -n svc-12060 > /tmp/svc-12060.out
extract JSON fields for svc-12061
jq --indent 2 '.metadata' /srv/svc-12061/health.json | nl -ba
list matching paths under /srv/svc-12062
find /srv/svc-12062 -maxdepth 2 -type f -name '*.conf' -mtime +7 -exec ls -lh {} + | tail -n 20
find files under /srv/svc-12063
find /srv/svc-12063 -mindepth 1 -type f -empty -mtime +30 -exec ls -lh {} + | tail -n 10
filter JSON records for svc-12064
jq -r '.metadata' /srv/svc-12064/config.json | sort -k2
inspect network hops for svc-12065.example.com
traceroute -n -m 20 svc-12065.example.com 2>/dev/null
locate matching files in /srv/svc-12066
find /srv/svc-12066 -mindepth 1 -type f -name '*.tmp' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 | awk '{print $1}'
inspect recent changes in /srv/svc-12067
git -C /srv/svc-12067 log --format='%h %ad %s' --date=short -n 100 --since='1 week ago' 2>&1 | tee /tmp/svc-12067.log
find files under /srv/svc-12068
find /srv/svc-12068 -type d -name '*.gz' -size +50M -exec ls -lh {} + >> /tmp/svc-12068.out
filter JSON records for svc-12069
jq -c '.items[] | .name' /srv/svc-12069/config.json | uniq
compress application files for svc-12070
tar -czf /backup/svc-12070-$(date +%F).tar.gz -C /srv svc-12070 | paste -sd, -
locate matching files in /srv/svc-12071
find /srv/svc-12071 -type f -name '*.conf' -exec gzip {} + | grep -E '^[^#]'
list matching paths under /srv/svc-12072
find /srv/svc-12072 -mindepth 1 -type f -name '*.json' -mtime +30 -exec ls -lh {} + | tail -n 5
replace values in svc-12073 files
sed -i.bak 's/^#*Port .*/Port 32073/' /etc/svc-12073/sshd_config 2>/dev/null
list changed files in /srv/svc-12074
git -C /srv/svc-12074 diff --check --cached | sort -k2
create a backup tarball for svc-12075
tar -czf - /srv/svc-12075 | ssh deploy@10.20.49.76 'cat > /backup/svc-12075.tar.gz' | head -n 50
find matching lines for svc-12076
grep -c 'TODO' /srv/svc-12076 --include='*.py' | awk '{print $2}'
download svc-12077 data with curl
curl -fsS -X POST -H 'Content-Type: application/json' -d '{"id":12077}' http://127.0.0.1:32077/svc-12077/api/items | sort
find files under /srv/svc-12078
find /srv/svc-12078 -type f -name '*.gz' -newermt '1 day ago' -print > /tmp/svc-12078.out
give svc-12079 ownership of its data
chown -R svc-12079:svc-12079 /srv/svc-12079/logs | column -t
summarize git differences for /srv/svc-12080
git -C /srv/svc-12080 diff --name-only --cached | sed -n '1,20p'
display recent container output for svc-12081
docker logs --tail 500 svc-12081 | sed 's/^/ /'