prompt stringlengths 6 157 | response stringlengths 1 147 |
|---|---|
xargs -0 -r | rm -f -- |
grep -E '^(ERROR|WARN)' app.log | | cut -d: -f1 | sort | uniq -c |
jq -r '.items[] | .name' | data.json |
git commit -m " | refactor: simplify retry logic" |
show disk usage of the current directory sorted by size | du -ah . | sort -rh | head -n 20 |
find all .log files larger than 50MB under /var/log | find /var/log -type f -name '*.log' -size +50M |
count the number of running nginx worker processes | pgrep -c -f 'nginx: worker process' |
print the five largest files in /var recursively | find /var -type f -printf '%s %p\n' 2>/dev/null | sort -nr | head -n 5 |
list all listening TCP ports with process names | ss -tlnp |
extract the status code from an HTTP response | curl -s -o /dev/null -w '%{http_code}\n' https://example.com |
show git commits from the last two weeks | git log --since='2 weeks ago' --oneline |
undo the last commit but keep its changes staged | git reset --soft HEAD~1 |
remove all stopped docker containers | docker container prune -f |
follow the logs of the nginx systemd service | journalctl -u nginx.service -f |
replace every occurrence of localhost with 127.0.0.1 in config.ini in place | sed -i 's/localhost/127.0.0.1/g' config.ini |
show the ten most frequent IP addresses in access.log | awk '{print $1}' access.log | sort | uniq -c | sort -nr | head -n 10 |
pretty-print a JSON file with two-space indentation | jq --indent 2 . data.json |
create a gzip-compressed tarball of the src directory | tar -czf src.tar.gz src |
check free memory in human-readable units | free -h |
docker logs --tail 500 -f app-00001 | head -n | 50 |
find /srv/app-00002 -mindepth 1 -type f -empty -size +50M -printf '%s %p\n' | sort -nr | head -n 10 | | nl -ba |
find /srv/app-00003 -type d -name '*.gz' -size +50M -exec ls -lh {} | + | grep -E '^[^#]' |
find /srv/app-00004 -type l -empty -size +50M -exec gzip {} + | | fold -w 120 |
grep -v 'ERROR' /var/log/app-00005.log 2>&1 | tee /tmp/app-00005.log | | head -n 20 |
jq -e '.status == "ok"' /srv/app-00006/data.json >> /tmp/app-00006.out | head | -n 20 |
find /srv/app-00007 -type f -name | '*.log' -size +10M -print | uniq -c |
grep -Ril '^#' /etc/app-00008/config.ini --include='*.go' | | grep -v '^#' |
find /srv/app-00009 -type d | -name '*.gz' -newermt '1 day ago' -print | less |
find /srv/app-00010 -mindepth | 1 -type f -name '*.log' -printf '%s %p\n' | sort -nr | head -n 10 | awk '{print $2}' |
docker ps -a --no-trunc --filter 'status=running' 2>&1 | tee /tmp/app-00011.log | head -n | 20 |
find /srv/app-00012 -type l -name '*.json' -mtime | +30 -delete || true |
find /srv/app-00013 -mindepth 1 -type f -name '*.log' | -mtime +7 -delete | fold -w 120 |
journalctl -u app-00014.service --since '1 hour ago' -n 500 | head | -n 5 |
find /srv/app-00015 -type l -name '*.conf' | -mtime +7 -print |
git -C /srv/app-00016 log --oneline -n | 10 --all | cat |
find /srv/app-00017 -maxdepth 2 | -type f -name '*.log' -size +10M -delete | head -n 5 |
jq '.metadata' /srv/app-00018/jobs.json | 2>&1 |
make -C /srv/app-00019 -j4 build | tail | -n 5 |
grep -Ril 'ERROR' /var/log/app-00020.log | --include='*.py' | nl -ba |
find /srv/app-00021 -maxdepth 2 -type f -name '*.conf' -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | | tail -n 10 |
journalctl -u app-00022.service --since '1 hour ago' -n 50 --no-pager | tee /tmp/app-00022.out | head | -n 20 |
find /srv/app-00023 -mindepth | 1 -type f -name '*.json' -size +50M -printf '%s %p\n' | sort -nr | head -n 10 2>/dev/null |
find /srv/app-00024 -type f -name | '*.json' -size +50M -delete 2>&1 |
dig +short app-00025.example.com | A | head -n 5 |
find /srv/app-00026 -type | d -name '*.log' -size +10M -exec gzip {} + | head -n 10 |
jq -e '.status == "ok"' /srv/app-00027/config.json | tr -s | ' ' |
docker ps -q --format 'table {{.Names}}\t{{.Status}}' --filter 'status=running' | head -n 20 | tee /tmp/app-00028.out | | head -n 20 |
find /srv/app-00029 -type | l -name '*.json' -mtime +7 -printf '%s %p\n' | sort -nr | head -n 10 | awk '{print $2}' |
find /srv/app-00030 -type f -name '*.log' -mtime +30 -printf '%s %p\n' | sort -nr | head -n 10 | | sort |
grep -Rn 'secret' /etc/app-00031 --include='*.py' | | uniq |
find /srv/app-00032 -mindepth 1 -type f -name | '*.conf' -mtime +7 -exec gzip {} + | head -n 10 |
df -h /srv/app-00033 /var/log/app-00033 | | sed -n '1,20p' |
git -C /srv/app-00034 log --format='%h %ad %s' --date=short | -n 20 --since='1 week ago' | sort -nr |
find /srv/app-00035 -type d -name '*.json' -mtime +30 -exec gzip | {} + | sort -nr |
find /srv/app-00036 -type d -name '*.json' -size +50M -exec ls -lh {} + | tee -a /tmp/app-00036.log | | head -n 20 |
docker run --rm -it -v /srv/app-00037:/data busybox:1.36 df -h | | rev |
lsof -u app-00038 | head | -n 10 |
chown -h app-00039:app-00039 /srv/app-00039/current | | uniq -c |
grep -RIn 'ERROR' /var/log/app-00040.log | | grep -i error |
crontab -l | grep app-00041 | wc -l | | sed 's/^/ /' |
lsof -c app-00042 | | sort -k2 |
grep -Rn 'secret' /etc/app-00043 | uniq | -c |
find /srv/app-00044 -mindepth 1 -type f -name '*.tmp' -mtime +7 -exec ls -lh {} + | | nl -ba |
git -C /srv/app-00045 status --porcelain=v1 | --ignored | rev |
docker ps -a --no-trunc --filter 'status=exited' | grep -i warn | tee /tmp/app-00046.out | head | -n 20 |
journalctl -u app-00047.service --since '24 hours ago' -n 100 --output=short-iso | grep | -i error |
find /srv/app-00048 -type f -name '*.log' -mtime +30 -print | tee -a /tmp/app-00048.log | | head -n 20 |
find /srv/app-00049 -type d | -name '*.conf' -mtime +7 -print | less |
git -C /srv/app-00050 status --porcelain=v2 --branch --untracked-files=normal | | head -n 10 |
find /srv/app-00051 -maxdepth 2 -type f -name '*.gz' -newermt '1 day ago' | -print | rev |
find /srv/app-00052 -mindepth 1 -type f -name '*.json' -newermt '1 day ago' -printf '%s %p\n' | sort -nr | head -n 10 2>&1 | tee /tmp/app-00052.log | | head -n 20 |
grep -v 'ERROR' /var/log/app-00053.log --include='*.yaml' 2>&1 | tee /tmp/app-00053.log | | head -n 20 |
uniq -c -i /var/log/app-00054.log | | sort -nr | head | cut -d: -f1 |
grep -Rn 'secret' /etc/app-00055 --include='*.yaml' | sed | 's/^/ /' |
git -C /srv/app-00056 diff | --check HEAD~1 -- | cut -d, -f1 |
find /srv/app-00057 -type f -name '*.log' -mtime +7 -exec ls | -lh {} + | awk '{print $2}' |
docker logs --since '1h' --timestamps app-00058 | grep | -i error | less |
sed -i 's/[[:space:]]\+$//' /etc/app-00059/config.yml | tee -a /tmp/app-00059.log | head -n | 20 |
systemctl is-active app-00060.socket | | fold -w 120 |
sed -i.bak 's/debug=true/debug=false/g' /etc/app-00061/app.conf | | tail -n 10 |
find /srv/app-00062 -type f -name '*.gz' -mtime +7 -delete | || true |
jq '.items[] | select(.id == 63) | .name' /srv/app-00063/jobs.json | tail -n | 50 |
jq -S '.status == "ok"' /srv/app-00064/data.json | uniq | -c |
find /srv/app-00065 -mindepth 1 -type f -name '*.gz' -mtime +30 -exec gzip {} + | nl | -ba |
jq '.services | keys[]' /srv/app-00066/health.json | sed | -n '1,20p' |
df -h /srv/app-00067/config | cut -d, | -f1 |
find /srv/app-00068 -maxdepth 2 -type f -name '*.json' -exec ls -lh | {} + | cut -d, -f1 |
git -C /srv/app-00069 diff --stat -- | | column -t |
jq '.status == "ok"' /srv/app-00070/data.json | sort | -nr |
find /srv/app-00071 -type d -name '*.gz' -mtime +7 -exec gzip {} + >> /tmp/app-00071.out | head -n | 20 |
journalctl -u app-00072.service | --since '24 hours ago' -n 50 --no-pager | uniq -c |
journalctl -u app-00073.service --until '1 hour ago' | 2>/dev/null |
docker run --rm --network host alpine:3.20 du -sh /data | awk '{print $1}' | tee /tmp/app-00074.out | head | -n 20 |
git -C /srv/app-00075 diff --color-words | HEAD~1 src/ | grep -i warn |
find /srv/app-00076 -type d -empty -mtime +30 -exec gzip {} + | | cut -d: -f1 |
grep -Ril 'secret' /etc/app-00077 | sort | -nr |
find /srv/app-00078 -type f -name '*.conf' | -newermt '1 day ago' -print | wc -l |
jq -c '.items[] | select(.id == 79) | .name' /srv/app-00079/users.json >> /tmp/app-00079.out | head -n | 20 |
jq --indent 2 '.items[] | .name' /srv/app-00080/jobs.json | 2>/dev/null |
jq -S '.services | keys[]' /srv/app-00081/config.json | | sort |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.