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": "get the number of items in the JSON array at https://cdn.service.io/api/items"
},
{
"role": "assistant",
"content": "curl -s https://cdn.service.... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "What are the 5 largest subdirectories of bin?"
},
{
"role": "assistant",
"content": "du -h bin/* 2>/dev/null | sort -rh | head -n 5"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Test if summary.tmp is present and has content; report missing, empty, or its line count."
},
{
"role": "assistant",
"content": "#!/usr/bin/env b... | script | if |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show me the 20 largest subdirectories of tmp."
},
{
"role": "assistant",
"content": "du -h tmp/* 2>/dev/null | sort -rh | head -n 20"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "POST a JSON body to https://auth.local/api/users"
},
{
"role": "assistant",
"content": "curl -X POST -H 'Content-Type: application/json' -d '{\"... | single | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Extract just the email addresses from report.md."
},
{
"role": "assistant",
"content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' report.md | sort -... | pipeline | sed |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Make session.zip executable."
},
{
"role": "assistant",
"content": "chmod +x session.zip"
}
] | single | chmod |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "check the type of every file in uploads"
},
{
"role": "assistant",
"content": "file uploads/*"
}
] | single | file |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need to count '500' occurrences in the nginx journal today."
},
{
"role": "assistant",
"content": "journalctl -u nginx --since today --no-pager | grep -c '500'"
}
] | pipeline | journalctl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I want a cleanup script for logs that purges .gz files older than 2 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefai... | script | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Create a script that accepts --tag (-t), --count (-c) and --name (-n) via getopts, with a usage message."
},
{
"role": "assistant",
"content": "... | script | getopts |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "give me a human-readable long listing of /home/deploy"
},
{
"role": "assistant",
"content": "ls -lh /home/deploy"
}
] | single | ls |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Extract just the email addresses from server.csv."
},
{
"role": "assistant",
"content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' server.csv ... | pipeline | sed |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show the 10 largest subdirectories in /var/www."
},
{
"role": "assistant",
"content": "du -h /var/www/* | sort -rh | head -n 10"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Fail fast if any of AWS_REGION, DB_HOST, REDIS_URL is unset — write it as a bash guard."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ba... | script | env |
[
{
"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 --tag (-t) via getopts, with a usage message."
},
{
"role": "assistant",
"cont... | script | getopts |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Restart the grafana-server service."
},
{
"role": "assistant",
"content": "sudo systemctl restart grafana-server"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "How do I list files in media sorted by size?"
},
{
"role": "assistant",
"content": "ls -lS media"
}
] | single | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Read data.tsv, then count each unique line, most common first — as a pipeline."
},
{
"role": "assistant",
"content": "cat data.tsv | sort | uniq -c | ... | pipeline | uniq |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Change the owner of test.old to backup."
},
{
"role": "assistant",
"content": "sudo chown backup test.old"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "How many connections are there to port 3000?"
},
{
"role": "assistant",
"content": "ss -tn | grep ':3000' | wc -l"
}
] | pipeline | ss |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show the contents of the /srv/www directory sorted by modification time, newest first."
},
{
"role": "assistant",
"content": "ls -lt /srv/www"
}
] | single | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Run the backup script, sending stdout and stderr to cron.log."
},
{
"role": "assistant",
"content": "./backup.sh > cron.log 2>&1"
}
] | pipeline | redirection |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a retry wrapper around curl to https://staging.corp.net/health: 4 attempts, 2s apart."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pi... | script | curl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show every open file under lib."
},
{
"role": "assistant",
"content": "lsof +D lib"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write me a script that retries a curl to https://172.16.0.20/health up to 5 times with a 2-second backoff."
},
{
"role": "assistant",
"content": ... | script | retry |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a rotating backup: archive /srv/data into /var/backups with bzip2, retain 5 copies."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipe... | script | tar |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I want a cleanup script for /var/log that purges .tmp files older than 7 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -e... | script | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Extract just the email addresses from account.log."
},
{
"role": "assistant",
"content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' account.log | sort -u"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Given notes.csv, convert everything to uppercase."
},
{
"role": "assistant",
"content": "cat notes.csv | tr 'a-z' 'A-Z'"
}
] | pipeline | tr |
[
{
"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 .gif files under /var/www."
},
{
"role": "assistant",
"content": "#... | script | mv |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "From transactions.tsv, list the 20 most frequent field-3 entries with their counts."
},
{
"role": "assistant",
"content": "cut -d, -f3 transactions.tsv | sort | uniq -c | sort -nr | head -n 20"
... | pipeline | cut |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need to show the last 20 lines containing 'invalid' in gc.log."
},
{
"role": "assistant",
"content": "grep 'invalid' gc.log | tail -n 20"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find files in releases larger than 100k."
},
{
"role": "assistant",
"content": "find releases -type f -size 100k"
}
] | single | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Count how many files are in /home/deploy."
},
{
"role": "assistant",
"content": "ls -1 /home/deploy | wc -l"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a backup script that bzip2-compresses /srv/data into a timestamped tarball under /backup and keeps only the 10 newest."
},
{
"role": "assistan... | script | tar |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "List all files opened by mysqld."
},
{
"role": "assistant",
"content": "lsof -c mysqld"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need to follow the containerd journal but only show lines mentioning 'timeout'."
},
{
"role": "assistant",
"content": "journalctl -u containerd... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a health-check loop over nodes.txt that checks if port 22 is open and prints the status of each."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\ns... | script | ssh |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "give the owner rwx and everyone else read on event.gz"
},
{
"role": "assistant",
"content": "chmod 744 event.gz"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show the last 10 lines containing 'unreachable' in dmesg.log."
},
{
"role": "assistant",
"content": "grep 'unreachable' dmesg.log | tail -n 10"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "List the 10 biggest files under /srv/www."
},
{
"role": "assistant",
"content": "find /srv/www -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -n 10"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need a preflight check that AWS_REGION, REDIS_URL and PORT exist in the environment."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash... | script | env |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "enable apache2 to start on boot"
},
{
"role": "assistant",
"content": "sudo systemctl enable apache2"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find the most recently modified file in include."
},
{
"role": "assistant",
"content": "ls -t include | head -n 1"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Read session.ini, then convert everything to uppercase — as a pipeline."
},
{
"role": "assistant",
"content": "cat session.ini | tr 'a-z' 'A-Z'"
... | pipeline | tr |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Create the docs directory if needed and then cd into it."
},
{
"role": "assistant",
"content": "mkdir -p docs && cd docs"
}
] | pipeline | chain |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Tally column 1 of build.log and print the 5 top values by count."
},
{
"role": "assistant",
"content": "awk '{print $1}' build.log | sort | uniq -c | sort -nr | hea... | pipeline | awk |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write me a script that dumps every MySQL database into its own gzip file under /srv/backup, keeping 10 days."
},
{
"role": "assistant",
"content... | script | mysqldump |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Make a backup copy of users.tar.gz called users.tar.gz.bak"
},
{
"role": "assistant",
"content": "cp users.tar.gz users.tar.gz.bak"
}
] | single | cp |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a deployment script: pull the hotfix/crash branch, install deps, run tests, and restart the service only if tests pass."
},
{
"role": "assistant",
... | script | git |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "change permissions to 644 on all files under /var/cache"
},
{
"role": "assistant",
"content": "find /var/cache -type f -print0 | xargs -0 chmod 644"
... | pipeline | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Rename audit.js to audit.js.old without overwriting if the target already exists."
},
{
"role": "assistant",
"content": "mv -n audit.js audit.js.old"
... | single | mv |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "List the 10 biggest files under media."
},
{
"role": "assistant",
"content": "find media -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head... | pipeline | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "For output.css, show a hex dump of the first 64 bytes."
},
{
"role": "assistant",
"content": "xxd -l 64 output.css"
}
] | single | xxd |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a shell script that pre-creates dated subdirectories under /backup for the next 3 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/... | script | for |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Extract just the email addresses from product.ini."
},
{
"role": "assistant",
"content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' product.ini | so... | pipeline | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "From orders.csv, list the 25 most frequent field-3 entries with their counts."
},
{
"role": "assistant",
"content": "awk '{print $3}' orders.csv | sort | uniq -c | sort -nr | head -n 25"
}
] | pipeline | awk |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a script that verifies it is run with at least one argument, else prints usage."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\... | script | if |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "SSH into web01.local as www-data."
},
{
"role": "assistant",
"content": "ssh www-data@web01.local"
}
] | single | ssh |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Test if summary.zip is present and has content; report missing, empty, or its line count."
},
{
"role": "assistant",
"content": "#!/usr/bin/env b... | script | if |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Read hosts.txt line by line, skipping comments and blanks, and echo each entry numbered."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\ns... | script | while |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Find the 10 most common 'traceback'-related lines in auth.log."
},
{
"role": "assistant",
"content": "grep 'traceback' auth.log | sort | uniq -c | sor... | pipeline | grep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need a preflight check that DB_HOST, REDIS_URL and ENV exist in the environment."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nse... | script | env |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need to count 'overflow' occurrences in the grafana-server journal today."
},
{
"role": "assistant",
"content": "journalctl -u grafana-server -... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "download /var/log/error.log from git.example.com to the current dir"
},
{
"role": "assistant",
"content": "scp redis@git.example.com:/var/log/error.log ."
}
] | single | scp |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "show firewalld logs from the last 2 days"
},
{
"role": "assistant",
"content": "journalctl -u firewalld --since '2 days ago'"
}
] | single | journalctl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "What are the 10 biggest files under dist?"
},
{
"role": "assistant",
"content": "find dist -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | he... | pipeline | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Remove write permission for group and others on build.xml."
},
{
"role": "assistant",
"content": "chmod go-w build.xml"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Take event.json and convert everything to uppercase."
},
{
"role": "assistant",
"content": "cat event.json | tr 'a-z' 'A-Z'"
}
] | pipeline | tr |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "POST a JSON body to https://auth.service.io/api/users"
},
{
"role": "assistant",
"content": "curl -X POST -H 'Content-Type: application/json' -d... | single | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Recursively set owner and group of assets to operator:backup."
},
{
"role": "assistant",
"content": "sudo chown -R operator:backup assets"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Clean up uploads: remove .cache files not modified in 180 days, recording each deletion."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ba... | script | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Give me an init-style dispatcher for the firewalld service with case on $1."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo ... | script | case |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Fail fast if any of API_KEY, DB_HOST, AWS_REGION is unset — write it as a bash guard."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\... | script | env |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "reload memcached without a full restart"
},
{
"role": "assistant",
"content": "sudo systemctl reload memcached"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Back up all MySQL databases individually to /mnt/backup as compressed dumps."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo... | script | mysqldump |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find the process listening on port 9090."
},
{
"role": "assistant",
"content": "lsof -i :9090"
}
] | single | lsof |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Check if config.txt exists and cat it, otherwise say it's missing."
},
{
"role": "assistant",
"content": "[ -f config.txt ] && cat config.txt || echo ... | pipeline | chain |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Please show the first 20 lines in credentials.gz."
},
{
"role": "assistant",
"content": "head -n 20 credentials.gz"
}
] | single | head |
[
{
"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 'disk full'."
},
{
"role": "assistant",
"content": "journalctl -u postgresql -f | gr... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Read the CSV export.csv field by field (id,name,email) with a while loop and print a greeting."
},
{
"role": "assistant",
"content": "#!/usr/bin... | script | while |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find all .jpg files under config."
},
{
"role": "assistant",
"content": "find config -type f -name '*.jpg'"
}
] | single | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Create a gzip-compressed archive of the backup directory."
},
{
"role": "assistant",
"content": "tar -czf backup.tar.gz backup"
}
] | single | tar |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Find the most recently modified file in tests."
},
{
"role": "assistant",
"content": "ls -t tests | head -n 1"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a small script that deletes .bak files older than 10 days from logs and logs what it removed."
},
{
"role": "assistant",
"content": "#!/usr/bin/... | script | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Change the owner of server.yaml to postgres."
},
{
"role": "assistant",
"content": "sudo chown postgres server.yaml"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Short w listing for user carol."
},
{
"role": "assistant",
"content": "w -s carol"
}
] | single | w |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Force-kill every process whose name matches java."
},
{
"role": "assistant",
"content": "pkill -9 java"
}
] | single | pkill |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Back up /home/alice to /mnt/backup as a dated bzip2 archive, pruning all but the last 5 backups."
},
{
"role": "assistant",
"content": "#!/usr/b... | script | tar |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Given notes.conf, strip trailing whitespace."
},
{
"role": "assistant",
"content": "cat notes.conf | sed 's/[[:space:]]*$//'"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need to list the unique '502' messages in audit.log."
},
{
"role": "assistant",
"content": "grep '502' audit.log | sort -u"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show me how to follow the chronyd journal but only show lines mentioning 'DEBUG'."
},
{
"role": "assistant",
"content": "journalctl -u chronyd -f | grep --line-buffered -i 'DEBUG'"
}
] | pipeline | journalctl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show me how to follow the mariadb journal but only show lines mentioning 'retry'."
},
{
"role": "assistant",
"content": "journalctl -u mariadb -f | gr... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "List open files owned by dave."
},
{
"role": "assistant",
"content": "lsof -u dave"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "From product.json, show the 20 longest lines."
},
{
"role": "assistant",
"content": "cat product.json | awk '{ print length, $0 }' | sort -rn | head -20 | cut -d' ' -f2-"
}
] | pipeline | awk |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need a script that dumps every PostgreSQL database into its own gzip file under /srv/backup, keeping 10 days."
},
{
"role": "assistant",
"conte... | script | pg_dump |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Recursively make everything in lib readable and writable by the owner only."
},
{
"role": "assistant",
"content": "chmod -R 600 lib"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write me a script that deletes .gz files older than 2 days from /tmp and logs what it removed."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo ... | script | find |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Print only lines 10 through 20 of report.tsv."
},
{
"role": "assistant",
"content": "sed -n '10,20p' report.tsv"
}
] | single | sed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.