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": "Lower the priority of process 8980 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 8980" } ]
single
renice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Bump process 4833 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 4833" } ]
single
renice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "list only the .old files in migrations" }, { "role": "assistant", "content": "ls migrations | grep '\\.old$'" } ]
pipeline
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show established connections on port 9090." }, { "role": "assistant", "content": "lsof -i :9090 -sTCP:ESTABLISHED" } ]
single
lsof
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the last 20 lines of changelog.md." }, { "role": "assistant", "content": "tail -n 20 changelog.md" } ]
single
tail
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Bump process 5195 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 5195" } ]
single
renice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count how many files are in artifacts." }, { "role": "assistant", "content": "ls -1 artifacts | wc -l" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Change the owner of migration.json to www-data." }, { "role": "assistant", "content": "sudo chown www-data migration.json" } ]
single
chown
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Parse metrics.csv 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": "Fetch JSON from https://web01.example.org/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://web01.exa...
pipeline
curl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Lower the priority of process 4758 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 4758" } ]
single
renice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Recursively set owner and group of reports to admin:mysql." }, { "role": "assistant", "content": "sudo chown -R admin:mysql reports" } ]
single
chown
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Display dave's processes as a tree." }, { "role": "assistant", "content": "pstree dave" } ]
single
pstree
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Fetch JSON from https://db01.internal/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://db01.internal...
pipeline
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show open files for the python process." }, { "role": "assistant", "content": "lsof -c python" } ]
single
lsof
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show me how to tally how many times each log level appears in worker.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG...
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Parse command-line flags -n (name), -o (output) and -d (dir) using getopts and validate that -n is provided." }, { "role": "assistant", "content"...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Test if customer.json is present and has content; report missing, empty, or its line count." }, { "role": "assistant", "content": "#!/usr/bin/env...
script
if
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "I need to tally how many times each log level appears in server.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' server.log | sort | u...
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Use vmstat's wide output, 2s apart, 20 times." }, { "role": "assistant", "content": "vmstat -w 2 20" } ]
single
vmstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "List all files opened by node." }, { "role": "assistant", "content": "lsof -c node" } ]
single
lsof
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Test if access.txt is present and has content; report missing, empty, or its line count." }, { "role": "assistant", "content": "#!/usr/bin/env ba...
script
if
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Run the backup script, sending stdout and stderr to syslog.log." }, { "role": "assistant", "content": "./backup.sh > syslog.log 2>&1" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Lower the priority of process 1864 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 1864" } ]
single
renice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Iterate the hosts in targets.txt; the script curls the /health endpoint and marks each reachable or not." }, { "role": "assistant", "content": "#!/usr...
script
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Create an empty file named account.pdf." }, { "role": "assistant", "content": "touch account.pdf" } ]
single
touch
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Make auth.tar.gz executable." }, { "role": "assistant", "content": "chmod +x auth.tar.gz" } ]
single
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Process servers.txt one line at a time, ignoring # comments, printing a running index." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nn=0\nwhile IFS= read -r line;...
script
while
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "List sessions with destination web01.example.com." }, { "role": "assistant", "content": "ss -tn dst web01.example.com" } ]
single
ss
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I want a cleanup script for cache that purges .cache files older than 14 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=cache\nage=14\n[ -d \"$target\...
script
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Bump process 2431 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 2431" } ]
single
renice
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "What's bound to port 8080?" }, { "role": "assistant", "content": "lsof -i :8080" } ]
single
lsof
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show which process is using port 8000." }, { "role": "assistant", "content": "lsof -i :8000" } ]
single
lsof
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need to show the last 50 lines containing 'panic' in mail.log." }, { "role": "assistant", "content": "grep 'panic' mail.log | tail -n 50" } ]
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Give me a script that iterates over backups/*.conf and changes the owner of each file to deploy." }, { "role": "assistant", "content": "#!/usr/bi...
script
chown
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Compress ingest.log with gzip." }, { "role": "assistant", "content": "gzip ingest.log" } ]
single
gzip
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the uptime rounded to whole days." }, { "role": "assistant", "content": "awk '{print int($1/86400)\" days\"}' /proc/uptime" } ]
single
uptime
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Timestamped vmstat every 1s for 20 samples." }, { "role": "assistant", "content": "vmstat -t 1 20" } ]
single
vmstat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the 10 largest subdirectories in templates." }, { "role": "assistant", "content": "du -h templates/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "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 request.py" }, { "role": "assistant", "content": "chmod 744 request.py" } ]
single
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How do I show the top 10 processes by memory?" }, { "role": "assistant", "content": "ps aux --sort=-%mem | head -n 11" } ]
pipeline
ps
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the 10 most common 'unauthorized'-related lines in gc.log." }, { "role": "assistant", "content": "grep 'unauthorized' gc.log | sort | uniq -c | sort -nr | head -n 10" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Filter netstat for connections to or from www.corp.net." }, { "role": "assistant", "content": "netstat -tn | grep www.corp.net" } ]
single
netstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write me a script that retries a git fetch from origin up to 4 times, sleeping 5s between attempts." }, { "role": "assistant", "content": "#!/us...
script
git
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "How many connections are there to port 8000?" }, { "role": "assistant", "content": "ss -tn | grep ':8000' | wc -l" } ]
pipeline
ss
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Report virtual memory statistics every 5 seconds, 10 times." }, { "role": "assistant", "content": "vmstat 5 10" } ]
single
vmstat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "From export.json, convert everything to uppercase." }, { "role": "assistant", "content": "cat export.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": "Extract just the email addresses from customer.json." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' customer...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count total lines across all .py files in cache." }, { "role": "assistant", "content": "find cache -type f -name '*.py' -print0 | xargs -0 cat | wc -l...
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write me a script that retries a curl to https://proxy.service.io/health up to 5 times with a 2-second backoff." }, { "role": "assistant", "content": ...
script
retry
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Lower the priority of process 7476 to nice value 10." }, { "role": "assistant", "content": "renice -n 10 -p 7476" } ]
single
renice
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Help me show the top 15 processes by memory." }, { "role": "assistant", "content": "ps aux --sort=-%mem | head -n 16" } ]
pipeline
ps
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Bump process 1231 to a higher priority (nice -5). Requires root." }, { "role": "assistant", "content": "sudo renice -n -5 -p 1231" } ]
single
renice
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List the 20 biggest files under tests." }, { "role": "assistant", "content": "find tests -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head -n 20" } ]
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Run vmstat with MB units every 2 seconds for 10 rounds." }, { "role": "assistant", "content": "vmstat -S M 2 10" } ]
single
vmstat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show all processes for the user svc-app." }, { "role": "assistant", "content": "ps -u svc-app" } ]
single
ps
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show all TCP sockets touching port 3000." }, { "role": "assistant", "content": "ss -tn 'sport = :3000 or dport = :3000'" } ]
single
ss
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Background 'rsync -a /data /mnt/backup' at nice level 15." }, { "role": "assistant", "content": "nice -n 15 rsync -a /data /mnt/backup &" } ]
single
nice
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "send a GET request to https://backup.corp.net/api and show the response headers" }, { "role": "assistant", "content": "curl -I https://backup.co...
single
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Give 'gzip huge.log' a boosted CPU priority of -10." }, { "role": "assistant", "content": "sudo nice -n -10 gzip huge.log" } ]
single
nice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Rank the values of column 3 in inventory.csv by frequency, highest first, top 20 only." }, { "role": "assistant", "content": "awk '{print $3}' in...
pipeline
awk
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Copy archive.txt to releases/ but keep the original timestamps and permissions." }, { "role": "assistant", "content": "cp -p archive.txt releases/" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show CPU and disk I/O statistics every 2 seconds." }, { "role": "assistant", "content": "iostat 2" } ]
single
iostat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the 10 largest subdirectories in /etc/apache2." }, { "role": "assistant", "content": "du -h /etc/apache2/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Recursively make everything in logs readable and writable by the owner only." }, { "role": "assistant", "content": "chmod -R 600 logs" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Recursively set owner and group of src to svc-app:deploy." }, { "role": "assistant", "content": "sudo chown -R svc-app:deploy src" } ]
single
chown
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "copy the whole config folder to config_copy recursively" }, { "role": "assistant", "content": "cp -r config config_copy" } ]
single
cp
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the systemd journal for the elasticsearch service." }, { "role": "assistant", "content": "journalctl -u elasticsearch" } ]
single
journalctl
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "gzip every .log file under /etc/nginx" }, { "role": "assistant", "content": "find /etc/nginx -type f -name '*.log' -print0 | xargs -0 gzip" } ]
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Sample iostat 10 times at 2-second intervals." }, { "role": "assistant", "content": "iostat 2 10" } ]
single
iostat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Monitor the sda device and its partitions with iostat every 2 seconds." }, { "role": "assistant", "content": "iostat -p sda 2" } ]
single
iostat
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "give me a human-readable long listing of docs" }, { "role": "assistant", "content": "ls -lh docs" } ]
single
ls
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Print the 4nd column of inventory.csv (whitespace separated)." }, { "role": "assistant", "content": "awk '{print $4}' inventory.csv" } ]
single
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Device-only I/O stats every 5 seconds." }, { "role": "assistant", "content": "iostat -d 5" } ]
single
iostat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "What's bound to port 53?" }, { "role": "assistant", "content": "lsof -i :53" } ]
single
lsof
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Extract just the email addresses from migration.txt." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' migration.txt | sort -u" }...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "download https://192.168.1.10/list.txt and count the lines" }, { "role": "assistant", "content": "curl -s https://192.168.1.10/list.txt | wc -l" } ]
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Extended iostat every 5s, hiding idle devices." }, { "role": "assistant", "content": "iostat -xz 5" } ]
single
iostat
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count how many files are in /srv/www." }, { "role": "assistant", "content": "ls -1 /srv/www | wc -l" } ]
pipeline
ls
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Help me count how many elasticsearch processes are running." }, { "role": "assistant", "content": "pgrep -c elasticsearch" } ]
pipeline
pgrep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How long has this box been running, in plain words?" }, { "role": "assistant", "content": "uptime -p" } ]
single
uptime
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Sample iostat 3 times at 10-second intervals." }, { "role": "assistant", "content": "iostat 10 3" } ]
single
iostat
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Download https://web01.internal/file.zip and save it with its remote name." }, { "role": "assistant", "content": "curl -O https://web01.internal...
single
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show what PID 1653 has open." }, { "role": "assistant", "content": "lsof -p 1653" } ]
single
lsof
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Parse command-line flags -p (port), -o (output) and -d (dir) using getopts and validate that -p is provided." }, { "role": "assistant", "content": "#!/usr/bin/env b...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Parse command-line flags -d (dir), -o (output) and -l (level) using getopts and validate that -d is provided." }, { "role": "assistant", "content...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the listener on port 15672." }, { "role": "assistant", "content": "ss -tlnp sport = :15672" } ]
single
ss
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "extract all the 'name' fields from https://cdn.corp.net/api/users" }, { "role": "assistant", "content": "curl -s https://cdn.corp.net/api/users ...
pipeline
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find all .old files under lib." }, { "role": "assistant", "content": "find lib -type f -name '*.old'" } ]
single
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Display the ancestors of process 1641 as a tree." }, { "role": "assistant", "content": "pstree -s 1641" } ]
single
pstree
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List connections using port 53 as source or destination." }, { "role": "assistant", "content": "ss -tn 'sport = :53 or dport = :53'" } ]
single
ss
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Start './import.sh' with nice value 10 so it doesn't hog the CPU." }, { "role": "assistant", "content": "nice -n 10 ./import.sh" } ]
single
nice
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Make main.py executable." }, { "role": "assistant", "content": "chmod +x main.py" } ]
single
chmod
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "From debug.txt, show the last 15 lines." }, { "role": "assistant", "content": "cat debug.txt | tail -n 15" } ]
pipeline
tail
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Run vmstat with MB units every 5 seconds for 3 rounds." }, { "role": "assistant", "content": "vmstat -S M 5 3" } ]
single
vmstat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Run 'dd if=/dev/zero of=test.img bs=1M count=1024' at higher priority (nice -10); needs root." }, { "role": "assistant", "content": "sudo nice -n -10 dd if=/dev/zero of=test.img bs=1M count=1024"...
single
nice
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find files in images owned by postgres." }, { "role": "assistant", "content": "find images -type f -user postgres" } ]
single
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find files in downloads larger than 1G." }, { "role": "assistant", "content": "find downloads -type f -size 1G" } ]
single
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create a script that parses -f (file), -n (count) and -v (verbose) options with getopts." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nverbose=0\nfile=\"\"\ncount...
script
getopts
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Run 'dd if=/dev/zero of=test.img bs=1M count=1024' at a lower priority (nice 19)." }, { "role": "assistant", "content": "nice -n 19 dd if=/dev/zero of=test.img bs=1M count=1024" } ]
single
nice