messages listlengths 3 3 | category stringclasses 3
values | utility stringclasses 89
values |
|---|---|---|
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "gzip every .log file under /mnt/data"
},
{
"role": "assistant",
"content": "find /mnt/data -type f -name '*.log' -print0 | xargs -0 gzip"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Create the cache directory if needed and then cd into it."
},
{
"role": "assistant",
"content": "mkdir -p cache && cd cache"
}
] | pipeline | chain |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a script that deletes .log files older than 180 days from logs and logs what it removed."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo... | script | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "How do I count how many containerd processes are running?"
},
{
"role": "assistant",
"content": "pgrep -c containerd"
}
] | pipeline | pgrep |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a backup script that xz-compresses data into a timestamped tarball under /mnt/backup and keeps only the 30 newest."
},
{
"role": "assistant",
... | script | tar |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Poll memory in MB every 3s, 10 times."
},
{
"role": "assistant",
"content": "free -m -s 3 -c 10"
}
] | single | free |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show kernel messages from the syslog facility."
},
{
"role": "assistant",
"content": "dmesg -f syslog"
}
] | single | dmesg |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I need a retry wrapper around connection to 1.1.1.1:5432: 4 attempts, 1s apart."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo p... | script | bash |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Update all packages with dnf."
},
{
"role": "assistant",
"content": "sudo dnf upgrade -y"
}
] | single | dnf |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show TCP connections involving git.service.io."
},
{
"role": "assistant",
"content": "netstat -tn | grep git.service.io"
}
] | single | netstat |
[
{
"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 git fetch from origin up to 5 times, sleeping 1s between attempts."
},
{
"role": "assistant",
"content": "#!/usr... | script | git |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show TCP connections involving www.service.io."
},
{
"role": "assistant",
"content": "netstat -tn | grep www.service.io"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Search the kernel log for 'memory' messages."
},
{
"role": "assistant",
"content": "dmesg -T | grep -i memory"
}
] | single | dmesg |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "check the type of every file in static"
},
{
"role": "assistant",
"content": "file static/*"
}
] | single | file |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Retry curl to https://www.example.com/health at most 3 times with a 5-second backoff, failing loudly if it never succeeds."
},
{
"role": "assistant",... | script | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show connections on port 9200."
},
{
"role": "assistant",
"content": "netstat -anp | grep :9200"
}
] | single | netstat |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Fail fast if any of ENV, DB_HOST, DB_PASS is unset — write it as a bash guard."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pi... | script | env |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Parse command-line flags -l (level), -n (name) and -p (port) using getopts and validate that -l is provided."
},
{
"role": "assistant",
"content... | script | getopts |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show the subtree of processes under PID 7337."
},
{
"role": "assistant",
"content": "pstree -p 7337"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Find the most recently modified file in /etc/apache2."
},
{
"role": "assistant",
"content": "ls -t /etc/apache2 | head -n 1"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "For each .sql file under /opt/app, record a sha256 checksum in a manifest file."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -... | script | for |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Sample free 10 times at 2-second intervals in megabytes."
},
{
"role": "assistant",
"content": "free -m -s 2 -c 10"
}
] | single | free |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show me how to follow the sshd journal but only show lines mentioning 'unauthorized'."
},
{
"role": "assistant",
"content": "journalctl -u sshd -... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Change the owner of profile.xml to tomcat."
},
{
"role": "assistant",
"content": "sudo chown tomcat profile.xml"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Give me a script that iterates over logs/*.cache and changes the owner of each file to deploy."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=logs\nfor f in \"... | script | chown |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a start/stop/restart/status control script for redis using a case statement."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nse... | script | case |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Show the parent chain leading to PID 1160."
},
{
"role": "assistant",
"content": "pstree -s 1160"
}
] | single | pstree |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "delete all blank lines from release.ini"
},
{
"role": "assistant",
"content": "sed '/^$/d' release.ini"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "extract all the 'name' fields from https://cdn.local/api/users"
},
{
"role": "assistant",
"content": "curl -s https://cdn.local/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": "Timestamped vmstat every 1s for 30 samples."
},
{
"role": "assistant",
"content": "vmstat -t 1 30"
}
] | single | vmstat |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "strip leading whitespace from every line of inventory.md and save to clean.txt"
},
{
"role": "assistant",
"content": "sed 's/^[[:space:]]*//' in... | pipeline | sed |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show TCP connections involving git.corp.net."
},
{
"role": "assistant",
"content": "netstat -tn | grep git.corp.net"
}
] | single | netstat |
[
{
"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 postgresql service with case on $1."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo... | script | case |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Remove write permission for group and others on metrics.py."
},
{
"role": "assistant",
"content": "chmod go-w metrics.py"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show TCP connections involving proxy.corp.net."
},
{
"role": "assistant",
"content": "netstat -tn | grep proxy.corp.net"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Case-insensitively find 'invalid' in worker.log."
},
{
"role": "assistant",
"content": "grep -i 'invalid' worker.log"
}
] | single | grep |
[
{
"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 settings.sh."
},
{
"role": "assistant",
"content": "xxd -l 64 settings.sh"
}
] | single | xxd |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show mysql's sessions without the header."
},
{
"role": "assistant",
"content": "w -h mysql"
}
] | single | w |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a watchdog loop that checks every 10s and only alerts once when disk passes 80%."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail... | script | while |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Can you write a script that loops over every .html file in logs and changes the owner of each file to deploy?"
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=lo... | script | chown |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Sort session.json numerically in reverse order."
},
{
"role": "assistant",
"content": "sort -nr session.json"
}
] | single | sort |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a Bash script that retries a git fetch from origin up to 3 times, sleeping 2s between attempts."
},
{
"role": "assistant",
"content": "#!/... | script | git |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Sample free 3 times at 1-second intervals in megabytes."
},
{
"role": "assistant",
"content": "free -m -s 1 -c 3"
}
] | single | free |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Create a script that deletes .bak files older than 1 days from /var/cache and logs what it removed."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=/var/cach... | script | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Fetch https://proxy.example.com/health and print only the HTTP status code."
},
{
"role": "assistant",
"content": "curl -s -o /dev/null -w '%{htt... | single | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a script that checks a list of required commands (git, curl, jq) are installed before continuing."
},
{
"role": "assistant",
"content": "#!... | script | command |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Sample iostat 5 times at 1-second intervals."
},
{
"role": "assistant",
"content": "iostat 1 5"
}
] | single | iostat |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Filter netstat for connections to or from cache.local."
},
{
"role": "assistant",
"content": "netstat -tn | grep cache.local"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "How many connections are there to port 15672?"
},
{
"role": "assistant",
"content": "ss -tn | grep ':15672' | wc -l"
}
] | pipeline | ss |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Move schema.json into the downloads folder."
},
{
"role": "assistant",
"content": "mv schema.json downloads/"
}
] | single | mv |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "change just the group of audit.tmp to deploy"
},
{
"role": "assistant",
"content": "sudo chgrp deploy audit.tmp"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "get the number of items in the JSON array at https://monitor.corp.net/api/items"
},
{
"role": "assistant",
"content": "curl -s https://monitor.corp.net/api/items | ... | pipeline | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Retry connection to api.example.org:5432 at most 10 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": "Filter netstat for connections to or from auth.corp.net."
},
{
"role": "assistant",
"content": "netstat -tn | grep auth.corp.net"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Set auth.xml to permissions 644."
},
{
"role": "assistant",
"content": "chmod 644 auth.xml"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need a rotating backup: archive /home/alice into /srv/backup with xz, retain 7 copies."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nsrc=/home/alice\ndest=/srv/... | script | tar |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a shell script that retries a curl to https://api.service.io/health up to 10 times, sleeping 2s between attempts."
},
{
"role": "assistant",
... | script | curl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Find files in fixtures owned by svc-app."
},
{
"role": "assistant",
"content": "find fixtures -type f -user svc-app"
}
] | single | find |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Count total lines across all .xml files in /home/alice."
},
{
"role": "assistant",
"content": "find /home/alice -type f -name '*.xml' -print0 | xargs -0 cat | wc -l"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show TCP connections involving cdn.example.org."
},
{
"role": "assistant",
"content": "netstat -tn | grep cdn.example.org"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Can you write a script that accepts --dir (-d), --name (-n) and --level (-l) via getopts, with a usage message?"
},
{
"role": "assistant",
"content": "#!/usr/bin/en... | script | getopts |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "give the owner rwx and everyone else read on debug.bak"
},
{
"role": "assistant",
"content": "chmod 744 debug.bak"
}
] | single | chmod |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Find the most recently modified file in /opt/app."
},
{
"role": "assistant",
"content": "ls -t /opt/app | head -n 1"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Read servers.txt line by line and ping each host once, reporting up or down."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nwhile IF... | script | while |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need per-database PostgreSQL backups written to /data/backup and pruned after 30 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env b... | script | pg_dump |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write a shell script that loops over every .old file in /var/www and prints the line count of each file."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\... | script | wc |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show me the disk usage of bin broken down one level deep."
},
{
"role": "assistant",
"content": "du -h --max-depth=1 bin 2>/dev/null | sort -rh"
... | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Give 'gzip huge.log' a boosted CPU priority of -5."
},
{
"role": "assistant",
"content": "sudo nice -n -5 gzip huge.log"
}
] | single | nice |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show me how to follow the nginx journal but only show lines mentioning 'throttled'."
},
{
"role": "assistant",
"content": "journalctl -u nginx -f | grep --line-buff... | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Count the lines of account.jpg."
},
{
"role": "assistant",
"content": "wc -l account.jpg"
}
] | single | wc |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Print the current 1-minute load."
},
{
"role": "assistant",
"content": "cut -d' ' -f1 /proc/loadavg"
}
] | single | uptime |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Find the most recently modified file in /var/log."
},
{
"role": "assistant",
"content": "ls -t /var/log | head -n 1"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "search all .json files under uploads for the word TODO"
},
{
"role": "assistant",
"content": "find uploads -name '*.json' -print0 | xargs -0 grep -l TODO"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Show the user and group IDs for bob."
},
{
"role": "assistant",
"content": "id bob"
}
] | single | id |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show its size, owner and permissions of event.gz."
},
{
"role": "assistant",
"content": "stat event.gz"
}
] | single | stat |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Rename product.csv to product.csv.old without overwriting if the target already exists."
},
{
"role": "assistant",
"content": "mv -n product.csv produ... | single | mv |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Show the 10 largest subdirectories in /var/lib/mysql."
},
{
"role": "assistant",
"content": "du -h /var/lib/mysql/* | sort -rh | head -n 10"
}
... | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "follow redirects when fetching https://api.example.org"
},
{
"role": "assistant",
"content": "curl -L https://api.example.org"
}
] | single | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Filter netstat for connections to or from staging.internal."
},
{
"role": "assistant",
"content": "netstat -tn | grep staging.internal"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Find the process listening on port 2379."
},
{
"role": "assistant",
"content": "lsof -i :2379"
}
] | single | lsof |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Filter netstat for connections to or from db02.example.com."
},
{
"role": "assistant",
"content": "netstat -tn | grep db02.example.com"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "kill every process listening on port 2379"
},
{
"role": "assistant",
"content": "lsof -ti :2379 | xargs -r kill -9"
}
] | pipeline | xargs |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "List active (established) sessions on port 11211."
},
{
"role": "assistant",
"content": "lsof -i :11211 -sTCP:ESTABLISHED"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Find any socket using port 11211 via netstat."
},
{
"role": "assistant",
"content": "netstat -anp | grep :11211"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a small script that retries a connection to monitor.service.io:5432 up to 10 times, sleeping 1s between attempts."
},
{
"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": "give me a human-readable long listing of config"
},
{
"role": "assistant",
"content": "ls -lh config"
}
] | single | ls |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I need a bash script that changes the owner of each file to deploy for all .zip files under /home/alice."
},
{
"role": "assistant",
"content": "#!/usr... | script | chown |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Take export.md and convert everything to uppercase."
},
{
"role": "assistant",
"content": "cat export.md | tr 'a-z' 'A-Z'"
}
] | pipeline | tr |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "gzip every .log file under /var/lib/mysql"
},
{
"role": "assistant",
"content": "find /var/lib/mysql -type f -name '*.log' -print0 | xargs -0 gz... | pipeline | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "From auth.log, list the 10 most frequent field-3 entries with their counts."
},
{
"role": "assistant",
"content": "cut -d, -f3 auth.log | sort | uniq ... | pipeline | cut |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Check whether python is running and exit 0 if so, 1 otherwise, with a message."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pi... | script | if |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "In products.csv, which 20 values of column 4 occur most often?"
},
{
"role": "assistant",
"content": "cut -d, -f4 products.csv | sort | uniq -c ... | pipeline | cut |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Write me a script that loops over every .yaml file in /var/lib/app and prints the line count of each file."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | wc |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write a script that pre-creates dated subdirectories under /data/backup for the next 3 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nbase=/data/backup\nfor ... | script | for |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Back up all PostgreSQL databases individually to /data/backup as compressed dumps."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\ns... | script | pg_dump |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Parse export.tsv as comma-separated id,name,email using while read and print each name."
},
{
"role": "assistant",
"content": "#!/usr/bin/env ba... | script | while |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Loop through the .yaml files in /var/www and changes the owner of each file to deploy — write it as a proper script."
},
{
"role": "assistant",
"... | script | chown |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Copy event.md into the modules directory."
},
{
"role": "assistant",
"content": "cp event.md modules/"
}
] | single | cp |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Change the owner of inventory.jpg to dave."
},
{
"role": "assistant",
"content": "sudo chown dave inventory.jpg"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "replace tabs with commas in credentials.md and write to credentials.md.csv"
},
{
"role": "assistant",
"content": "sed 's/\\t/,/g' credentials.md > credentials.md.csv"
}
] | pipeline | sed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.