messages listlengths 3 3 | category stringclasses 3
values | utility stringclasses 89
values |
|---|---|---|
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Run the backup script, sending stdout and stderr to scheduler.log."
},
{
"role": "assistant",
"content": "./backup.sh > scheduler.log 2>&1"
}
] | pipeline | redirection |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find the PIDs of all mongod processes."
},
{
"role": "assistant",
"content": "pgrep mongod"
}
] | single | pgrep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Process all .xml files under backups with checksum with sha256sum using 4 parallel workers via xargs."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nse... | script | xargs |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Fetch JSON from https://monitor.example.com/api/users and pretty-print it with jq."
},
{
"role": "assistant",
"content": "curl -s https://monitor.exam... | pipeline | curl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find kernel errors related to tcp."
},
{
"role": "assistant",
"content": "dmesg --level=err | grep -i tcp"
}
] | single | dmesg |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Create a script that reads a yes/no answer and handles Y/y/yes and N/n/no with a case statement."
},
{
"role": "assistant",
"content": "#!/usr/bin/env... | script | case |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Please show a hex dump of the first 64 bytes in sales.sh."
},
{
"role": "assistant",
"content": "xxd -l 64 sales.sh"
}
] | single | xxd |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Recursively set owner and group of reports to dave:sudo."
},
{
"role": "assistant",
"content": "sudo chown -R dave:sudo reports"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "On the file summary.sh, show its size, owner and permissions."
},
{
"role": "assistant",
"content": "stat summary.sh"
}
] | single | stat |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find files in include owned by nginx."
},
{
"role": "assistant",
"content": "find include -type f -user nginx"
}
] | single | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need to tally how many times each log level appears in access.log."
},
{
"role": "assistant",
"content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' a... | pipeline | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "From customer.yaml, strip trailing whitespace."
},
{
"role": "assistant",
"content": "cat customer.yaml | sed 's/[[:space:]]*$//'"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need getopts handling for three options: -c, -d and -t; print usage on bad input."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nc... | script | getopts |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Please show a hex dump of the first 64 bytes in invoice.md."
},
{
"role": "assistant",
"content": "xxd -l 64 invoice.md"
}
] | single | xxd |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a health check that reports UP/DOWN for the celery process via its exit code."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nproc=celery\nif pgrep -x \"$proc... | script | if |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "list only the .bak files in config"
},
{
"role": "assistant",
"content": "ls config | grep '\\.bak$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write an if that checks connectivity to git.example.org with a single ping."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nhost=git.example.org\nif ping -c1 -W2 \"... | script | if |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "print lines of data.csv where column 1 is greater than 100"
},
{
"role": "assistant",
"content": "awk '$1 > 100' data.csv"
}
] | single | awk |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show dave's process tree with PIDs."
},
{
"role": "assistant",
"content": "pstree -p dave"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "replace tabs with commas in transaction.md and write to transaction.md.csv"
},
{
"role": "assistant",
"content": "sed 's/\\t/,/g' transaction.md > transaction.md.cs... | pipeline | sed |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a start/stop/restart control script for the firewalld service using a case statement."
},
{
"role": "assistant",
"content": "#!/usr/bin/en... | script | case |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show me how to follow the cron journal but only show lines mentioning 'unauthorized'."
},
{
"role": "assistant",
"content": "journalctl -u cron -f | grep --line-buffered -i 'unauthorized'"
}
] | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Parse command-line flags -i (input), -p (port) and -o (output) using getopts and validate that -i is provided."
},
{
"role": "assistant",
"content": "#!/usr/bin/env... | script | getopts |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show me how to count 'null' occurrences in the nginx journal today."
},
{
"role": "assistant",
"content": "journalctl -u nginx --since today --no-pager | grep -c 'n... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a small script that accepts --level (-l), --output (-o) and --dir (-d) via getopts, with a usage message."
},
{
"role": "assistant",
"cont... | script | getopts |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Find the 10 most common 'critical'-related lines in error.log."
},
{
"role": "assistant",
"content": "grep 'critical' error.log | sort | uniq -c ... | pipeline | grep |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Rename notes.txt to notes.txt.old"
},
{
"role": "assistant",
"content": "mv notes.txt notes.txt.old"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "List the unique '500' messages in syslog."
},
{
"role": "assistant",
"content": "grep '500' syslog | sort -u"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "follow redirects when fetching https://app01.example.com"
},
{
"role": "assistant",
"content": "curl -L https://app01.example.com"
}
] | single | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "list the contents of archive.zip without extracting"
},
{
"role": "assistant",
"content": "unzip -l archive.zip"
}
] | single | zip |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a small script that generates an nginx config file for example.com using a here-document."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndomain=example.com\n... | script | heredoc |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Fetch JSON from https://cache.example.com/api/users and pretty-print it with jq."
},
{
"role": "assistant",
"content": "curl -s https://cache.ex... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Search the kernel log for 'disk' messages."
},
{
"role": "assistant",
"content": "dmesg -T | grep -i disk"
}
] | single | dmesg |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Give me an init-style dispatcher for the mariadb service with case on $1."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo p... | script | case |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Test if payment.pdf is present and has content; report missing, empty, or its line count."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\n... | script | if |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "For dump.zip, show its size, owner and permissions."
},
{
"role": "assistant",
"content": "stat dump.zip"
}
] | single | stat |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a Bash script that runs gzip on every .csv file in /srv/data, 2 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | xargs |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a Bash script that runs optipng on every .yaml file in backups, 4 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\n... | script | xargs |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find the 10 most common '403'-related lines in syslog."
},
{
"role": "assistant",
"content": "grep '403' syslog | sort | uniq -c | sort -nr | head -n 10"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show the 10 largest subdirectories in downloads."
},
{
"role": "assistant",
"content": "du -h downloads/* | sort -rh | head -n 10"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "List the unique 'disk full' messages in syslog."
},
{
"role": "assistant",
"content": "grep 'disk full' syslog | sort -u"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Remove write permission for group and others on event.png."
},
{
"role": "assistant",
"content": "chmod go-w event.png"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "send a GET request to https://registry.example.org/api and show the response headers"
},
{
"role": "assistant",
"content": "curl -I https://regi... | single | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "For profile.csv, count the lines."
},
{
"role": "assistant",
"content": "wc -l profile.csv"
}
] | single | wc |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Change the owner of response.tar.gz to redis."
},
{
"role": "assistant",
"content": "sudo chown redis response.tar.gz"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "find the full path of git and follow symlinks"
},
{
"role": "assistant",
"content": "readlink -f $(which git)"
}
] | single | which |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "List the 5 largest subdirectories of /var/lib/mysql."
},
{
"role": "assistant",
"content": "du -h /var/lib/mysql/* 2>/dev/null | sort -rh | head -n 5"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show the subtree of processes under PID 8645."
},
{
"role": "assistant",
"content": "pstree -p 8645"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Read hosts.txt and for each host, report UP/DOWN based on whether it curls the /health endpoint."
},
{
"role": "assistant",
"content": "#!/usr/bi... | script | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Help me list the PIDs of tmux sorted by memory use."
},
{
"role": "assistant",
"content": "ps -C tmux -o pid=,rss= --sort=-rss"
}
] | pipeline | ps |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "List the 5 biggest files under logs."
},
{
"role": "assistant",
"content": "find logs -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -n 5"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Rank the values of column 4 in users.csv by frequency, highest first, top 20 only."
},
{
"role": "assistant",
"content": "awk '{print $4}' users... | pipeline | awk |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "extract backup.tar.gz into the assets folder"
},
{
"role": "assistant",
"content": "tar -xzf backup.tar.gz -C assets"
}
] | single | tar |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Back up all PostgreSQL databases individually to /data/backup as compressed dumps."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nde... | script | pg_dump |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need to show the last 50 lines containing 'denied' in access.log."
},
{
"role": "assistant",
"content": "grep 'denied' access.log | tail -n 50"... | pipeline | grep |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show lines in build.log that do NOT contain 'timeout'."
},
{
"role": "assistant",
"content": "grep -v 'timeout' build.log"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a script that dumps every PostgreSQL database into its own gzip file under /mnt/backup, keeping 10 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndest=... | script | pg_dump |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "List open files owned by redis."
},
{
"role": "assistant",
"content": "lsof -u redis"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Read targets.txt and for each host, report UP/DOWN based on whether it pings each host once."
},
{
"role": "assistant",
"content": "#!/usr/bin/e... | script | ping |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Process targets.txt one line at a time, ignoring # comments, printing a running index."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail... | script | while |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Retry connection to db01.corp.net:5432 at most 3 times with a 5-second backoff, failing loudly if it never succeeds."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\... | script | bash |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Is the containerd service currently active?"
},
{
"role": "assistant",
"content": "systemctl is-active containerd"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need a script that creates a temp working directory and cleans it up on exit using a trap."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nworkdir=\"$(mktemp -d)\... | script | trap |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Recursively set owner and group of images to carol:wheel."
},
{
"role": "assistant",
"content": "sudo chown -R carol:wheel images"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "which directories under /srv/www are eating the most space?"
},
{
"role": "assistant",
"content": "du -h --max-depth=1 /srv/www | sort -rh"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Rank the values of column 3 in auth.log by frequency, highest first, top 25 only."
},
{
"role": "assistant",
"content": "awk '{print $3}' auth.l... | pipeline | awk |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Process all .md files under /home/deploy with checksum with sha256sum using 2 parallel workers via xargs."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/home/... | script | xargs |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "extract all the 'name' fields from https://cache.internal/api/users"
},
{
"role": "assistant",
"content": "curl -s https://cache.internal/api/use... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Read profile.yaml, then strip trailing whitespace — as a pipeline."
},
{
"role": "assistant",
"content": "cat profile.yaml | sed 's/[[:space:]]*$//'"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Unzip archive.zip into the current folder."
},
{
"role": "assistant",
"content": "unzip archive.zip"
}
] | single | zip |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Back up /var/lib/app to /mnt/backup as a dated gzip archive, pruning all but the last 3 backups."
},
{
"role": "assistant",
"content": "#!/usr/b... | script | tar |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "locate files under scripts modified in the last 7 days"
},
{
"role": "assistant",
"content": "find scripts -type f -mtime -7"
}
] | single | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "locate files under bin modified in the last 10 days"
},
{
"role": "assistant",
"content": "find bin -type f -mtime -10"
}
] | single | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "check the type of every file in include"
},
{
"role": "assistant",
"content": "file include/*"
}
] | single | file |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a small script that loops over every .py file in /mnt/storage and moves each file into an archive/ subfolder."
},
{
"role": "assistant",
"content": "#!/usr/bi... | script | mv |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Loop through the .sh files in /var/www and changes the owner of each file to deploy — write it as a proper script."
},
{
"role": "assistant",
"co... | script | chown |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Help me count how many systemd processes are running."
},
{
"role": "assistant",
"content": "pgrep -c systemd"
}
] | pipeline | pgrep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show me the disk usage of /var/log broken down one level deep."
},
{
"role": "assistant",
"content": "du -h --max-depth=1 /var/log 2>/dev/null | sort -rh"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "print lines of access.log where column 2 is greater than 100"
},
{
"role": "assistant",
"content": "awk '$2 > 100' access.log"
}
] | single | awk |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Count total lines across all .js files in docs."
},
{
"role": "assistant",
"content": "find docs -type f -name '*.js' -print0 | xargs -0 cat | wc -l"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "list only the .pdf files in /home/alice"
},
{
"role": "assistant",
"content": "ls /home/alice | grep '\\.pdf$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Test if settings.html is present and has content; report missing, empty, or its line count."
},
{
"role": "assistant",
"content": "#!/usr/bin/en... | script | if |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write an if that checks connectivity to db02.corp.net with a single ping."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pi... | script | if |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Find files in uploads owned by erin."
},
{
"role": "assistant",
"content": "find uploads -type f -user erin"
}
] | single | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Force-kill process 7159."
},
{
"role": "assistant",
"content": "kill -9 7159"
}
] | single | kill |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I want a cleanup script for /tmp that purges .gz files older than 180 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipef... | script | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "download https://registry.local/list.txt and count the lines"
},
{
"role": "assistant",
"content": "curl -s https://registry.local/list.txt | wc ... | pipeline | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "strip leading whitespace from every line of audit.txt and save to clean.txt"
},
{
"role": "assistant",
"content": "sed 's/^[[:space:]]*//' audit.txt >... | pipeline | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need a retry wrapper around git fetch from origin: 4 attempts, 2s apart."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nmax=4\ndelay=2\nfor attempt in $(seq 1 \"... | script | git |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "How many lines in build.log mention 'disk full'?"
},
{
"role": "assistant",
"content": "grep -c 'disk full' build.log | cat"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "replace tabs with commas in response.conf and write to response.conf.csv"
},
{
"role": "assistant",
"content": "sed 's/\\t/,/g' response.conf > response.conf.csv"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "From export.csv, sort it and drop duplicate lines."
},
{
"role": "assistant",
"content": "cat export.csv | sort -u"
}
] | pipeline | sort |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show the last 20 lines of build.gz."
},
{
"role": "assistant",
"content": "tail -n 20 build.gz"
}
] | single | tail |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "What are the 5 most common entries in column 1 of data.tsv?"
},
{
"role": "assistant",
"content": "cut -d, -f1 data.tsv | sort | uniq -c | sort -... | pipeline | cut |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "List the files opened by process 6803."
},
{
"role": "assistant",
"content": "lsof -p 6803"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Loop through the .xml files in backups and compresses each file with gzip — write it as a proper script."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\... | script | gzip |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Follow ingest.log live as new lines are appended."
},
{
"role": "assistant",
"content": "tail -f ingest.log"
}
] | single | tail |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Can you write a script that loops over every .json file in backups and makes a .bak copy of each file?"
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=backups\n... | script | cp |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "keep watching api.log for new entries and start from the last 5 lines"
},
{
"role": "assistant",
"content": "tail -n 5 -f api.log"
}
] | single | tail |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "download https://db02.corp.net/list.txt and count the lines"
},
{
"role": "assistant",
"content": "curl -s https://db02.corp.net/list.txt | wc -l... | pipeline | curl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.