messages listlengths 3 3 | category stringclasses 3
values | utility stringclasses 89
values |
|---|---|---|
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "List the disk usage of src broken down one level deep."
},
{
"role": "assistant",
"content": "du -h --max-depth=1 src 2>/dev/null | sort -rh"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "do a dry-run rsync of tests to bin to see what would change"
},
{
"role": "assistant",
"content": "rsync -avn tests/ bin/"
}
] | single | rsync |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show every open file under fixtures."
},
{
"role": "assistant",
"content": "lsof +D fixtures"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a script that deletes .bak files older than 14 days from /var/log and logs what it removed."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -e... | script | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Print nginx's process hierarchy including PIDs."
},
{
"role": "assistant",
"content": "pstree -p nginx"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "On the file summary.tar.gz, show the last 20 lines."
},
{
"role": "assistant",
"content": "tail -n 20 summary.tar.gz"
}
] | single | tail |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Back up data to /mnt/backup as a dated xz archive, pruning all but the last 5 backups."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nsrc=data\ndest=/mnt/backup\nk... | script | tar |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Count how many nginx processes are running."
},
{
"role": "assistant",
"content": "pgrep -c nginx"
}
] | pipeline | pgrep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Search nginx-access.log for lines containing 'denied'."
},
{
"role": "assistant",
"content": "grep 'denied' nginx-access.log"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Parse command-line flags -l (level), -d (dir) and -t (tag) using getopts and validate that -l is provided."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | getopts |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "change permissions to 644 on all files under downloads"
},
{
"role": "assistant",
"content": "find downloads -type f -print0 | xargs -0 chmod 644"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Count how many files are in tmp."
},
{
"role": "assistant",
"content": "ls -1 tmp | wc -l"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show me the disk usage of scripts broken down one level deep."
},
{
"role": "assistant",
"content": "du -h --max-depth=1 scripts 2>/dev/null | sort -rh"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a script that dumps every MySQL database into its own gzip file under /backup, keeping 30 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\ns... | script | mysqldump |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Given output.csv, show the last 15 lines."
},
{
"role": "assistant",
"content": "cat output.csv | tail -n 15"
}
] | pipeline | tail |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need a rotating backup: archive /opt/app into /var/backups with gzip, retain 10 copies."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ... | script | tar |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "List only directories inside project."
},
{
"role": "assistant",
"content": "ls -d project/*/"
}
] | single | ls |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a retry wrapper around connection to cdn.example.org:5432: 10 attempts, 2s apart."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefa... | script | bash |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "remove fd-find and its config files"
},
{
"role": "assistant",
"content": "sudo apt purge -y fd-find"
}
] | single | apt |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a backup script that tars /home/deploy into a timestamped archive under /backup and keeps only the 7 newest."
},
{
"role": "assistant",
"co... | script | tar |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Fetch JSON from https://172.16.0.20/api/users and pretty-print it with jq."
},
{
"role": "assistant",
"content": "curl -s https://172.16.0.20/api/user... | pipeline | curl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "move all .sh files into the vendor directory"
},
{
"role": "assistant",
"content": "mv *.sh vendor/"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Fetch JSON from https://proxy.local/api/users and pretty-print it with jq."
},
{
"role": "assistant",
"content": "curl -s https://proxy.local/api... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show me how to list the unique 'fatal' messages in nginx-error.log."
},
{
"role": "assistant",
"content": "grep 'fatal' nginx-error.log | sort -u"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Give me an init-style dispatcher for the memcached service with case on $1."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nsvc=memca... | script | case |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a rotating backup: archive /data/uploads into /data/backup with bzip2, retain 7 copies."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo ... | script | tar |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Please print it with line numbers in schema.js."
},
{
"role": "assistant",
"content": "nl schema.js"
}
] | single | nl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a script that runs gzip on every .md file in data, 4 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -eu... | script | xargs |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Recursively set owner and group of data to operator:sudo."
},
{
"role": "assistant",
"content": "sudo chown -R operator:sudo data"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a monitoring script that warns when the /home partition usage exceeds 80%."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nthre... | script | df |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "What are the 25 most common entries in column 2 of request.log?"
},
{
"role": "assistant",
"content": "awk '{print $2}' request.log | sort | uniq... | pipeline | awk |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show the top 10 most frequent values in field 1 of the whitespace-separated file users.csv."
},
{
"role": "assistant",
"content": "awk '{print $1}' users.csv | sort | uniq -c | sort -nr | head -n... | pipeline | awk |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Please determine what kind of file it is in audit.log."
},
{
"role": "assistant",
"content": "file audit.log"
}
] | single | file |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Count how many files are in config."
},
{
"role": "assistant",
"content": "ls -1 config | wc -l"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "download /var/log/gc.log from proxy.service.io to the current dir"
},
{
"role": "assistant",
"content": "scp admin@proxy.service.io:/var/log/gc.... | single | scp |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I/O stats in MB/s every 10s for 5 samples."
},
{
"role": "assistant",
"content": "iostat -m 10 5"
}
] | single | iostat |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Replace every occurrence of 'user_id' with 'enabled' in sales.yaml and print the result."
},
{
"role": "assistant",
"content": "sed 's/user_id/en... | single | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show the 50 most recent docker log lines, newest last."
},
{
"role": "assistant",
"content": "journalctl -u docker -n 50"
}
] | single | journalctl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Retry connection to monitor.service.io:5432 at most 6 times with a 2-second backoff, failing loudly if it never succeeds."
},
{
"role": "assistant",
... | script | bash |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Search build.log for lines containing 'dropped'."
},
{
"role": "assistant",
"content": "grep 'dropped' build.log"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Create a gzip-compressed archive of the scripts directory."
},
{
"role": "assistant",
"content": "tar -czf scripts.tar.gz scripts"
}
] | single | tar |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Check the status of prometheus."
},
{
"role": "assistant",
"content": "systemctl status prometheus"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Ping auth.local once and branch: print reachable or unreachable based on the result."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\... | script | if |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Loop over every .txt file in /opt/app and append its sha256 checksum to checksums.txt."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nshopt -s nullglob\nfor f in /... | script | for |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Please show the last 20 lines in release.css."
},
{
"role": "assistant",
"content": "tail -n 20 release.css"
}
] | single | tail |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Make archive.csv executable."
},
{
"role": "assistant",
"content": "chmod +x archive.csv"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show sales.yaml with line numbers."
},
{
"role": "assistant",
"content": "cat -n sales.yaml"
}
] | single | cat |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find files in static owned by jenkins."
},
{
"role": "assistant",
"content": "find static -type f -user jenkins"
}
] | single | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Move manifest.jpg into the releases folder."
},
{
"role": "assistant",
"content": "mv manifest.jpg releases/"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Rename auth.conf to auth.conf.old without overwriting if the target already exists."
},
{
"role": "assistant",
"content": "mv -n auth.conf auth.c... | single | mv |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a backup script that gzip-compresses backups into a timestamped tarball under /data/backup and keeps only the 30 newest."
},
{
"role": "assista... | script | tar |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Parse command-line flags -t (tag), -n (name) and -d (dir) using getopts and validate that -t is provided."
},
{
"role": "assistant",
"content": "#!/us... | script | getopts |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "For profile.gz, determine what kind of file it is."
},
{
"role": "assistant",
"content": "file profile.gz"
}
] | single | file |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Give me a script that iterates over /home/deploy/*.conf and changes the owner of each file to deploy."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/home/depl... | script | chown |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "get the number of items in the JSON array at https://db02.service.io/api/items"
},
{
"role": "assistant",
"content": "curl -s https://db02.servi... | pipeline | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Rename results.zip to results.zip.old"
},
{
"role": "assistant",
"content": "mv results.zip results.zip.old"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Check whether nginx is running and exit 0 if so, 1 otherwise, with a message."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nproc=nginx\nif pgrep -x \"$proc\" >/de... | script | if |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need a bash script that moves each file into an archive/ subfolder for all .log files under logs."
},
{
"role": "assistant",
"content": "#!/us... | script | mv |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Please show a hex dump of the first 64 bytes in schema.zip."
},
{
"role": "assistant",
"content": "xxd -l 64 schema.zip"
}
] | single | xxd |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Delete the first line of request.tsv in place."
},
{
"role": "assistant",
"content": "sed -i '1d' request.tsv"
}
] | single | sed |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I need a script that pre-creates dated subdirectories under /var/backups for the next 5 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ba... | script | for |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Follow the postgresql journal but only show lines mentioning 'dropped'."
},
{
"role": "assistant",
"content": "journalctl -u postgresql -f | grep... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show the PID and memory of nginx processes."
},
{
"role": "assistant",
"content": "ps aux | grep nginx | grep -v grep | awk '{print $2, $4}'"
... | pipeline | ps |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Copy data.tar.gz into scripts only if it's newer than what's there."
},
{
"role": "assistant",
"content": "cp -u data.tar.gz scripts/"
}
] | single | cp |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Tally how many times each log level appears in nginx-error.log."
},
{
"role": "assistant",
"content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' nginx-error.log | sort | uniq -c | sort -nr"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Append the current date to nginx-error.log."
},
{
"role": "assistant",
"content": "date >> nginx-error.log"
}
] | pipeline | redirection |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show me the 20 largest subdirectories of build."
},
{
"role": "assistant",
"content": "du -h build/* 2>/dev/null | sort -rh | head -n 20"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Create and switch to a new branch called bugfix/auth."
},
{
"role": "assistant",
"content": "git checkout -b bugfix/auth"
}
] | single | git |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Retry curl to https://auth.internal/health at most 6 times with a 1-second backoff, failing loudly if it never succeeds."
},
{
"role": "assistant",
"c... | script | curl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Replace every occurrence of 'warning' with 'inactive' in product.txt and print the result."
},
{
"role": "assistant",
"content": "sed 's/warning/inactive/g' product.txt"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Copy server.gz to dist/ but keep the original timestamps and permissions."
},
{
"role": "assistant",
"content": "cp -p server.gz dist/"
}
] | single | cp |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Rename report.old to report.old.old without overwriting if the target already exists."
},
{
"role": "assistant",
"content": "mv -n report.old re... | single | mv |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Case-insensitively find '404' in api.log."
},
{
"role": "assistant",
"content": "grep -i '404' api.log"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Tally column 7 of request.log and print the 20 top values by count."
},
{
"role": "assistant",
"content": "cut -d, -f7 request.log | sort | uniq ... | pipeline | cut |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "extract all the 'name' fields from https://www.internal/api/users"
},
{
"role": "assistant",
"content": "curl -s https://www.internal/api/users | jq -r '.[].name'"
... | pipeline | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Clean up cache: remove .tmp files not modified in 2 days, recording each deletion."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nse... | script | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "follow redirects when fetching https://app01.local"
},
{
"role": "assistant",
"content": "curl -L https://app01.local"
}
] | single | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Can you write a script that runs checksum with sha256sum on every .css file in /srv/data, 2 jobs in parallel?"
},
{
"role": "assistant",
"content... | script | xargs |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "follow redirects when fetching https://registry.example.org"
},
{
"role": "assistant",
"content": "curl -L https://registry.example.org"
}
] | single | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show a recursive listing of /srv/www."
},
{
"role": "assistant",
"content": "ls -R /srv/www"
}
] | single | ls |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Process all .zip files under logs with optipng using 2 parallel workers via xargs."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndi... | script | xargs |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Loop through the .sql files in /opt/app 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 translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a Bash script that runs optipng on every .png file in data, 8 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset ... | script | xargs |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Make audit.csv executable."
},
{
"role": "assistant",
"content": "chmod +x audit.csv"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Extract just the email addresses from config.ini."
},
{
"role": "assistant",
"content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' config.ini |... | pipeline | sed |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Please show the last 20 lines in access.html."
},
{
"role": "assistant",
"content": "tail -n 20 access.html"
}
] | single | tail |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Print just the PID using port 5000."
},
{
"role": "assistant",
"content": "lsof -i :5000 -t"
}
] | single | lsof |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "recursively search fixtures for 'permission denied' and show line numbers"
},
{
"role": "assistant",
"content": "grep -rn 'permission denied' fixtures... | single | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show the 10 largest subdirectories in /srv/data."
},
{
"role": "assistant",
"content": "du -h /srv/data/* | sort -rh | head -n 10"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a shell script that deletes .log files older than 30 days from /tmp and logs what it removed."
},
{
"role": "assistant",
"content": "#!/usr/bin/... | script | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Extract just the email addresses from output.ini."
},
{
"role": "assistant",
"content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' output.ini | sort -u"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Rename index.bak to index.bak.old"
},
{
"role": "assistant",
"content": "mv index.bak index.bak.old"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write me a script that deletes .tmp files older than 21 days from logs and logs what it removed."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=logs\nage=21... | script | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Clean up logs: remove .cache files not modified in 5 days, recording each deletion."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -e... | script | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "In kern.log, which 10 values of column 9 occur most often?"
},
{
"role": "assistant",
"content": "cut -d, -f9 kern.log | sort | uniq -c | sort -n... | pipeline | cut |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "send a GET request to https://web01.local/api and show the response headers"
},
{
"role": "assistant",
"content": "curl -I https://web01.local/ap... | single | curl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Read nodes.txt and for each host, report UP/DOWN based on whether it curls the /health endpoint."
},
{
"role": "assistant",
"content": "#!/usr/b... | script | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Ping proxy.service.io once and branch: print reachable or unreachable based on the result."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\... | script | if |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "make a bzip2-compressed tarball of lib"
},
{
"role": "assistant",
"content": "tar -cjf lib.tar.bz2 lib"
}
] | single | tar |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need a bash script that changes the owner of each file to deploy for all .gz files under data."
},
{
"role": "assistant",
"content": "#!/usr/bi... | script | chown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.