system stringclasses 1
value | user stringlengths 5 1.56k | assistant stringlengths 2 1.57k |
|---|---|---|
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Show the total uncompressed size of files in media.7z. | 7z l -ba "media.7z" | awk '{sum += $4} END {print sum}' |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | List files in data.7z and show only the file sizes in human-readable format. | 7z l -ba "data.7z" | awk '{print $4, $NF}' | numfmt --to=iec --field=1 |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Show the manual page for tar. | man tar |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | How do I read the man page for grep? | man grep |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | open man for rsync | man rsync |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Show the number of CPUs. | nproc |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | How many CPU cores does this machine have? | nproc |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | print cpu count | nproc |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use nice with -n 10 to run make with low priority. | nice -n 10 make |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Run make at nice level 10. | nice -n 10 make |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Start make with nice -n 10. | nice -n 10 make |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use ionice with -c 3 and -n 7 to run backup.sh at idle IO priority. | ionice -c 3 -n 7 "./backup.sh" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Run backup.sh with idle IO class and level 7. | ionice -c 3 -n 7 "./backup.sh" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Execute backup.sh under ionice idle class. | ionice -c 3 -n 7 "./backup.sh" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use env with -i and -u to run printenv with a clean env minus HOME. | env -i -u HOME printenv |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Run printenv with an empty environment except removing HOME. | env -i -u HOME printenv |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use env -i -u HOME to invoke printenv cleanly. | env -i -u HOME printenv |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use mapfile with -d '' to load NUL-separated items from list.bin into an array. | mapfile -d '' -t items < "list.bin" && printf '%s\n' "${items[@]}" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Load NUL-delimited list.bin into a bash array with mapfile. | mapfile -d '' -t items < "list.bin" && printf '%s\n' "${items[@]}" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use mapfile -d '' -t to read list.bin into items array. | mapfile -d '' -t items < "list.bin" && printf '%s\n' "${items[@]}" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use shopt -s globstar and nullglob to list all .log files recursively. | shopt -s globstar nullglob
for f in ./**/*.log; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Recursively list .log files using globstar and nullglob. | shopt -s globstar nullglob
for f in ./**/*.log; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Enable globstar and nullglob then iterate all .log files. | shopt -s globstar nullglob
for f in ./**/*.log; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use printf with -v to assign formatted text to a variable. | printf -v msg '%s-%s' 'app' '01'
printf '%s\n' "$msg" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Assign a formatted string to msg using printf -v. | printf -v msg '%s-%s' 'app' '01'
printf '%s\n' "$msg" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use printf -v to build a variable from two parts. | printf -v msg '%s-%s' 'app' '01'
printf '%s\n' "$msg" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use ulimit with -n to show the open file descriptor limit. | ulimit -n |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Print the max open files ulimit. | ulimit -n |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Show the file descriptor soft limit via ulimit -n. | ulimit -n |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use command with -v to check if 'git' is available. | command -v git >/dev/null 2>&1 && echo 'git found' || echo 'git missing' |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Check for git using command -v. | command -v git >/dev/null 2>&1 && echo 'git found' || echo 'git missing' |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use command -v git to test availability. | command -v git >/dev/null 2>&1 && echo 'git found' || echo 'git missing' |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use hash with -t to show the path of the cached 'ls' command. | hash -t ls |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Show the hashed path for ls using hash -t. | hash -t ls |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use hash -t ls to print the cached location. | hash -t ls |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use shopt with -s lastpipe to run the last pipeline stage in the current shell. | shopt -s lastpipe
echo 'a b' | read -r x y
printf '%s %s\n' "$x" "$y" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Enable lastpipe so read in a pipeline sets variables. | shopt -s lastpipe
echo 'a b' | read -r x y
printf '%s %s\n' "$x" "$y" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use shopt -s lastpipe to make the final pipe stage run in current shell. | shopt -s lastpipe
echo 'a b' | read -r x y
printf '%s %s\n' "$x" "$y" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use shopt with -s failglob to error on unmatched globs. | shopt -s failglob
for f in ./*.nomatch; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Enable failglob so unmatched patterns cause an error. | shopt -s failglob
for f in ./*.nomatch; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use shopt -s failglob before a glob loop. | shopt -s failglob
for f in ./*.nomatch; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use shopt with -s dotglob to include hidden files in globs. | shopt -s dotglob nullglob
for f in ./*; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Include dotfiles in a glob loop using dotglob. | shopt -s dotglob nullglob
for f in ./*; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use shopt -s dotglob nullglob then iterate ./*. | shopt -s dotglob nullglob
for f in ./*; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use shopt with -s nocaseglob to match files case-insensitively. | shopt -s nocaseglob nullglob
for f in ./*.TXT; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Match *.TXT case-insensitively using nocaseglob. | shopt -s nocaseglob nullglob
for f in ./*.TXT; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use shopt -s nocaseglob for case-insensitive globbing. | shopt -s nocaseglob nullglob
for f in ./*.TXT; do printf '%s\n' "$f"; done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use shopt with -s extdebug to enable function tracing. | shopt -s extdebug
trap 'echo "trap: $BASH_COMMAND"' DEBUG
echo 'hi'
shopt -u extdebug |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Enable extdebug and a DEBUG trap to trace commands. | shopt -s extdebug
trap 'echo "trap: $BASH_COMMAND"' DEBUG
echo 'hi'
shopt -u extdebug |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use shopt -s extdebug with a DEBUG trap. | shopt -s extdebug
trap 'echo "trap: $BASH_COMMAND"' DEBUG
echo 'hi'
shopt -u extdebug |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use compgen with -c to list all commands starting with 'git'. | compgen -c git | sort -u |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | List commands beginning with git using compgen -c. | compgen -c git | sort -u |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use compgen -c git to enumerate git* commands. | compgen -c git | sort -u |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use compgen with -A function to list defined shell functions. | compgen -A function | sort |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | List all shell function names with compgen -A function. | compgen -A function | sort |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use compgen -A function to enumerate functions. | compgen -A function | sort |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use complete with -p to print current completion specs. | complete -p |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Show all registered bash completion specs. | complete -p |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use complete -p to list completion definitions. | complete -p |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use fc with -l and -n to list recent history without numbers. | fc -ln -10 |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | List the last 10 history commands without line numbers using fc. | fc -ln -10 |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use fc -ln -10 to show recent commands unnumbered. | fc -ln -10 |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Show the dir stack with indices using dirs -v. | pushd /tmp >/dev/null
pushd /var >/dev/null
dirs -v
popd >/dev/null
popd >/dev/null |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use dirs -v after pushing /tmp and /var. | pushd /tmp >/dev/null
pushd /var >/dev/null
dirs -v
popd >/dev/null
popd >/dev/null |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use pushd with -n to add a dir to the stack without changing cwd. | pushd -n /tmp >/dev/null
dirs -v
popd >/dev/null |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Add /tmp to the dir stack without cd using pushd -n. | pushd -n /tmp >/dev/null
dirs -v
popd >/dev/null |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use pushd -n /tmp to push without switching directory. | pushd -n /tmp >/dev/null
dirs -v
popd >/dev/null |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use a while loop to retry a command up to 3 times until it succeeds. | n=0
until some_command; do
n=$((n + 1))
[ "$n" -ge 3 ] && break
done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | How do I retry a failing command a few times in bash? | n=0
until some_command; do
n=$((n + 1))
[ "$n" -ge 3 ] && break
done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Give me a retry loop with a max attempt count. | n=0
until some_command; do
n=$((n + 1))
[ "$n" -ge 3 ] && break
done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Run an R script and limit memory usage with ulimit. | ulimit -v 2000000 && Rscript script.R |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Execute an R script with a memory cap. | ulimit -v 2000000 && Rscript script.R |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | How do I run an R script and notify on completion? | Rscript script.R && notify-send "R script done" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Run an R script and send a desktop notification when finished. | Rscript script.R && notify-send "R script done" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Run an R script and split output into chunks of 1000 lines. | Rscript script.R | split -l 1000 - output_part_ |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | How to run an R script and split its output into files? | Rscript script.R | split -l 1000 - output_part_ |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Run heavy.R with Rscript using nice priority 10. | nice -n 10 Rscript heavy.R |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Execute heavy.R via Rscript at lower scheduling priority. | nice -n 10 Rscript heavy.R |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Start heavy.R with Rscript under nice -n 10. | nice -n 10 Rscript heavy.R |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Run script.R with Rscript and pass the number of CPUs as an argument. | Rscript script.R "$(nproc)" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Execute script.R via Rscript with nproc as its argument. | Rscript script.R "$(nproc)" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Rscript script.R, argument being the CPU count. | Rscript script.R "$(nproc)" |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Run Rscript d.R and split its output into 100-line chunks named chunk_aa, chunk_ab, etc. | Rscript d.R | split -l 100 - chunk_ |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Split d.R output into 100-line files with prefix chunk_. | Rscript d.R | split -l 100 - chunk_ |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Execute d.R with Rscript and split the stream every 100 lines into chunk_* files. | Rscript d.R | split -l 100 - chunk_ |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Show the manual page for the ls command. | man ls |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | open the man page for ls | man ls |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | how do I read the manual for ls | man ls |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Show a short description of the tar command. | whatis tar |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | one-line summary of tar | whatis tar |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | what does tar do briefly | whatis tar |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Check if a command exists, exit 127 if not. | if ! command -v jq >/dev/null 2>&1; then
echo "jq not found" >&2
exit 127
fi |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Exit with code 1 if a command is not found. | if ! command -v nonexistentcmd >/dev/null 2>&1; then
echo "not found" >&2
exit 1
fi |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Exit with code 1 if a file is not a regular file with a specific extended attribute. | f="/etc/hosts"
if [[ ! -f "$f" || -z "$(getfattr -d -- "$f" 2>/dev/null)" ]]; then
echo "no xattr: $f" >&2
exit 1
fi |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Check the sudoers file syntax with visudo in check mode. | sudo visudo -c |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Validate /etc/sudoers without editing it, using root. | sudo visudo -c |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Use sudo visudo -c to verify sudoers syntax. | sudo visudo -c |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | sum up wc -l for all *.conf under /etc ignoring unreadable ones | sum up wc -l for all *.conf under /etc ignoring unreadable ones find /etc -type f -name '*.conf' -readable -print0 | xargs -0 wc -l | awk 'END{print "TOTAL", $1}' |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | Retry a command up to 5 times until it succeeds, sleeping 2 seconds between attempts. | n=0
until "$@" || (( n >= 5 )); do
n=$(( n + 1 ))
sleep 2
done |
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or ma... | write a retry loop: run command, max 5 tries, 2s sleep between | n=0
until "$@" || (( n >= 5 )); do
n=$(( n + 1 ))
sleep 2
done |
Natural Language to Bash
A dataset of 320,838 English instructions paired with a correct bash command or short shell script that does what the instruction asks. It is meant for fine-tuning or evaluating models that turn natural-language requests into Linux shell commands.
Dataset structure
train.json is a single JSON array. Every record has three string fields:
| Field | Description |
|---|---|
system |
System prompt for the task. It is the same in every record. |
user |
The natural-language request. |
assistant |
The target bash command or script, with no markdown or explanation. |
Example
{
"system": "You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command ...",
"user": "Show the total uncompressed size of files in media.7z.",
"assistant": "7z l -ba \"media.7z\" | awk '{sum += $4} END {print sum}'"
}
More samples:
| user | assistant |
|---|---|
| Show the ctr help for the content command. | ctr content --help |
| Run stress with two CPU workers for a minute, using a backoff of 1000000. | stress --cpu 2 --timeout 60 --backoff 1000000 |
| cd into /srv/kvm/images and show the virtual size lines for up to four qcow2 images. | cd -- /srv/kvm/images && qemu-img info -- *.qcow2 2>/dev/null | grep 'virtual size' | head -n 4 |
Some targets are multi-line scripts that use loops, conditionals and error handling.
System prompt
You are an expert Linux shell assistant. Convert the user's natural-language request into a single, correct bash command that accomplishes it. Prefer standard, widely available tools and POSIX-compatible syntax. Quote file names and paths that may contain spaces. Respond with only the command, with no explanation or markdown formatting, unless the request is ambiguous, in which case give the most common interpretation.
Statistics
| Metric | Value |
|---|---|
| Examples | 320,838 |
| Split | train only |
Duplicate user prompts |
0 |
Mean user length |
~60 characters |
Mean assistant length |
~64 characters |
| Distinct leading commands | 941 |
Examples per command
Each example is counted under its leading command: the first token of assistant, after skipping sudo, env, time, nohup, command, VAR=value assignments and leading (, {, ! or $. Shell keywords such as for, while and if are counted as their own entries. Tokens that are not plain command names are grouped under (other). A pipeline is counted only under its first command, so tools that usually come later in a pipe (grep, awk, sort, ...) are undercounted.
Top 25
| Command | Examples |
|---|---|
for |
9,763 |
(other) |
8,365 |
printf |
5,223 |
find |
4,315 |
lsof |
3,074 |
while |
2,983 |
shopt |
2,863 |
man |
2,589 |
echo |
2,165 |
certbot |
2,119 |
docker |
1,959 |
mkdir |
1,841 |
aws |
1,823 |
ansible-playbook |
1,778 |
lxc |
1,727 |
mc |
1,700 |
chronyc |
1,627 |
semanage |
1,585 |
rclone |
1,573 |
mapfile |
1,552 |
git |
1,551 |
sync |
1,528 |
numfmt |
1,494 |
virsh |
1,480 |
stty |
1,468 |
Full list (941 commands)
| Command | Examples |
|---|---|
for |
9,763 |
(other) |
8,365 |
printf |
5,223 |
find |
4,315 |
lsof |
3,074 |
while |
2,983 |
shopt |
2,863 |
man |
2,589 |
echo |
2,165 |
certbot |
2,119 |
docker |
1,959 |
mkdir |
1,841 |
aws |
1,823 |
ansible-playbook |
1,778 |
lxc |
1,727 |
mc |
1,700 |
chronyc |
1,627 |
semanage |
1,585 |
rclone |
1,573 |
mapfile |
1,552 |
git |
1,551 |
sync |
1,528 |
numfmt |
1,494 |
virsh |
1,480 |
stty |
1,468 |
csvcut |
1,440 |
pr |
1,414 |
redis-cli |
1,407 |
errno |
1,377 |
vagrant |
1,356 |
chage |
1,351 |
unshare |
1,351 |
ssh-add |
1,344 |
csvgrep |
1,319 |
tune2fs |
1,300 |
podman |
1,291 |
systemd-run |
1,274 |
vnstat |
1,266 |
timeout |
1,254 |
hg |
1,248 |
mosh |
1,243 |
g++ |
1,242 |
apropos |
1,228 |
pg_dump |
1,227 |
sg |
1,213 |
terraform |
1,187 |
setenforce |
1,161 |
pinky |
1,154 |
eza |
1,151 |
showmount |
1,149 |
atq |
1,148 |
csvlook |
1,145 |
clang |
1,144 |
az |
1,133 |
pup |
1,127 |
gcloud |
1,126 |
debugfs |
1,125 |
parallel |
1,120 |
byobu |
1,119 |
objdump |
1,114 |
psql |
1,108 |
aa-status |
1,104 |
lftp |
1,101 |
iperf3 |
1,099 |
xsv |
1,097 |
coredumpctl |
1,084 |
nmcli |
1,083 |
compgen |
1,078 |
readonly |
1,077 |
optipng |
1,067 |
wg |
1,063 |
minikube |
1,061 |
xfs_growfs |
1,061 |
mysqldump |
1,056 |
until |
1,055 |
lvcreate |
1,055 |
if |
1,052 |
mmv |
1,052 |
vgcreate |
1,049 |
atrm |
1,045 |
gsutil |
1,044 |
wl-paste |
1,041 |
vgs |
1,037 |
mysql |
1,034 |
qsv |
1,034 |
pvs |
1,027 |
gh |
1,025 |
pg_restore |
1,025 |
nm |
1,018 |
ninja |
1,017 |
lvextend |
1,005 |
diffstat |
1,002 |
hwinfo |
998 |
gron |
985 |
mlr |
978 |
update-grub |
978 |
http |
961 |
insmod |
951 |
datamash |
950 |
pre-commit |
950 |
xmlstarlet |
947 |
eval |
946 |
fdupes |
945 |
htpasswd |
944 |
restorecon |
938 |
machinectl |
935 |
helm |
935 |
pkg-config |
933 |
nvme |
932 |
nsenter |
931 |
inotifywait |
926 |
mongosh |
926 |
svn |
924 |
nft |
924 |
readarray |
919 |
sysbench |
918 |
mkfifo |
915 |
buildah |
913 |
lp |
913 |
e2fsck |
910 |
finger |
902 |
loadkeys |
902 |
ansible |
893 |
ngrep |
888 |
firewall-cmd |
886 |
chroot |
885 |
cmake |
885 |
htmlq |
877 |
sd |
871 |
sqlite3 |
862 |
aria2c |
859 |
crictl |
843 |
figlet |
840 |
clear |
839 |
split |
835 |
telnet |
835 |
watchexec |
835 |
nerdctl |
834 |
gifsicle |
833 |
lsd |
831 |
iw |
829 |
units |
829 |
nload |
827 |
anacron |
823 |
visudo |
821 |
ethtool |
819 |
powertop |
819 |
tailscale |
815 |
loginctl |
812 |
lynis |
808 |
auditctl |
806 |
sdiff |
806 |
glances |
802 |
ausearch |
801 |
yt-dlp |
801 |
readelf |
799 |
zpool |
795 |
builtin |
787 |
systemd-analyze |
785 |
notify-send |
782 |
csvsql |
781 |
chcon |
777 |
cksum |
767 |
skopeo |
766 |
tldr |
766 |
identify |
760 |
hwclock |
755 |
ntpdate |
749 |
iftop |
745 |
pwgen |
738 |
openvpn |
737 |
networkctl |
735 |
look |
728 |
clamscan |
723 |
sfdisk |
717 |
exportfs |
716 |
nethogs |
710 |
qpdf |
710 |
chronic |
709 |
wpa_cli |
707 |
zoxide |
705 |
runcon |
704 |
brctl |
703 |
grpck |
703 |
k9s |
703 |
jpegoptim |
701 |
setfattr |
697 |
shfmt |
697 |
cowsay |
692 |
enscript |
691 |
mogrify |
691 |
reset |
690 |
xdotool |
690 |
cloc |
688 |
nnn |
687 |
resolvectl |
685 |
perl |
684 |
dstat |
684 |
systemd-resolve |
681 |
sox |
680 |
autossh |
676 |
btrfs |
675 |
qemu-img |
675 |
tokei |
672 |
ctr |
671 |
cd |
669 |
axel |
668 |
ranger |
667 |
users |
666 |
mongodump |
665 |
diff3 |
663 |
pulumi |
662 |
systemctl |
659 |
truncate |
654 |
chkrootkit |
654 |
zfs |
652 |
doctl |
649 |
whois |
649 |
whatis |
643 |
a2ps |
641 |
colrm |
636 |
shellcheck |
635 |
cat |
634 |
aureport |
633 |
smbclient |
632 |
xh |
629 |
autoconf |
627 |
ctags |
626 |
turbostat |
626 |
mpv |
623 |
colordiff |
621 |
qemu-system-x86_64 |
616 |
cpupower |
615 |
pdfinfo |
614 |
atop |
609 |
ruby |
608 |
arp |
602 |
systemd-nspawn |
602 |
grub-install |
600 |
pwck |
600 |
sshfs |
600 |
route |
597 |
zdump |
596 |
systemd-tmpfiles |
590 |
numactl |
587 |
broot |
579 |
rkhunter |
579 |
ssh-keyscan |
576 |
b2sum |
575 |
update-alternatives |
573 |
fallocate |
572 |
bmon |
568 |
busctl |
565 |
stdbuf |
561 |
ftp |
560 |
mknod |
557 |
ptx |
555 |
ul |
555 |
resize2fs |
552 |
lastb |
551 |
kpartx |
549 |
quota |
539 |
getfattr |
536 |
faillock |
534 |
gs |
532 |
awk |
529 |
kind |
529 |
tesseract |
527 |
photorec |
524 |
avahi-browse |
521 |
mkpasswd |
516 |
seq |
511 |
badblocks |
509 |
dircolors |
507 |
efibootmgr |
507 |
pdfseparate |
505 |
vimdiff |
499 |
upower |
499 |
keytool |
491 |
wall |
487 |
execsnoop |
486 |
arping |
484 |
ssh-audit |
482 |
tput |
481 |
fio |
477 |
pushd |
473 |
opensnoop |
466 |
factor |
464 |
unlink |
458 |
lvs |
452 |
tsort |
447 |
jdupes |
444 |
ar |
442 |
fail2ban-client |
438 |
pvcreate |
436 |
tig |
436 |
zellij |
436 |
lazygit |
435 |
getenforce |
431 |
slabtop |
431 |
blkdiscard |
429 |
sha512sum |
425 |
nmon |
424 |
acpi |
416 |
lsinitramfs |
416 |
lpr |
407 |
dirs |
405 |
scriptreplay |
403 |
vmtouch |
402 |
stress |
399 |
rdfind |
395 |
libreoffice |
392 |
sort |
391 |
ls |
389 |
testdisk |
388 |
ffprobe |
387 |
bpftrace |
386 |
iwconfig |
385 |
ld |
372 |
xrandr |
363 |
isutf8 |
353 |
setxkbmap |
340 |
ifne |
336 |
virt-install |
328 |
age |
323 |
delta |
319 |
in2csv |
319 |
fc |
314 |
lpstat |
309 |
pass |
305 |
bootctl |
304 |
grep |
298 |
rfkill |
298 |
addr2line |
285 |
wdiff |
284 |
gcc |
281 |
from |
279 |
diff |
264 |
logname |
262 |
vipe |
255 |
mesg |
250 |
xclip |
246 |
ddrescue |
232 |
xdg-open |
231 |
nmtui |
223 |
unalias |
220 |
col |
208 |
ts |
208 |
debuild |
207 |
grim |
202 |
set |
193 |
strip |
192 |
virt-clone |
186 |
edquota |
171 |
timedatectl |
168 |
sysctl |
158 |
bash |
158 |
maim |
155 |
lsmod |
145 |
pdfunite |
141 |
trap |
139 |
nice |
137 |
arecord |
136 |
mount |
135 |
vigr |
135 |
comm |
134 |
cut |
134 |
ionice |
125 |
tzselect |
125 |
hostid |
124 |
printenv |
121 |
ulimit |
119 |
ltrace |
113 |
swapon |
111 |
gdb |
110 |
taskset |
109 |
modinfo |
105 |
cp |
104 |
select |
104 |
wl-copy |
104 |
case |
103 |
bridge |
103 |
gzip |
102 |
pstree |
102 |
perf |
101 |
read |
100 |
distcc |
99 |
fusermount |
99 |
prlimit |
98 |
inxi |
96 |
dmidecode |
95 |
pidstat |
95 |
valgrind |
94 |
localectl |
94 |
nvidia-smi |
93 |
fg |
93 |
mdadm |
93 |
losetup |
93 |
uptime |
92 |
base64 |
91 |
lshw |
91 |
tshark |
90 |
hyperfine |
90 |
sed |
89 |
tr |
87 |
nroff |
87 |
sftp |
87 |
date |
85 |
arch |
84 |
declare |
84 |
expand |
84 |
tracepath |
84 |
uname |
83 |
poetry |
83 |
mpstat |
82 |
getconf |
81 |
pmap |
81 |
modprobe |
80 |
ssh-agent |
79 |
gdisk |
78 |
xelatex |
78 |
xsel |
78 |
head |
77 |
sensors |
77 |
duf |
77 |
cryptsetup |
75 |
dust |
72 |
ldconfig |
72 |
vipw |
72 |
. |
71 |
ldd |
71 |
mkfs.ext4 |
69 |
export |
67 |
kubectl |
67 |
runuser |
67 |
vidir |
67 |
exec |
66 |
sar |
66 |
hashcat |
66 |
wipefs |
66 |
tail |
65 |
iotop |
65 |
chrt |
64 |
zip |
64 |
paste |
63 |
envsubst |
63 |
smartctl |
62 |
getent |
60 |
dig |
60 |
stress-ng |
60 |
lastlog |
58 |
uudecode |
58 |
fstrim |
57 |
udevadm |
57 |
adduser |
54 |
coproc |
54 |
sgdisk |
54 |
nproc |
52 |
at |
52 |
deluser |
51 |
ccache |
48 |
ntfsfix |
48 |
df |
47 |
stat |
47 |
wc |
47 |
base32 |
46 |
free |
46 |
hdparm |
45 |
tty |
42 |
tar |
40 |
airmon-ng |
39 |
socat |
39 |
hostapd |
39 |
GET |
39 |
swapoff |
39 |
python3 |
38 |
rm |
37 |
nl |
37 |
1 |
36 |
newgrp |
36 |
pgrep |
34 |
ps |
34 |
hck |
34 |
renew |
33 |
du |
33 |
mkswap |
33 |
zgrep |
33 |
sleep |
32 |
source |
32 |
help |
31 |
dotnet |
30 |
pathchk |
30 |
umount |
30 |
hash |
29 |
ln |
28 |
pwd |
28 |
xargs |
27 |
dd |
27 |
jq |
25 |
umask |
25 |
unexpand |
25 |
lsblk |
24 |
fold |
24 |
ncat |
24 |
blkid |
23 |
tac |
23 |
ip |
22 |
bzip2 |
21 |
quiet |
21 |
mariadb-dump |
21 |
navi |
21 |
ss |
20 |
id |
20 |
sha256sum |
20 |
pv |
19 |
findmnt |
19 |
some_command |
19 |
pkill |
18 |
box64 |
18 |
btop |
18 |
bun |
18 |
file |
18 |
go |
18 |
shuf |
18 |
error |
18 |
flashrom |
18 |
make |
18 |
pee |
18 |
rs |
18 |
unset |
18 |
query |
18 |
b |
17 |
md5sum |
17 |
ssh |
17 |
gunzip |
17 |
curl |
16 |
join |
16 |
logger |
16 |
yes |
16 |
uuencode |
16 |
0 |
15 |
type |
15 |
chef-client |
15 |
php |
15 |
guestfish |
15 |
kdialog |
15 |
mutool |
15 |
xz |
15 |
rsync |
15 |
popd |
15 |
unconfined_t |
15 |
systemd-detect-virt |
15 |
kv |
15 |
column |
14 |
csplit |
14 |
iconv |
14 |
wget |
14 |
two |
13 |
rev |
13 |
whoami |
13 |
cmp |
13 |
kotlin |
13 |
kubectx |
13 |
pavucontrol |
13 |
beta |
13 |
info |
13 |
yq |
13 |
list-timers |
12 |
od |
12 |
5 |
12 |
nix-store |
12 |
npx |
12 |
rmmod |
12 |
websocat |
12 |
complete |
11 |
fmt |
11 |
uniq |
11 |
Rscript |
10 |
2 |
10 |
script |
10 |
history |
10 |
who |
10 |
journalctl |
10 |
parted |
10 |
ssh-keygen |
10 |
dumpcap |
10 |
15 |
9 |
bunzip2 |
9 |
chattr |
9 |
zcat |
9 |
show |
9 |
enable |
9 |
dasel |
9 |
ffmpeg |
9 |
gawk |
9 |
goaccess |
9 |
groff |
9 |
heif-convert |
9 |
hostname |
9 |
dev |
9 |
java |
9 |
killall |
9 |
ncdu |
9 |
node |
9 |
python |
9 |
postqueue |
9 |
postfix |
9 |
count |
9 |
INFO |
9 |
80 |
9 |
service |
9 |
data.bin |
9 |
checksums.sha512 |
9 |
inspect |
9 |
example.com |
9 |
ed25519 |
9 |
unzip |
9 |
maintenance |
9 |
watch |
9 |
wine |
9 |
4 |
8 |
blockdev |
8 |
cloudflared |
8 |
netstat |
8 |
which |
8 |
lscpu |
8 |
lsusb |
8 |
lspci |
8 |
w |
8 |
readlink |
8 |
mdbook |
8 |
NAME |
8 |
node_exporter |
8 |
openssl |
8 |
scrot |
8 |
sum |
7 |
test |
7 |
dialog |
7 |
compose |
7 |
iostat |
7 |
stack |
7 |
output |
7 |
ping |
7 |
dmesg |
7 |
all |
6 |
apg |
6 |
job |
6 |
s3 |
6 |
.src |
6 |
bandwhich |
6 |
calcurse |
6 |
f |
6 |
jobs |
6 |
last |
6 |
times |
6 |
config.json |
6 |
bob |
6 |
deno |
6 |
dirname |
6 |
dumpe2fs |
6 |
SOURCE |
6 |
27 |
6 |
TARGET |
6 |
api |
6 |
gpasswd |
6 |
import |
6 |
inkscape |
6 |
list-sessions |
6 |
passwd |
6 |
mkdocs |
6 |
wlan0 |
6 |
cc |
6 |
zlib |
6 |
search |
6 |
SET |
6 |
rsnapshot |
6 |
rustc |
6 |
nullglob |
6 |
slurp |
6 |
useradd |
6 |
strings |
6 |
virt-manager |
6 |
is |
6 |
state |
6 |
z |
6 |
touch |
5 |
alias |
5 |
groups |
5 |
Compress |
5 |
litecli |
5 |
siege |
5 |
su |
5 |
fuck |
5 |
uv |
5 |
nslookup |
5 |
tree |
5 |
xxd |
5 |
20 |
4 |
on |
4 |
cargo |
4 |
whereis |
4 |
true |
4 |
filebeat |
4 |
run |
4 |
gpg |
4 |
realpath |
4 |
sestatus |
4 |
task |
4 |
vmstat |
4 |
traceroute |
4 |
HOME |
3 |
addgroup |
3 |
aplay |
3 |
asciidoctor |
3 |
tomorrow |
3 |
2024-06-01 |
3 |
atuin |
3 |
aclocal |
3 |
8443 |
3 |
sts |
3 |
256 |
3 |
512 |
3 |
basenc |
3 |
bibtex |
3 |
TYPE |
3 |
mv |
3 |
x509 |
3 |
jack |
3 |
kate |
3 |
leo |
3 |
mia |
3 |
nina |
3 |
omar |
3 |
paul |
3 |
quinn |
3 |
rita |
3 |
sam |
3 |
tina |
3 |
uma |
3 |
vic |
3 |
yesterday |
3 |
chown |
3 |
tracking |
3 |
apt |
3 |
gem |
3 |
bundle |
3 |
stop |
3 |
convert |
3 |
alerts.json |
3 |
web2 |
3 |
2024-01-02 |
3 |
eu |
3 |
443 |
3 |
b.csv |
3 |
worker |
3 |
push |
3 |
dpkg-reconfigure |
3 |
dwebp |
3 |
e2label |
3 |
PKNAME |
3 |
entr |
3 |
LANG |
3 |
erl |
3 |
suspend |
3 |
getopts |
3 |
143 |
3 |
11 |
3 |
backups-2024 |
3 |
fsck |
3 |
fzf |
3 |
web1 |
3 |
release |
3 |
ghc |
3 |
lfs |
3 |
gitleaks |
3 |
hexyl |
3 |
httpd |
3 |
10.6.6.6 |
3 |
wlan1 |
3 |
jo |
3 |
prio |
3 |
status |
3 |
memory |
3 |
vg_free_count |
3 |
tmp |
3 |
makepkg |
3 |
mcfly |
3 |
sudo |
3 |
mkfs.btrfs |
3 |
40 |
3 |
19 |
3 |
12 |
3 |
16 |
3 |
s2 |
3 |
128 |
3 |
filename |
3 |
mysqladmin |
3 |
nginx |
3 |
ngrok |
3 |
clean |
3 |
build |
3 |
SSID |
3 |
WIFI |
3 |
connection |
3 |
setsid |
3 |
2222 |
3 |
4444 |
3 |
17018 |
3 |
21022 |
3 |
25026 |
3 |
35036 |
3 |
2048 |
3 |
b.pdf |
3 |
createdb |
3 |
dropdb |
3 |
map |
3 |
shift |
3 |
gio-2.0 |
3 |
y |
3 |
30 |
3 |
1a |
3 |
csvstat |
3 |
prometheus |
3 |
rbenv |
3 |
get |
3 |
LLEN |
3 |
STRLEN |
3 |
ZCARD |
3 |
renice |
3 |
growpart |
3 |
mountpoint |
3 |
restic |
3 |
sad |
3 |
sbt |
3 |
a |
3 |
3 |
3 |
nobody |
3 |
cron |
3 |
8.8.8.8 |
3 |
nfs01 |
3 |
shred |
3 |
with |
3 |
hs.example.com |
3 |
rsa |
3 |
starship |
3 |
stern |
3 |
supervisorctl |
3 |
nginx.service |
3 |
plan |
3 |
version |
3 |
texi2any |
3 |
tmuxinator |
3 |
toilet |
3 |
basename |
3 |
unxz |
3 |
usermod |
3 |
vg_name |
3 |
rg |
3 |
kill |
3 |
usage |
3 |
down |
3 |
cleanup |
3 |
reboot |
3 |
in |
3 |
restart |
3 |
pid |
3 |
list-units |
3 |
example.org |
3 |
nmap |
3 |
sha1sum |
3 |
xdg-settings |
3 |
xmllint |
3 |
2560 |
3 |
zstd |
3 |
7z |
2 |
chgrp |
2 |
jobs.json |
2 |
nonexistentcmd |
2 |
fortune |
2 |
remote |
2 |
Use |
2 |
Copy-optimize |
2 |
group |
2 |
ocrmypdf |
2 |
packer |
2 |
s3cmd |
2 |
scp |
2 |
sphinx-build |
2 |
sponge |
2 |
updatedb |
2 |
locate |
2 |
crontab |
2 |
fd |
2 |
cal |
2 |
locale |
2 |
bind |
2 |
port |
2 |
hexdump |
2 |
zbarimg |
2 |
aircrack-ng |
1 |
bat |
1 |
henry |
1 |
ivy |
1 |
Add |
1 |
Permanently |
1 |
glow |
1 |
rand |
1 |
I |
1 |
kustomize |
1 |
lnav |
1 |
shadow |
1 |
60002 |
1 |
nmtui-edit |
1 |
playerctl |
1 |
rdiff-backup |
1 |
scons |
1 |
sk |
1 |
vg_size |
1 |
vg_attr |
1 |
zipinfo |
1 |
disown |
1 |
let |
1 |
exit |
1 |
sudoers |
1 |
pytest |
1 |
csvtool |
1 |
pandoc |
1 |
markdown |
1 |
pdflatex |
1 |
aspell |
1 |
mktemp |
1 |
uuidgen |
1 |
top |
1 |
host |
1 |
ag |
1 |
fdisk |
1 |
hostnamectl |
1 |
systemd-cgls |
1 |
systemd-cgtop |
1 |
pidof |
1 |
tee |
1 |
Usage
from datasets import load_dataset
ds = load_dataset("srikarxyz/nl2bash_v1", split="train")
def to_messages(ex):
return {"messages": [
{"role": "system", "content": ex["system"]},
{"role": "user", "content": ex["user"]},
{"role": "assistant", "content": ex["assistant"]},
]}
ds = ds.map(to_messages)
Limitations
- Commands are not guaranteed to have been run. Some need specific tools, services, privileges or files.
- Many examples change the system (
rm,mkfs,iptables,sudo ...). Do not run generated commands without reviewing them. - The commands target GNU/Linux. Flags may be different on macOS/BSD or BusyBox.
- Instructions are English only.
License
MIT.
Citation
@misc{nl2bash_dataset,
title = {Natural Language to Bash},
year = {2026},
howpublished = {\url{https://huggingface.co/datasets/srikarxyz/nl2bash_v1}}
}
- Downloads last month
- 32