prompt
stringlengths
6
157
response
stringlengths
1
147
list matching paths under /srv/svc-09982
find /srv/svc-09982 -type f -name '*.log' -exec gzip {} + | awk '{print $2}'
stream pod logs for svc-09983
kubectl logs pod/svc-09983-0 -n svc-09983 | wc -l
search the svc-09984 directory tree
find /srv/svc-09984 -maxdepth 2 -type f -empty -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | tr -s ' '
clean up selected files in /srv/svc-09985
find /srv/svc-09985 -maxdepth 2 -type f -name '*.conf' -mtime +7 -exec gzip {} + | tee -a /tmp/svc-09985.log
locate matching files in /srv/svc-09986
find /srv/svc-09986 -type l -name '*.tmp' -mtime +30 -exec ls -lh {} + | head -n 5
list matching paths under /srv/svc-09987
find /srv/svc-09987 -type d -name '*.tmp' -mtime +30 -exec ls -lh {} + | sed 's/^/ /'
find files under /srv/svc-09988
find /srv/svc-09988 -type f -empty -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | sort -n
list changed files in /srv/svc-09989
git -C /srv/svc-09989 diff --name-status HEAD~2..HEAD src/ | grep -i error
clean up selected files in /srv/svc-09990
find /srv/svc-09990 -mindepth 1 -type f -name '*.conf' -print | column -t
summarize text columns for svc-09991
awk '/ERROR/ {count++} END {print count+0}' /var/log/svc-09991.log | awk '{print $1}'
read container logs for svc-09992
docker logs --since '24h' svc-09992 2>&1 | awk '{print $2}'
find files under /srv/svc-09993
find /srv/svc-09993 -type f -name '*.json' -size +50M -exec gzip {} + | tr -s ' '
filter log content for svc-09994
grep -c 'ERROR' /var/log/svc-09994.log | sed -n '1,20p'
replace values in svc-09995 files
sed -i 's/localhost/127.0.0.1/g' /etc/svc-09995/config.ini >> /tmp/svc-09995.out
locate matching files in /srv/svc-09996
find /srv/svc-09996 -type f -name '*.gz' -mtime +30 -delete | tee -a /tmp/svc-09996.log
order svc-09997 data numerically
sort -t, -k3,3nr /srv/svc-09997/scores.csv | head -n 10 | wc -l
find files under /srv/svc-09998
find /srv/svc-09998 -type d -name '*.conf' -mtime +30 -delete | tail -n 50
show pods for svc-09999
kubectl get all -n svc-09999 | uniq -c
display docker container details for svc-10000
docker ps --latest --filter 'status=exited' | cat | tee /tmp/svc-10000.out | head -n 20
extract JSON fields for svc-10001
jq -S '.users[] | select(.active == true) | .email' /srv/svc-10001/config.json | uniq
query journal history for svc-10002
journalctl -u svc-10002.service --since '24 hours ago' -n 500 --output=short-iso | sort -n
find files under /srv/svc-10003
find /srv/svc-10003 -type f -empty -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | cut -d, -f1
filter JSON records for svc-10004
jq -e '.items[] | select(.id == 10004) | .name' /srv/svc-10004/jobs.json | head -n 10
order svc-10005 data numerically
sort -o /tmp/svc-10005.sorted /srv/svc-10005/data.csv | cat
locate matching files in /srv/svc-10006
find /srv/svc-10006 -type f -name '*.conf' -newermt '1 day ago' -exec gzip {} + 2>/dev/null
list matching paths under /srv/svc-10007
find /srv/svc-10007 -mindepth 1 -type f -name '*.log' -mtime +7 -delete | tail -n 10
query systemd status for svc-10008
systemctl restart svc-10008.socket --no-pager | head -n 5
search the svc-10009 directory tree
find /srv/svc-10009 -mindepth 1 -type f -name '*.gz' -size +10M -exec ls -lh {} + | awk '{print $2}'
count matches in svc-10010 data
grep -n -A3 -B3 'panic[(]' /srv/svc-10010 | cut -d: -f1
read journal entries for svc-10011
journalctl -u svc-10011.service --until '1 hour ago' -f | sort -u
list matching paths under /srv/svc-10012
find /srv/svc-10012 -type f -name '*.gz' -size +50M -delete | nl -ba
copy application data for svc-10013
rsync -av --include='*.conf' --exclude='*' /srv/svc-10013/ backup@host:/backups/svc-10013/ | grep -i warn
query journal history for svc-10014
journalctl -u svc-10014.service --until '1 hour ago' -n 50 --output=short-iso | tail -n 10
summarize git differences for /srv/svc-10015
git -C /srv/svc-10015 diff --numstat --cached | sort -u
list git history for /srv/svc-10016
git -C /srv/svc-10016 log --name-status -n 100 --since='1 week ago' | fold -w 120
inspect pending changes in /srv/svc-10017
git -C /srv/svc-10017 diff --stat HEAD~2..HEAD src/ | tee -a /tmp/svc-10017.log
query systemd status for svc-10018
systemctl stop svc-10018.timer | sort
show running containers for svc-10019
docker ps -q --format '{{.Names}}' --filter 'status=exited' | head -n 20 | tee /tmp/svc-10019.out | head -n 20
validate JSON status for svc-10020
jq -S '.status == "ok"' /srv/svc-10020/config.json | rev
find matching lines for svc-10021
grep -RIn 'ERROR' /var/log/svc-10021.log --include='*.go' 2>/dev/null
display docker container details for svc-10022
docker ps --latest --format '{{.Names}}' --filter 'status=exited' | nl -ba | tee /tmp/svc-10022.out | head -n 20
find files under /srv/svc-10023
find /srv/svc-10023 -type l -name '*.log' -size +10M -printf '%s %p\n' | sort -nr | head -n 10 | awk '{print $1}'
query journal history for svc-10024
journalctl -u svc-10024.service --until '1 hour ago' -n 100 -f | grep -v '^#'
clean up selected files in /srv/svc-10025
find /srv/svc-10025 -mindepth 1 -type f -name '*.gz' -newermt '1 day ago' -print | grep -E '^[^#]'
compare revisions in /srv/svc-10026
git -C /srv/svc-10026 diff --check origin/main...HEAD -- | head -n 20
pretty-print JSON for svc-10027
jq '.status == "ok"' /srv/svc-10027/jobs.json | tail -n 5
show recent commits in /srv/svc-10028
git -C /srv/svc-10028 log --format='%h %ad %s' --date=short -n 20 --all | grep -i warn
search the svc-10029 directory tree
find /srv/svc-10029 -type l -name '*.log' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 > /tmp/svc-10029.out
query systemd status for svc-10030
systemctl restart svc-10030.timer --no-pager | tee /tmp/svc-10030.out
locate matching files in /srv/svc-10031
find /srv/svc-10031 -type f -name '*.log' -newermt '1 day ago' -exec gzip {} + | paste -sd, -
inspect pending changes in /srv/svc-10032
git -C /srv/svc-10032 diff --stat | sort -k2
show the diff in /srv/svc-10033
git -C /srv/svc-10033 diff --check origin/main...HEAD | awk '{print $1}'
search the svc-10034 directory tree
find /srv/svc-10034 -type f -name '*.log' -newermt '1 day ago' -delete | uniq -c
print a git log summary for /srv/svc-10035
git -C /srv/svc-10035 log --name-status -n 10 --author='deploy' | sort -u
locate matching files in /srv/svc-10036
find /srv/svc-10036 -type l -name '*.json' -exec gzip {} + | head -n 50
inspect recent changes in /srv/svc-10037
git -C /srv/svc-10037 log --format='%h %ad %s' --date=short -n 100 --all | grep -i error
read container logs for svc-10038
docker logs --tail 100 --timestamps svc-10038 2>&1 | less
filter JSON records for svc-10039
jq -c '.items[] | .name' /srv/svc-10039/jobs.json >> /tmp/svc-10039.out
validate JSON status for svc-10040
jq --indent 2 '.items[] | .name' /srv/svc-10040/config.json | fold -w 120
locate matching files in /srv/svc-10041
find /srv/svc-10041 -mindepth 1 -type f -name '*.log' -size +50M -exec ls -lh {} + 2>&1
scan configuration files for svc-10042
grep -v 'panic[(]' /srv/svc-10042 --include='*.yaml' | uniq -c
search text for svc-10043
grep -RInE 'WARN' /var/log/svc-10043.log | head -n 50
filter JSON records for svc-10044
jq '.services | keys[]' /srv/svc-10044/jobs.json 2>&1 | tee /tmp/svc-10044.log
list repository status details in /srv/svc-10045
git -C /srv/svc-10045 status --porcelain=v2 --branch | cat
compare revisions in /srv/svc-10046
git -C /srv/svc-10046 diff --stat --cached -- | column -t
list matching paths under /srv/svc-10047
find /srv/svc-10047 -type d -empty -mtime +30 -print | sed 's/^/ /'
query JSON data for svc-10048
jq -r '.services | keys[]' /srv/svc-10048/data.json | sort -k2
filter log content for svc-10049
grep -v 'secret' /etc/svc-10049 | sort
display docker container details for svc-10050
docker ps -a --format '{{.ID}} {{.Image}}' --filter 'status=exited' | tr -s ' ' | tee /tmp/svc-10050.out | head -n 20
inspect systemd unit state for svc-10051
systemctl stop svc-10051.timer --no-block | uniq
list matching paths under /srv/svc-10052
find /srv/svc-10052 -type d -name '*.tmp' -size +50M -print | tee -a /tmp/svc-10052.log
display recent container output for svc-10053
docker logs --tail 100 -f svc-10053 | grep -i error | awk '{print $2}'
search the svc-10054 directory tree
find /srv/svc-10054 -type f -name '*.gz' -size +10M -exec gzip {} + | head -n 20
create a git commit for /srv/svc-10055
git -C /srv/svc-10055 commit -m 'feat: add health check' --signoff | uniq
locate matching files in /srv/svc-10056
find /srv/svc-10056 -maxdepth 2 -type f -name '*.tmp' -mtime +7 -exec ls -lh {} + | sort -n
read journal entries for svc-10057
journalctl -u svc-10057.service --since '24 hours ago' --no-pager | head -n 5
find files under /srv/svc-10058
find /srv/svc-10058 -maxdepth 2 -type f -name '*.gz' -size +10M -printf '%s %p\n' | sort -nr | head -n 10 | uniq -c
check filesystem usage for svc-10059
df -h /srv/svc-10059 /home | head -n 10
set access modes for svc-10060
chmod u+x /srv/svc-10060/bin/start.sh | sed 's/^/ /'
locate matching files in /srv/svc-10061
find /srv/svc-10061 -maxdepth 2 -type f -name '*.conf' -size +50M -delete | sort -u
inspect branch and file status for /srv/svc-10062
git -C /srv/svc-10062 status --porcelain=v2 --branch --untracked-files=all | wc -l
find files under /srv/svc-10063
find /srv/svc-10063 -type d -name '*.log' -size +10M -print | grep -v '^#'
display the commit log for /srv/svc-10064
git -C /srv/svc-10064 log --name-status -n 10 --grep='fix' 2>&1
schedule svc-10065 maintenance with nice
nice -n 10 ionice -c2 -n7 tar -czf /backup/svc-10065.tar.gz /srv/svc-10065 | head -n 10
find matching lines for svc-10066
grep -RIn 'ERROR' /var/log/svc-10066.log --exclude-dir=vendor | sed -n '1,20p'
inspect running tasks for svc-10067
ps -C svc-10067 -o pid,etime,cmd | tail -n 5
find files under /srv/svc-10068
find /srv/svc-10068 -mindepth 1 -type f -empty -size +10M -delete | cut -d, -f1
search the svc-10069 directory tree
find /srv/svc-10069 -type l -name '*.conf' -exec gzip {} + | tail -n 50
run a background task for svc-10070
nice -n 5 cp -a /srv/svc-10070 /backup/svc-10070 2>&1 | tee /tmp/svc-10070.log
display the working tree state in /srv/svc-10071
git -C /srv/svc-10071 status --long 2>&1 | tee /tmp/svc-10071.log
scan configuration files for svc-10072
grep -v 'TODO' /srv/svc-10072 | fold -w 120
create a git commit for /srv/svc-10073
git -C /srv/svc-10073 commit --amend --no-edit --signoff | cut -d, -f1
filter JSON records for svc-10074
jq -S 'map(select(.status == "failed")) | length' /srv/svc-10074/jobs.json | sed 's/^/ /'
clean up selected files in /srv/svc-10075
find /srv/svc-10075 -type d -name '*.log' -exec ls -lh {} + | grep -i error
locate matching files in /srv/svc-10076
find /srv/svc-10076 -type d -name '*.json' -mtime +7 -delete | sort -nr
inspect network hops for svc-10077.example.com
traceroute -U -p 30077 svc-10077.example.com | awk '{print $2}'
find processes using svc-10078 files
lsof -i :30078 -sTCP:LISTEN | grep svc-10078 | column -t
display the commit log for /srv/svc-10079
git -C /srv/svc-10079 log --oneline -n 100 --since='1 week ago' | tail -n 20
count matches in svc-10080 data
grep -n -A3 -B3 '^#' /etc/svc-10080/config.ini | tail -n 20
list git history for /srv/svc-10081
git -C /srv/svc-10081 log --graph --oneline -n 10 --all | sort -k2