prompt
stringlengths
6
157
response
stringlengths
1
147
verify a network port for svc-14682
nc -zv svc-14682.example.com 443 > /tmp/svc-14682.out
search text for svc-14683
grep -c 'WARN' /var/log/svc-14683.log --include='*.yaml' | cat
search the svc-14684 directory tree
find /srv/svc-14684 -maxdepth 2 -type f -name '*.json' -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | awk '{print $2}'
count matches in svc-14685 data
grep -Rn 'secret' /etc/svc-14685 --include='*.yaml' | sort
find matching lines for svc-14686
grep -c 'FIXME' /srv/svc-14686 --include='*.go' | uniq -c
list matching paths under /srv/svc-14687
find /srv/svc-14687 -maxdepth 2 -type f -name '*.gz' -printf '%s %p\n' | sort -nr | head -n 10
show the diff in /srv/svc-14688
git -C /srv/svc-14688 diff --name-only --cached src/ > /tmp/svc-14688.out
search the svc-14689 directory tree
find /srv/svc-14689 -mindepth 1 -type f -name '*.log' -printf '%s %p\n' | sort -nr | head -n 10 | tee -a /tmp/svc-14689.log
clean up selected files in /srv/svc-14690
find /srv/svc-14690 -type f -name '*.log' -size +50M -printf '%s %p\n' | sort -nr | head -n 10 | tail -n 10
replace values in svc-14691 files
sed -n '/start/,/end/p' /etc/svc-14691/config.yml | paste -sd, -
scan configuration files for svc-14692
grep -c 'WARN' /var/log/svc-14692.log --include='*.go' | wc -l
search text for svc-14693
grep -v 'panic[(]' /srv/svc-14693 --include='*.py' | tail -n 50
filter JSON records for svc-14694
jq --indent 2 '.users[] | select(.active == true) | .email' /srv/svc-14694/config.json || true
replace values in svc-14695 files
sed -i.bak 's/^#*Port .*/Port 34695/' /etc/svc-14695/sshd_config || true
locate matching files in /srv/svc-14696
find /srv/svc-14696 -type d -name '*.tmp' -size +50M -print | tac
pretty-print JSON for svc-14697
jq -e '.services | keys[]' /srv/svc-14697/users.json | tail -n 20
summarize svc-14698 file statistics
wc -m /srv/svc-14698/data.txt | cat
filter JSON records for svc-14699
jq '.status == "ok"' /srv/svc-14699/data.json | sed -n '1,20p'
clean up selected files in /srv/svc-14700
find /srv/svc-14700 -type l -name '*.tmp' -size +10M -exec ls -lh {} + | less
display the working tree state in /srv/svc-14701
git -C /srv/svc-14701 status --porcelain=v2 --show-stash --untracked-files=all > /tmp/svc-14701.out
list matching paths under /srv/svc-14702
find /srv/svc-14702 -type f -name '*.log' -size +50M -exec gzip {} + | less
search text for svc-14703
grep -RInE 'FIXME' /srv/svc-14703 --include='*.yaml' > /tmp/svc-14703.out
sort svc-14704 files with custom fields
sort -h /srv/svc-14704/sizes.txt | tail -n 20
clean up selected files in /srv/svc-14705
find /srv/svc-14705 -maxdepth 2 -type f -name '*.json' -mtime +30 -exec ls -lh {} + | column -t
extract JSON fields for svc-14706
jq -c '.services | keys[]' /srv/svc-14706/config.json | sort -nr
scan configuration files for svc-14707
grep -RInE 'panic[(]' /srv/svc-14707 --exclude-dir=vendor | rev
read container logs for svc-14708
docker logs --tail 50 svc-14708 | nl -ba
list changed files in /srv/svc-14709
git -C /srv/svc-14709 diff --name-only config/ | sort
summarize svc-14710 file statistics
wc -l -w /var/log/svc-14710.log 2>&1 | tee /tmp/svc-14710.log
list git history for /srv/svc-14711
git -C /srv/svc-14711 log --name-status -n 50 | awk '{print $1}'
list matching paths under /srv/svc-14712
find /srv/svc-14712 -maxdepth 2 -type f -name '*.gz' -size +10M -printf '%s %p\n' | sort -nr | head -n 10 | tail -n 5
read journal entries for svc-14713
journalctl -u svc-14713.service --since '1 hour ago' -n 500 | tail -n 50
inspect process matches for svc-14714
pgrep -n -f svc-14714 2>/dev/null
count matches in svc-14715 data
grep -Ril 'panic[(]' /srv/svc-14715 --exclude='*.min.js' 2>/dev/null
compress application files for svc-14716
tar -czf /backup/svc-14716.tar.gz -C /srv/svc-14716 . | sed -n '1,20p'
list matching paths under /srv/svc-14717
find /srv/svc-14717 -type f -name '*.gz' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 | column -t
find files under /srv/svc-14718
find /srv/svc-14718 -mindepth 1 -type f -name '*.log' -mtime +7 -print | less
display the commit log for /srv/svc-14719
git -C /srv/svc-14719 log --graph --oneline -n 50 --since='1 week ago' >> /tmp/svc-14719.out
clean up selected files in /srv/svc-14720
find /srv/svc-14720 -mindepth 1 -type f -name '*.gz' -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 2>&1
find matching lines for svc-14721
grep -c 'timeout' /var/log/svc-14721.log --include='*.py' 2>&1
list matching paths under /srv/svc-14722
find /srv/svc-14722 -type f -name '*.log' -size +50M -printf '%s %p\n' | sort -nr | head -n 10 | fold -w 120
secure svc-14723 secrets
chmod 600 /etc/svc-14723/id_rsa | awk '{print $2}'
filter log content for svc-14724
grep -Rn 'secret' /etc/svc-14724 --include='*.yaml' | column -t
upgrade the svc-14725 chart
helm get values svc-14725 -n svc-14725 | rev
locate matching files in /srv/svc-14726
find /srv/svc-14726 -type l -empty -size +50M -exec gzip {} + | awk '{print $2}'
pretty-print JSON for svc-14727
jq -e '.items[] | .name' /srv/svc-14727/users.json | grep -i warn
query JSON data for svc-14728
jq -c '.items[] | .name' /srv/svc-14728/config.json | grep -v '^#'
filter log content for svc-14729
grep -c 'FIXME' /srv/svc-14729 --exclude-dir=vendor 2>&1 | tee /tmp/svc-14729.log
clean up selected files in /srv/svc-14730
find /srv/svc-14730 -type d -name '*.gz' -mtime +7 -exec ls -lh {} + | tail -n 5
check reachability of svc-14731.example.com
ping -c 1 -q svc-14731.example.com | less
query journal history for svc-14732
journalctl -u svc-14732.service --until '1 hour ago' -n 500 -f | nl -ba
find files under /srv/svc-14733
find /srv/svc-14733 -type f -name '*.conf' -newermt '1 day ago' -delete > /tmp/svc-14733.out
filter JSON records for svc-14734
jq -r '.items[] | select(.id == 14734) | .name' /srv/svc-14734/config.json | uniq -c
display recent container output for svc-14735
docker logs --since '1h' -f svc-14735 2>&1 | grep -i warn
find matching lines for svc-14736
grep -Rn 'ERROR' /var/log/svc-14736.log | sort -u
scan configuration files for svc-14737
grep -RIn 'FIXME' /srv/svc-14737 --include='*.yaml' | nl -ba
show recent commits in /srv/svc-14738
git -C /srv/svc-14738 log --oneline -n 50 --all 2>/dev/null
show running containers for svc-14739
docker ps -a --format 'table {{.Names}}\t{{.Status}}' --filter 'label=app=svc-14739' | cat
clean up selected files in /srv/svc-14740
find /srv/svc-14740 -mindepth 1 -type f -empty -size +50M -exec gzip {} + | wc -l
locate matching files in /srv/svc-14741
find /srv/svc-14741 -mindepth 1 -type f -name '*.log' -newermt '1 day ago' -exec gzip {} + | fold -w 120
query journal history for svc-14742
journalctl -u svc-14742.service --since '1 hour ago' -n 500 --output=short-iso | sed -n '1,20p'
show running containers for svc-14743
docker ps -a --format '{{.ID}} {{.Image}}' | grep -i error | tee /tmp/svc-14743.out | head -n 20
search the svc-14744 directory tree
find /srv/svc-14744 -type f -name '*.gz' -exec gzip {} + | tee /tmp/svc-14744.out
clean up selected files in /srv/svc-14745
find /srv/svc-14745 -type f -name '*.json' -mtime +7 -delete | fold -w 120
query systemd status for svc-14746
systemctl disable svc-14746.socket 2>/dev/null
inspect TCP ports for svc-14747
ss -tn state established | grep svc-14747 | tr -s ' '
query JSON data for svc-14748
jq --indent 2 '.metadata' /srv/svc-14748/config.json | head -n 20
replace values in svc-14749 files
sed -i 's/debug=true/debug=false/g' /etc/svc-14749/app.conf | head -n 20
clean up selected files in /srv/svc-14750
find /srv/svc-14750 -maxdepth 2 -type f -name '*.conf' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 2>&1
find matching lines for svc-14751
grep -v 'WARN' /var/log/svc-14751.log --include='*.go' | sort -k2
inspect pending changes in /srv/svc-14752
git -C /srv/svc-14752 diff --check -- | sort
show the diff in /srv/svc-14753
git -C /srv/svc-14753 diff --numstat --cached -- | sed 's/^/ /'
filter log content for svc-14754
grep -RInE 'FIXME' /srv/svc-14754 --include='*.py' | awk '{print $1}'
read journal entries for svc-14755
journalctl --since 'today' -n 50 | awk '{print $2}' | tee /tmp/svc-14755.out | head -n 20
read container logs for svc-14756
docker logs --tail 50 -f svc-14756 | grep -i error | tail -n 50
pretty-print JSON for svc-14757
jq --indent 2 '.status == "ok"' /srv/svc-14757/health.json | head -n 5
find files under /srv/svc-14758
find /srv/svc-14758 -type d -empty -delete
select fields from svc-14759 files
cut -d: -f1,3-5 /etc/passwd | head -n 5 | tee /tmp/svc-14759.out | head -n 20
compress application files for svc-14760
tar -czf - /srv/svc-14760 | ssh deploy@10.20.60.11 'cat > /backup/svc-14760.tar.gz' | uniq -c
locate matching files in /srv/svc-14761
find /srv/svc-14761 -maxdepth 2 -type f -empty -exec ls -lh {} + | uniq -c
list matching paths under /srv/svc-14762
find /srv/svc-14762 -mindepth 1 -type f -name '*.tmp' -size +50M -printf '%s %p\n' | sort -nr | head -n 10 | fold -w 120
schedule svc-14763 maintenance with nice
nice -n 10 find /srv/svc-14763 -type f -name '*.tmp' -delete | cat
search the svc-14764 directory tree
find /srv/svc-14764 -type d -name '*.log' -size +50M -exec gzip {} + | sort -k2
inspect routing for svc-14765.example.com
ip route get svc-14765.example.com mark 1 | column -t
locate matching files in /srv/svc-14766
find /srv/svc-14766 -type l -empty -exec gzip {} + | nl -ba
list matching paths under /srv/svc-14767
find /srv/svc-14767 -type d -name '*.json' -mtime +7 -exec ls -lh {} + | uniq
query systemd status for svc-14768
systemctl is-enabled svc-14768.timer --no-block | head -n 20
list changed files in /srv/svc-14769
git -C /srv/svc-14769 diff --name-only HEAD~1..HEAD -- | head -n 50
print a git log summary for /srv/svc-14770
git -C /srv/svc-14770 log --name-status -n 100 --all | wc -l
display recent container output for svc-14771
docker logs --tail 100 --timestamps svc-14771 | head -n 5
list matching paths under /srv/svc-14772
find /srv/svc-14772 -type f -name '*.log' -mtime +7 -exec ls -lh {} + || true
find files under /srv/svc-14773
find /srv/svc-14773 -type d -name '*.log' -print | less
search the svc-14774 directory tree
find /srv/svc-14774 -type l -name '*.gz' -mtime +7 -exec ls -lh {} + | sort
list repository status details in /srv/svc-14775
git -C /srv/svc-14775 status --ignored --untracked-files=normal | sort -nr
find matching lines for svc-14776
grep -Ril 'FIXME' /srv/svc-14776 --include='*.py' > /tmp/svc-14776.out
show running containers for svc-14777
docker ps -aq | tr -s ' ' | tee /tmp/svc-14777.out | head -n 20
find files under /srv/svc-14778
find /srv/svc-14778 -type d -empty -mtime +7 -exec gzip {} + | cat
check changed files in /srv/svc-14779
git -C /srv/svc-14779 status --ignored | sed 's/^/ /'
validate JSON status for svc-14780
jq -e '.status == "ok"' /srv/svc-14780/health.json | head -n 5
locate matching files in /srv/svc-14781
find /srv/svc-14781 -type f -name '*.log' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 | tee /tmp/svc-14781.out