messages listlengths 3 3 | category stringclasses 3
values | utility stringclasses 89
values |
|---|---|---|
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show open files for the apache2 process."
},
{
"role": "assistant",
"content": "lsof -c apache2"
}
] | single | lsof |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need a rotating backup: archive /mnt/storage into /data/backup with bzip2, retain 10 copies."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nsrc=/mnt/storage\ndes... | script | tar |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Count how many files are in vendor."
},
{
"role": "assistant",
"content": "ls -1 vendor | wc -l"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Background 'ffmpeg -i in.mp4 out.mp4' at nice level 19."
},
{
"role": "assistant",
"content": "nice -n 19 ffmpeg -i in.mp4 out.mp4 &"
}
] | single | nice |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "search all .old files under /home/deploy for the word TODO"
},
{
"role": "assistant",
"content": "find /home/deploy -name '*.old' -print0 | xarg... | pipeline | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Take build.csv and show the 20 longest lines."
},
{
"role": "assistant",
"content": "cat build.csv | awk '{ print length, $0 }' | sort -rn | head... | pipeline | awk |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Count occurrences of each unique line in error.yaml (assume it's sorted)."
},
{
"role": "assistant",
"content": "uniq -c error.yaml"
}
] | single | uniq |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write me a script that alerts if the root filesystem is more than 95% full."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo... | script | if |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show the 10 largest subdirectories in /opt/scripts."
},
{
"role": "assistant",
"content": "du -h /opt/scripts/* | sort -rh | head -n 10"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need a rotating backup: archive /srv/data into /backup with bzip2, retain 5 copies."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash... | script | tar |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Can you write a script that retries a connection to registry.example.org:5432 up to 6 times, sleeping 5s between attempts?"
},
{
"role": "assistant",
... | script | bash |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need a preflight check that API_KEY, REDIS_URL and PORT exist in the environment."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\n... | script | env |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "create three folders at once: src, tests and docs"
},
{
"role": "assistant",
"content": "mkdir src tests docs"
}
] | single | mkdir |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write me a script that runs checksum with sha256sum on every .gif file in /home/alice, 2 jobs in parallel."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/home... | script | xargs |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "I need getopts handling for three options: -t, -i and -p; print usage on bad input."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -e... | script | getopts |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "download https://backup.corp.net/list.txt and count the lines"
},
{
"role": "assistant",
"content": "curl -s https://backup.corp.net/list.txt | wc -l"
}
] | pipeline | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a script that deletes .tmp files older than 90 days from cache and logs what it removed."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo... | script | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I want a cleanup script for /var/log that purges .cache files older than 3 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset... | script | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Remove write permission for group and others on notes.pdf."
},
{
"role": "assistant",
"content": "chmod go-w notes.pdf"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "replace tabs with commas in audit.log and write to audit.log.csv"
},
{
"role": "assistant",
"content": "sed 's/\\t/,/g' audit.log > audit.log.csv"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Start 'ffmpeg -i in.mp4 out.mp4' with nice value 15 so it doesn't hog the CPU."
},
{
"role": "assistant",
"content": "nice -n 15 ffmpeg -i in.mp4 out.mp4"
}
] | single | nice |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Filter netstat for connections to or from db01.internal."
},
{
"role": "assistant",
"content": "netstat -tn | grep db01.internal"
}
] | single | netstat |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "I need a rotating backup: archive /data/uploads into /mnt/backup with xz, retain 14 copies."
},
{
"role": "assistant",
"content": "#!/usr/bin/en... | script | tar |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "From invoice.log, show the 20 longest lines."
},
{
"role": "assistant",
"content": "cat invoice.log | awk '{ print length, $0 }' | sort -rn | hea... | pipeline | awk |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Run 'ffmpeg -i in.mp4 out.mp4' at a lower priority (nice 1)."
},
{
"role": "assistant",
"content": "nice -n 1 ffmpeg -i in.mp4 out.mp4"
}
] | single | nice |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a script that accepts --name (-n), --output (-o) and --level (-l) via getopts, with a usage message."
},
{
"role": "assistant",
"content": ... | script | getopts |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Read response.log, then sort it and drop duplicate lines — as a pipeline."
},
{
"role": "assistant",
"content": "cat response.log | sort -u"
}
] | pipeline | sort |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "locate files under cache modified in the last 10 days"
},
{
"role": "assistant",
"content": "find cache -type f -mtime -10"
}
] | single | find |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Is the cron service currently active?"
},
{
"role": "assistant",
"content": "systemctl is-active cron"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Search debug.log for lines containing '403'."
},
{
"role": "assistant",
"content": "grep '403' debug.log"
}
] | single | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "For catalog.tar.gz, determine what kind of file it is."
},
{
"role": "assistant",
"content": "file catalog.tar.gz"
}
] | single | file |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "show top output for just the haproxy processes"
},
{
"role": "assistant",
"content": "top -p $(pgrep -d, haproxy)"
}
] | single | top |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Write a deployment script: pull the develop branch, install deps, run tests, and restart the service only if tests pass."
},
{
"role": "assistant",
... | script | git |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "I need a script that categorizes a filename by extension using case (is a .gif an image, archive, doc?)."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\... | script | case |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "For product.bak, print it with line numbers."
},
{
"role": "assistant",
"content": "nl product.bak"
}
] | single | nl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "For catalog.jpg, determine what kind of file it is."
},
{
"role": "assistant",
"content": "file catalog.jpg"
}
] | single | file |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "send SIGHUP to process 2626 to make it reload its config"
},
{
"role": "assistant",
"content": "kill -HUP 2626"
}
] | single | kill |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "replace tabs with commas in payload.yaml and write to payload.yaml.csv"
},
{
"role": "assistant",
"content": "sed 's/\\t/,/g' payload.yaml > payl... | pipeline | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Back up all MySQL databases individually to /backup as compressed dumps."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndest=/backup... | script | mysqldump |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "I need getopts handling for three options: -n, -d and -l; print usage on bad input."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nname=\"\"; dir=\"\"; level=\"\"\... | script | getopts |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need a rotating backup: archive /home/deploy into /mnt/backup with gzip, retain 10 copies."
},
{
"role": "assistant",
"content": "#!/usr/bin/en... | script | tar |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Count how many times each line appears in debug.txt, most frequent first."
},
{
"role": "assistant",
"content": "sort debug.txt | uniq -c | sort ... | pipeline | sort |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Give me an init-style dispatcher for the cron service with case on $1."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\n... | script | case |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Restart the containerd service."
},
{
"role": "assistant",
"content": "sudo systemctl restart containerd"
}
] | single | systemctl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "search all .sql files under dist for the word TODO"
},
{
"role": "assistant",
"content": "find dist -name '*.sql' -print0 | xargs -0 grep -l TODO"
}
] | pipeline | find |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Take product.tsv and count each unique line, most common first."
},
{
"role": "assistant",
"content": "cat product.tsv | sort | uniq -c | sort -nr"
... | pipeline | uniq |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "get the number of items in the JSON array at https://cdn.local/api/items"
},
{
"role": "assistant",
"content": "curl -s https://cdn.local/api/items | jq 'length'"
}
] | pipeline | curl |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Fetch JSON from https://web01.local/api/users and pretty-print it with jq."
},
{
"role": "assistant",
"content": "curl -s https://web01.local/api/user... | pipeline | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Print only lines 10 through 20 of index.ini."
},
{
"role": "assistant",
"content": "sed -n '10,20p' index.ini"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "list only the .csv files in /home/alice"
},
{
"role": "assistant",
"content": "ls /home/alice | grep '\\.csv$'"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Background 'make -j4' at nice level 15."
},
{
"role": "assistant",
"content": "nice -n 15 make -j4 &"
}
] | single | nice |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "change just the group of customer.old to staff"
},
{
"role": "assistant",
"content": "sudo chgrp staff customer.old"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Edit access.json in place, replacing 'GET' with 'pending'."
},
{
"role": "assistant",
"content": "sed -i 's/GET/pending/g' access.json"
}
] | single | sed |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Please show the last 20 lines in notes.sql."
},
{
"role": "assistant",
"content": "tail -n 20 notes.sql"
}
] | single | tail |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "change just the group of archive.sh to backup"
},
{
"role": "assistant",
"content": "sudo chgrp backup archive.sh"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Process all .gif files under /opt/app with optipng using 8 parallel workers via xargs."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | xargs |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Write me a script that converts every .png in the current directory to .jpg using ImageMagick, keeping originals."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\nsh... | script | for |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Edit account.log in place, replacing 'kernel' with 'inactive'."
},
{
"role": "assistant",
"content": "sed -i 's/kernel/inactive/g' account.log"
... | single | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "From order.json, strip trailing whitespace."
},
{
"role": "assistant",
"content": "cat order.json | sed 's/[[:space:]]*$//'"
}
] | pipeline | sed |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Back up /home/alice to /srv/backup as a dated gzip archive, pruning all but the last 3 backups."
},
{
"role": "assistant",
"content": "#!/usr/bi... | script | tar |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Show me the disk usage of vendor broken down one level deep."
},
{
"role": "assistant",
"content": "du -h --max-depth=1 vendor 2>/dev/null | sort -rh"
}
] | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "What are the disk usage of artifacts broken down one level deep?"
},
{
"role": "assistant",
"content": "du -h --max-depth=1 artifacts 2>/dev/nul... | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Write a shell script that loops over every .md file in /opt/app and compresses each file with gzip."
},
{
"role": "assistant",
"content": "#!/us... | script | gzip |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Change the owner of export.css to mysql."
},
{
"role": "assistant",
"content": "sudo chown mysql export.css"
}
] | single | chown |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Delete the first line of manifest.txt in place."
},
{
"role": "assistant",
"content": "sed -i '1d' manifest.txt"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Read manifest.csv, then show the last 15 lines — as a pipeline."
},
{
"role": "assistant",
"content": "cat manifest.csv | tail -n 15"
}
] | pipeline | tail |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Clean up /var/cache: remove .log files not modified in 3 days, recording each deletion."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bas... | script | find |
[
{
"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 /backup and pruned after 14 days."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\n... | script | pg_dump |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Make 14 day-stamped folders under /data/backup using a for loop over a date range."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nse... | script | for |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "How many lines in gateway.log mention 'expired'?"
},
{
"role": "assistant",
"content": "grep -c 'expired' gateway.log | cat"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "search all .jpg files under /mnt/data for the word TODO"
},
{
"role": "assistant",
"content": "find /mnt/data -name '*.jpg' -print0 | xargs -0 g... | pipeline | find |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "What are the 20 largest subdirectories of /var/cache?"
},
{
"role": "assistant",
"content": "du -h /var/cache/* 2>/dev/null | sort -rh | head -n ... | pipeline | du |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Loop through the .pdf files in /data/uploads and prints the line count of each file — write it as a proper script."
},
{
"role": "assistant",
"c... | script | wc |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "search all .gif files under logs for the word TODO"
},
{
"role": "assistant",
"content": "find logs -name '*.gif' -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 total size of the assets directory in human-readable form."
},
{
"role": "assistant",
"content": "du -sh assets"
}
] | single | du |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "Process all .bak files under logs with checksum with sha256sum using 2 parallel workers via xargs."
},
{
"role": "assistant",
"content": "#!/usr/... | script | xargs |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Write a Bash script that categorizes a filename by extension using case (is a .txt an image, archive, doc?)."
},
{
"role": "assistant",
"content": "#!... | script | case |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Fetch JSON from https://localhost/api/users and pretty-print it with jq."
},
{
"role": "assistant",
"content": "curl -s https://localhost/api/users | jq ."
}
] | pipeline | curl |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "List sessions with destination registry.corp.net."
},
{
"role": "assistant",
"content": "ss -tn dst registry.corp.net"
}
] | single | ss |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "Install ripgrep using dnf."
},
{
"role": "assistant",
"content": "sudo dnf install -y ripgrep"
}
] | single | dnf |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show the last 10 lines containing 'panic' in api.log."
},
{
"role": "assistant",
"content": "grep 'panic' api.log | tail -n 10"
}
] | pipeline | grep |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "POST a JSON body to https://staging.service.io/api/users"
},
{
"role": "assistant",
"content": "curl -X POST -H 'Content-Type: application/json' -d '{... | single | curl |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Show the last 20 warning entries for grafana-server."
},
{
"role": "assistant",
"content": "journalctl -u grafana-server -p warning -n 20 --no-pager"
}
] | pipeline | journalctl |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Append the current date to worker.log."
},
{
"role": "assistant",
"content": "date >> worker.log"
}
] | pipeline | redirection |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Process all .yaml files under /home/alice with checksum with sha256sum using 4 parallel workers via xargs."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/home... | script | xargs |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Give me a script that iterates over /data/uploads/*.pdf and makes each file read-only."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\nset -euo pipefail... | script | chmod |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Count how many files are in build."
},
{
"role": "assistant",
"content": "ls -1 build | wc -l"
}
] | pipeline | ls |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Edit payment.txt in place, replacing 'enabled' with 'root'."
},
{
"role": "assistant",
"content": "sed -i 's/enabled/root/g' payment.txt"
}
] | single | sed |
[
{
"role": "system",
"content": "You are a Linux shell expert. Respond with Bash only."
},
{
"role": "user",
"content": "Rename request.png to request.png.old without overwriting if the target already exists."
},
{
"role": "assistant",
"content": "mv -n request.png request.png.old"
... | single | mv |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Give me a frequency tally of column 2 in mail.log and show the 5 biggest."
},
{
"role": "assistant",
"content": "cut -d, -f2 mail.log | sort | u... | pipeline | cut |
[
{
"role": "system",
"content": "You are a Bash expert."
},
{
"role": "user",
"content": "Count how many lines in audit.log match 'not found'."
},
{
"role": "assistant",
"content": "grep -c 'not found' audit.log"
}
] | single | grep |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Recursively set owner and group of assets to git:backup."
},
{
"role": "assistant",
"content": "sudo chown -R git:backup assets"
}
] | single | chown |
[
{
"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 systemd-networkd service with case on $1."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\ns... | script | case |
[
{
"role": "system",
"content": "You translate natural-language requests into correct Bash commands."
},
{
"role": "user",
"content": "For output.png, count the lines."
},
{
"role": "assistant",
"content": "wc -l output.png"
}
] | single | wc |
[
{
"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 logs into a timestamped tarball under /srv/backup and keeps only the 30 newest."
},
{
"role": "assistant",... | script | tar |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Set backup.json to permissions 644."
},
{
"role": "assistant",
"content": "chmod 644 backup.json"
}
] | single | chmod |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Copy config.tar.gz into the lib directory."
},
{
"role": "assistant",
"content": "cp config.tar.gz lib/"
}
] | single | cp |
[
{
"role": "system",
"content": "You are a command-line assistant specializing in Bash and GNU coreutils."
},
{
"role": "user",
"content": "I need a script that accepts --count (-c), --port (-p) and --dir (-d) 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": "I need a preflight check that API_KEY, ENV and AWS_REGION exist in the environment."
},
{
"role": "assistant",
"content": "#!/usr/bin/env bash\n... | script | env |
[
{
"role": "system",
"content": "You are a helpful assistant that writes correct, idiomatic Bash commands."
},
{
"role": "user",
"content": "Read catalog.json, then count the lines — as a pipeline."
},
{
"role": "assistant",
"content": "cat catalog.json | wc -l"
}
] | pipeline | wc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.