prompt
stringlengths
6
157
response
stringlengths
1
147
pretty-print JSON for svc-20982
jq -c '.items[] | select(.id == 20982) | .name' /srv/svc-20982/health.json | nl -ba
find files under /srv/svc-20983
find /srv/svc-20983 -mindepth 1 -type f -empty -newermt '1 day ago' -print | sort -n
search the svc-20984 directory tree
find /srv/svc-20984 -type f -name '*.tmp' -size +10M -exec ls -lh {} + | sed -n '1,20p'
clean up selected files in /srv/svc-20985
find /srv/svc-20985 -type l -name '*.log' -newermt '1 day ago' -exec gzip {} + | column -t
locate matching files in /srv/svc-20986
find /srv/svc-20986 -type l -name '*.tmp' -newermt '1 day ago' -exec ls -lh {} + | cut -d: -f1
show running containers for svc-20987
docker ps -q --filter 'label=app=svc-20987' | grep -E '^[^#]'
show recent commits in /srv/svc-20988
git -C /srv/svc-20988 log --stat -n 100 --grep='fix' | column -t
search the svc-20989 directory tree
find /srv/svc-20989 -type l -name '*.json' -size +10M -exec gzip {} + | grep -i warn
clean up selected files in /srv/svc-20990
find /srv/svc-20990 -type l -name '*.conf' -mtime +7 -print | awk '{print $1}'
locate matching files in /srv/svc-20991
find /srv/svc-20991 -maxdepth 2 -type f -name '*.json' -mtime +30 -exec gzip {} + | grep -i warn
list matching paths under /srv/svc-20992
find /srv/svc-20992 -maxdepth 2 -type f -name '*.tmp' -size +10M -exec ls -lh {} + | grep -i warn
find files under /srv/svc-20993
find /srv/svc-20993 -type f -name '*.tmp' -mtime +30 -delete | head -n 50
list changed files in /srv/svc-20994
git -C /srv/svc-20994 diff --name-only -- | head -n 50
summarize git differences for /srv/svc-20995
git -C /srv/svc-20995 diff --name-status -- | tail -n 20
list git history for /srv/svc-20996
git -C /srv/svc-20996 log --format='%h %ad %s' --date=short -n 100 --grep='fix' | rev
list matching paths under /srv/svc-20997
find /srv/svc-20997 -type d -empty -size +10M -printf '%s %p\n' | sort -nr | head -n 10 | nl -ba
find files under /srv/svc-20998
find /srv/svc-20998 -type d -name '*.conf' -size +50M -print | head -n 50
show running containers for svc-20999
docker ps -aq --format '{{.ID}} {{.Image}}' --filter 'status=exited' | sort -nr | tee /tmp/svc-20999.out | head -n 20
clean up selected files in /srv/svc-21000
find /srv/svc-21000 -type f -name '*.log' -mtime +7 -delete | paste -sd, -
extract JSON fields for svc-21001
jq --indent 2 '.status == "ok"' /srv/svc-21001/config.json | grep -E '^[^#]'
read container logs for svc-21002
docker logs --tail 500 svc-21002 2>&1 > /tmp/svc-21002.out
query JSON data for svc-21003
jq -r '.items[] | [.id, .name] | @tsv' /srv/svc-21003/data.json | tail -n 5
filter JSON records for svc-21004
jq -c '.services | keys[]' /srv/svc-21004/health.json | less
clean up selected files in /srv/svc-21005
find /srv/svc-21005 -type f -empty -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | tail -n 10
locate matching files in /srv/svc-21006
find /srv/svc-21006 -type d -name '*.gz' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 > /tmp/svc-21006.out
display recent container output for svc-21007
docker logs --tail 500 -f svc-21007 | grep -i error | awk '{print $2}'
query JSON data for svc-21008
jq --indent 2 'map(select(.status == "failed")) | length' /srv/svc-21008/jobs.json | sort -n
filter log content for svc-21009
grep -RIn 'panic[(]' /srv/svc-21009 --include='*.yaml' > /tmp/svc-21009.out
clean up selected files in /srv/svc-21010
find /srv/svc-21010 -mindepth 1 -type f -name '*.tmp' -size +50M -exec ls -lh {} + | sed 's/^/ /'
locate matching files in /srv/svc-21011
find /srv/svc-21011 -type d -name '*.conf' -size +50M -exec gzip {} + | head -n 10
pretty-print JSON for svc-21012
jq -r '.metadata' /srv/svc-21012/jobs.json | tail -n 50
query JSON data for svc-21013
jq -S '.items[] | select(.id == 21013) | .name' /srv/svc-21013/jobs.json > /tmp/svc-21013.out
check changed files in /srv/svc-21014
git -C /srv/svc-21014 status --porcelain=v1 --show-stash --untracked-files=all 2>&1
show running containers for svc-21015
docker ps -q --format '{{.Names}}' | tee /tmp/svc-21015.out
locate matching files in /srv/svc-21016
find /srv/svc-21016 -maxdepth 2 -type f -name '*.json' -mtime +7 -print | tac
scan configuration files for svc-21017
grep -Ril 'secret' /etc/svc-21017 | grep -i error
show the diff in /srv/svc-21018
git -C /srv/svc-21018 diff --check config/ | uniq -c
give svc-21019 ownership of its data
chown -R --from=root:root root:svc-21019 /srv/svc-21019 | head -n 10
sort svc-21020 files with custom fields
sort -u /srv/svc-21020/users.txt | cut -d: -f1
locate matching files in /srv/svc-21021
find /srv/svc-21021 -type l -name '*.tmp' -size +50M -print | awk '{print $1}'
clean up svc-21022 text files
sed '1,120p' /var/log/svc-21022.log | tail -n 10
show the diff in /srv/svc-21023
git -C /srv/svc-21023 diff --name-only HEAD~2..HEAD -- | grep -i error
clean up svc-21024 text files
sed -n 's/localhost/127.0.0.1/g' /etc/svc-21024/config.ini | paste -sd, -
give svc-21025 ownership of its data
chown -R svc-21025:svc-21025 /srv/svc-21025 | rev
compare revisions in /srv/svc-21026
git -C /srv/svc-21026 diff --numstat src/ | cut -d: -f1
list matching paths under /srv/svc-21027
find /srv/svc-21027 -type l -name '*.log' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 | tac
query JSON data for svc-21028
jq --indent 2 '.items[] | select(.id == 21028) | .name' /srv/svc-21028/health.json > /tmp/svc-21028.out
search the svc-21029 directory tree
find /srv/svc-21029 -maxdepth 2 -type f -name '*.conf' -mtime +30 -print | sort -u
count matches in svc-21030 data
grep -n -A3 -B3 '^#' /etc/svc-21030/config.ini --exclude='*.min.js' | tr -s ' '
locate matching files in /srv/svc-21031
find /srv/svc-21031 -type l -name '*.json' -size +10M -printf '%s %p\n' | sort -nr | head -n 10 | tr -s ' '
inspect pending changes in /srv/svc-21032
git -C /srv/svc-21032 diff --check HEAD~2..HEAD | tac
search text for svc-21033
grep -n -A3 -B3 'timeout' /var/log/svc-21033.log | tail -n 5
filter JSON records for svc-21034
jq -c '.items[] | [.id, .name] | @tsv' /srv/svc-21034/health.json | paste -sd, -
validate JSON status for svc-21035
jq '.items[] | [.id, .name] | @tsv' /srv/svc-21035/users.json 2>/dev/null
locate matching files in /srv/svc-21036
find /srv/svc-21036 -maxdepth 2 -type f -name '*.gz' -mtime +30 -print | rev
show running containers for svc-21037
docker ps --latest --format 'table {{.Names}}\t{{.Status}}' --filter 'label=app=svc-21037' 2>&1 | tee /tmp/svc-21037.log
find files under /srv/svc-21038
find /srv/svc-21038 -type d -name '*.gz' -newermt '1 day ago' -exec gzip {} + | tail -n 50
search the svc-21039 directory tree
find /srv/svc-21039 -mindepth 1 -type f -name '*.gz' -size +10M -delete 2>/dev/null
count matches in svc-21040 data
grep -c 'panic[(]' /srv/svc-21040 | tr -s ' '
inspect systemd unit state for svc-21041
systemctl reload svc-21041.service --no-pager | sed 's/^/ /'
list matching paths under /srv/svc-21042
find /srv/svc-21042 -type d -name '*.gz' -size +10M -exec gzip {} + 2>&1
create a git commit for /srv/svc-21043
git -C /srv/svc-21043 commit -m 'docs: update README' --allow-empty 2>&1
filter log content for svc-21044
grep -v '^#' /etc/svc-21044/config.ini --include='*.yaml' | nl -ba
clean up selected files in /srv/svc-21045
find /srv/svc-21045 -type l -name '*.log' -size +50M -exec ls -lh {} + | less
locate matching files in /srv/svc-21046
find /srv/svc-21046 -maxdepth 2 -type f -name '*.tmp' -newermt '1 day ago' -exec gzip {} + | tee /tmp/svc-21046.out
list matching paths under /srv/svc-21047
find /srv/svc-21047 -type f -name '*.gz' -mtime +30 -exec ls -lh {} + | sed -n '1,20p'
read container logs for svc-21048
docker logs --since '1h' -f svc-21048 >> /tmp/svc-21048.out
display the commit log for /srv/svc-21049
git -C /srv/svc-21049 log --oneline -n 10 --grep='fix' | tail -n 50
validate JSON status for svc-21050
jq -e '.items[] | [.id, .name] | @tsv' /srv/svc-21050/config.json | sed -n '1,20p'
check filesystem usage for svc-21051
df -i /srv/svc-21051 | fold -w 120
scan configuration files for svc-21052
grep -n -A3 -B3 '^#' /etc/svc-21052/config.ini --exclude-dir=vendor | sort -u
find files under /srv/svc-21053
find /srv/svc-21053 -type l -name '*.conf' -exec ls -lh {} + | sort -n
search the svc-21054 directory tree
find /srv/svc-21054 -mindepth 1 -type f -empty -size +50M -exec gzip {} + | tail -n 20
clean up selected files in /srv/svc-21055
find /srv/svc-21055 -type f -name '*.tmp' -print | cut -d: -f1
locate matching files in /srv/svc-21056
find /srv/svc-21056 -type l -name '*.json' -size +50M -exec ls -lh {} + | grep -E '^[^#]'
inspect systemd unit state for svc-21057
systemctl is-enabled svc-21057.service --no-pager | awk '{print $1}'
query JSON data for svc-21058
jq -r '.items[] | [.id, .name] | @tsv' /srv/svc-21058/users.json | tee -a /tmp/svc-21058.log
search the svc-21059 directory tree
find /srv/svc-21059 -mindepth 1 -type f -name '*.tmp' -newermt '1 day ago' -exec gzip {} + | tail -n 20
clean up selected files in /srv/svc-21060
find /srv/svc-21060 -type d -name '*.log' -size +10M -exec gzip {} + | grep -i error
locate matching files in /srv/svc-21061
find /srv/svc-21061 -type l -name '*.json' -mtime +7 -exec gzip {} + 2>&1 | tee /tmp/svc-21061.log
report free space for svc-21062
df -i /srv/svc-21062 | column -t
find files under /srv/svc-21063
find /srv/svc-21063 -type f -name '*.json' -size +10M -delete | uniq -c
search the svc-21064 directory tree
find /srv/svc-21064 -mindepth 1 -type f -name '*.json' -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | head -n 5
count matches in svc-21065 data
grep -RIn 'ERROR' /var/log/svc-21065.log | tee /tmp/svc-21065.out
extract JSON fields for svc-21066
jq -S '.users[] | select(.active == true) | .email' /srv/svc-21066/config.json | cat
inspect branch and file status for /srv/svc-21067
git -C /srv/svc-21067 status --long --show-stash --untracked-files=normal | tee -a /tmp/svc-21067.log
find files under /srv/svc-21068
find /srv/svc-21068 -type f -name '*.conf' -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 > /tmp/svc-21068.out
search the svc-21069 directory tree
find /srv/svc-21069 -type f -name '*.gz' -mtime +30 -exec ls -lh {} + 2>/dev/null
count matches in svc-21070 data
grep -n -A3 -B3 'WARN' /var/log/svc-21070.log --include='*.go' | fold -w 120
show running containers for svc-21071
docker ps -a --filter 'status=running' | sort | tee /tmp/svc-21071.out | head -n 20
scan configuration files for svc-21072
grep -v 'TODO' /srv/svc-21072 --include='*.yaml'
show git status for /srv/svc-21073
git -C /srv/svc-21073 status --porcelain=v1 --branch --untracked-files=all | grep -v '^#'
filter JSON records for svc-21074
jq -c '.status == "ok"' /srv/svc-21074/users.json | wc -l
create a backup tarball for svc-21075
tar -cJf /backup/svc-21075.tar.xz -C /srv svc-21075 | wc -l
report free space for svc-21076
df -h /srv/svc-21076/logs | tee -a /tmp/svc-21076.log
list matching paths under /srv/svc-21077
find /srv/svc-21077 -maxdepth 2 -type f -empty -size +10M -print | fold -w 120
save a commit message for /srv/svc-21078
git -C /srv/svc-21078 commit -m 'fix: handle timeout' | uniq -c
search the svc-21079 directory tree
find /srv/svc-21079 -mindepth 1 -type f -name '*.tmp' -mtime +30 -print | sed 's/^/ /'
verify a network port for svc-21080
nc -zv svc-21080.example.com 443 | tee -a /tmp/svc-21080.log
locate matching files in /srv/svc-21081
find /srv/svc-21081 -type d -empty -newermt '1 day ago' -print >> /tmp/svc-21081.out