prompt
stringlengths
6
157
response
stringlengths
1
147
inspect recent changes in /srv/svc-16982
git -C /srv/svc-16982 log --graph --oneline -n 100 --all | grep -v '^#'
create a backup tarball for svc-16983
tar -xzf /backup/svc-16983.tar.gz -C /tmp | head -n 5
display the commit log for /srv/svc-16984
git -C /srv/svc-16984 log --stat -n 50 --all | sed -n '1,20p'
deduplicate svc-16985 log entries
uniq -c -i /var/log/svc-16985.log | sort -nr | head | less
find duplicate values for svc-16986
uniq -s 5 /var/log/svc-16986.log | cut -d, -f1
list matching paths under /srv/svc-16987
find /srv/svc-16987 -type l -name '*.gz' -print 2>/dev/null
query systemd status for svc-16988
systemctl is-enabled svc-16988.socket --no-pager | head -n 20
filter log content for svc-16989
grep -RIn 'secret' /etc/svc-16989 --include='*.yaml' | tr -s ' '
clean up selected files in /srv/svc-16990
find /srv/svc-16990 -maxdepth 2 -type f -name '*.conf' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 > /tmp/svc-16990.out
locate matching files in /srv/svc-16991
find /srv/svc-16991 -type f -name '*.log' -newermt '1 day ago' -exec gzip {} + >> /tmp/svc-16991.out
pretty-print JSON for svc-16992
jq -c '.users[] | select(.active == true) | .email' /srv/svc-16992/config.json 2>&1
query JSON data for svc-16993
jq -r '.services | keys[]' /srv/svc-16993/jobs.json | awk '{print $1}'
search the svc-16994 directory tree
find /srv/svc-16994 -type l -name '*.log' -delete | tail -n 5
read journal entries for svc-16995
journalctl -u svc-16995.service --since '24 hours ago' -n 50 --output=short-iso | grep -v '^#'
locate matching files in /srv/svc-16996
find /srv/svc-16996 -maxdepth 2 -type f -name '*.gz' -mtime +30 -delete | tail -n 20
list matching paths under /srv/svc-16997
find /srv/svc-16997 -type l -name '*.log' -size +10M -delete | paste -sd, -
display docker container details for svc-16998
docker ps -a --format 'table {{.Names}}\t{{.Status}}' --filter 'label=app=svc-16998' | uniq -c
display recent container output for svc-16999
docker logs --tail 500 -f svc-16999 2>&1 | rev
clean up selected files in /srv/svc-17000
find /srv/svc-17000 -maxdepth 2 -type f -name '*.tmp' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 | cut -d, -f1
locate matching files in /srv/svc-17001
find /srv/svc-17001 -type l -name '*.tmp' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 | tail -n 50
query journal history for svc-17002
journalctl -u svc-17002.service --until '1 hour ago' -n 500 | head -n 50
query JSON data for svc-17003
jq --indent 2 '.services | keys[]' /srv/svc-17003/data.json | awk '{print $2}'
query journal history for svc-17004
journalctl -u svc-17004.service --until '1 hour ago' -n 100 --output=short-iso | tr -s ' '
summarize text columns for svc-17005
awk -F'\t' '/ERROR/ {count++} END {print count+0}' /var/log/svc-17005.log | head -n 50
display the working tree state in /srv/svc-17006
git -C /srv/svc-17006 status --show-stash --untracked-files=all | grep -i error
replace values in svc-17007 files
sed 's/^#*Port .*/Port 37007/' /etc/svc-17007/sshd_config | sort -n
show git status for /srv/svc-17008
git -C /srv/svc-17008 status --porcelain=v2 --branch --untracked-files=normal | cut -d: -f1
filter JSON records for svc-17009
jq -e '.items[] | .name' /srv/svc-17009/jobs.json | tr -s ' '
clean up selected files in /srv/svc-17010
find /srv/svc-17010 -type l -name '*.log' -size +10M -print | sort -k2
locate matching files in /srv/svc-17011
find /srv/svc-17011 -type f -name '*.tmp' -newermt '1 day ago' -exec gzip {} +
find processes using svc-17012 files
lsof -p $(pgrep -f svc-17012) | sort -k2
show running containers for svc-17013
docker ps -a --filter 'status=running' | tee -a /tmp/svc-17013.log
search the svc-17014 directory tree
find /srv/svc-17014 -type l -name '*.json' -mtime +7 -exec ls -lh {} + 2>&1 | tee /tmp/svc-17014.log
clean up selected files in /srv/svc-17015
find /srv/svc-17015 -type d -name '*.json' -size +50M -print 2>/dev/null
query systemd status for svc-17016
systemctl enable --now svc-17016.service --no-pager 2>&1 | tee /tmp/svc-17016.log
inspect recent changes in /srv/svc-17017
git -C /srv/svc-17017 log --stat -n 20 | nl -ba
display docker container details for svc-17018
docker ps -aq --format 'table {{.Names}}\t{{.Status}}' --filter 'status=running' | less | tee /tmp/svc-17018.out | head -n 20
filter log content for svc-17019
grep -n -A3 -B3 'secret' /etc/svc-17019 --exclude-dir=vendor | sort -n
validate JSON status for svc-17020
jq -S '.status == "ok"' /srv/svc-17020/data.json | head -n 10
locate matching files in /srv/svc-17021
find /srv/svc-17021 -type f -name '*.gz' -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | sort -n
list matching paths under /srv/svc-17022
find /srv/svc-17022 -type d -empty -printf '%s %p\n' | sort -nr | head -n 10 | sed -n '1,20p'
show the diff in /srv/svc-17023
git -C /srv/svc-17023 diff --name-only HEAD~2..HEAD -- | tail -n 50
search the svc-17024 directory tree
find /srv/svc-17024 -type f -name '*.gz' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 | awk '{print $2}'
inspect systemd unit state for svc-17025
systemctl disable svc-17025.service | wc -l
extract JSON fields for svc-17026
jq -S '.services | keys[]' /srv/svc-17026/users.json >> /tmp/svc-17026.out
inspect recent changes in /srv/svc-17027
git -C /srv/svc-17027 log --format='%h %ad %s' --date=short -n 20 --author='deploy' | awk '{print $1}'
find files under /srv/svc-17028
find /srv/svc-17028 -maxdepth 2 -type f -name '*.conf' -newermt '1 day ago' -exec gzip {} + | tee -a /tmp/svc-17028.log
search the svc-17029 directory tree
find /srv/svc-17029 -type l -name '*.conf' -mtime +30 -print | head -n 20
count matches in svc-17030 data
grep -RInE 'FIXME' /srv/svc-17030 --exclude-dir=vendor | tail -n 5
locate matching files in /srv/svc-17031
find /srv/svc-17031 -type d -name '*.conf' -newermt '1 day ago' -delete | sort -n
list matching paths under /srv/svc-17032
find /srv/svc-17032 -mindepth 1 -type f -name '*.log' -size +10M -delete > /tmp/svc-17032.out
show the diff in /srv/svc-17033
git -C /srv/svc-17033 diff --check --cached src/ | sed -n '1,20p'
search the svc-17034 directory tree
find /srv/svc-17034 -mindepth 1 -type f -name '*.log' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 | cat
validate JSON status for svc-17035
jq -r '.items[] | [.id, .name] | @tsv' /srv/svc-17035/config.json | tee /tmp/svc-17035.out
extract JSON fields for svc-17036
jq '.users[] | select(.active == true) | .email' /srv/svc-17036/jobs.json | awk '{print $1}'
inspect pending changes in /srv/svc-17037
git -C /srv/svc-17037 diff --name-only | head -n 20
query JSON data for svc-17038
jq -r '.items[] | [.id, .name] | @tsv' /srv/svc-17038/jobs.json | sed -n '1,20p'
filter log content for svc-17039
grep -n -A3 -B3 'panic[(]' /srv/svc-17039 --include='*.go' | cut -d, -f1
count matches in svc-17040 data
grep -RIn '^#' /etc/svc-17040/config.ini --include='*.yaml' | less
extract JSON fields for svc-17041
jq -c '.status == "ok"' /srv/svc-17041/config.json | tail -n 10
scan configuration files for svc-17042
grep -RIn 'timeout' /var/log/svc-17042.log | cat
show recent commits in /srv/svc-17043
git -C /srv/svc-17043 log --format='%h %ad %s' --date=short -n 20 --decorate | tail -n 5
search the svc-17044 directory tree
find /srv/svc-17044 -mindepth 1 -type f -name '*.gz' -newermt '1 day ago' -delete | cat
summarize git differences for /srv/svc-17045
git -C /srv/svc-17045 diff --color-words --cached | sed -n '1,20p'
diagnose routing to svc-17046.example.com
traceroute -T -p 37046 svc-17046.example.com | tac
list matching paths under /srv/svc-17047
find /srv/svc-17047 -type f -name '*.json' -mtime +30 -print | wc -l
find files under /srv/svc-17048
find /srv/svc-17048 -maxdepth 2 -type f -name '*.conf' -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | sort -nr
search the svc-17049 directory tree
find /srv/svc-17049 -maxdepth 2 -type f -name '*.conf' -mtime +7 -exec gzip {} + | sort -nr
find duplicate values for svc-17050
uniq -i /var/log/svc-17050.log | cut -d: -f1
locate matching files in /srv/svc-17051
find /srv/svc-17051 -type d -empty -mtime +7 -exec ls -lh {} + | wc -l
inspect branch and file status for /srv/svc-17052
git -C /srv/svc-17052 status --porcelain=v2 | head -n 50
find files under /srv/svc-17053
find /srv/svc-17053 -maxdepth 2 -type f -name '*.json' -exec ls -lh {} + >> /tmp/svc-17053.out
query systemd status for svc-17054
systemctl disable svc-17054.service --no-pager | wc -l
read journal entries for svc-17055
journalctl -u svc-17055.service --since '24 hours ago' -n 50 -f | sort -u
assign svc-17056 files to the service user
chown root:svc-17056 /etc/svc-17056/secrets.env 2>&1 | tee /tmp/svc-17056.log
stream pod logs for svc-17057
kubectl logs job/svc-17057-migrate -n svc-17057 | awk '{print $2}'
show recent commits in /srv/svc-17058
git -C /srv/svc-17058 log --name-status -n 10 --grep='fix' | grep -E '^[^#]'
filter log content for svc-17059
grep -n -A3 -B3 'FIXME' /srv/svc-17059 --exclude-dir=vendor | head -n 50
display docker container details for svc-17060
docker ps --latest --format '{{.ID}} {{.Image}}' | sed -n '1,20p' | tee /tmp/svc-17060.out | head -n 20
locate matching files in /srv/svc-17061
find /srv/svc-17061 -maxdepth 2 -type f -empty -delete | sort -nr
check path selection for svc-17062.example.com
ip route get svc-17062.example.com mark 1 | tail -n 50
summarize text columns for svc-17063
awk 'NR > 1 {print $2}' /srv/svc-17063/users.csv | sed -n '1,20p'
filter JSON records for svc-17064
jq --indent 2 'map(select(.status == "failed")) | length' /srv/svc-17064/users.json >> /tmp/svc-17064.out
clean up selected files in /srv/svc-17065
find /srv/svc-17065 -maxdepth 2 -type f -name '*.json' -mtime +30 -exec ls -lh {} + | less
locate matching files in /srv/svc-17066
find /srv/svc-17066 -mindepth 1 -type f -empty -size +50M -print | paste -sd, -
inspect pending changes in /srv/svc-17067
git -C /srv/svc-17067 diff --numstat --cached src/ | grep -E '^[^#]'
show the diff in /srv/svc-17068
git -C /srv/svc-17068 diff --name-status HEAD~2..HEAD -- | tail -n 10
search the svc-17069 directory tree
find /srv/svc-17069 -type d -name '*.json' -mtime +30 -delete | uniq -c
clean up selected files in /srv/svc-17070
find /srv/svc-17070 -type d -empty -newermt '1 day ago' -delete 2>&1
locate matching files in /srv/svc-17071
find /srv/svc-17071 -type l -name '*.log' -delete | awk '{print $1}'
scan configuration files for svc-17072
grep -n -A3 -B3 'panic[(]' /srv/svc-17072 --include='*.py' | grep -i error
find files under /srv/svc-17073
find /srv/svc-17073 -maxdepth 2 -type f -name '*.log' -newermt '1 day ago' -delete >> /tmp/svc-17073.out
query journal history for svc-17074
journalctl --since '1 hour ago' -u svc-17074.service -n 500 -f | head -n 20
display recent container output for svc-17075
docker logs --since '1h' svc-17075 | sed 's/^/ /'
find matching lines for svc-17076
grep -Ril '^#' /etc/svc-17076/config.ini | sed 's/^/ /'
list matching paths under /srv/svc-17077
find /srv/svc-17077 -type l -name '*.log' -mtime +7 -exec ls -lh {} + | tail -n 50
process log fields for svc-17078
awk 'NR % 100 == 0 {print NR, $0}' /var/log/svc-17078/app.log 2>&1
inspect systemd unit state for svc-17079
systemctl stop svc-17079.timer | sed -n '1,20p'
validate JSON status for svc-17080
jq -c '.items[] | select(.id == 17080) | .name' /srv/svc-17080/config.json | tail -n 20
compare revisions in /srv/svc-17081
git -C /srv/svc-17081 diff --numstat --cached config/ 2>/dev/null