messages listlengths 2 2 | source stringclasses 1
value | intent_type stringclasses 8
values | entities dict |
|---|---|---|---|
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files and replace \"<text>\" with \"<new-text>\" in each file."
},
{
"role": "assistant",
"content": "find -type f -name '*' | xargs -I fn sed -i 's/<text>/<new-text>/g' fn"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files and set their permissions to 644."
},
{
"role": "assistant",
"content": "find . -type f -exec chmod 644 \"{}\" +"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files in the current directory and its subdirectories, print their names, and sort them by their last modified date in descending order."
},
{
"role": "assistant",
"content": "find . -name '*.*' -print0 | xargs -... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\ncreate directory saxon_docs"
},
{
"role": "assistant",
"content": "mkdir saxon_docs"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind the directory located two levels above the current user's directory, then within that directory find a file with a randomly generated number between 0 and 9, and delete it."
},
{
"role": "assistant",
"content": "find... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nStart the built-in HTTP server on port 8000 in the current directory"
},
{
"role": "assistant",
"content": "python -m http.server"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files with the extension \".php\" in the current directory and its subdirectories, and count the number of occurrences of the string \"$string\" in each file."
},
{
"role": "assistant",
"content": "find . -iname ... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nShow a specific environment variable"
},
{
"role": "assistant",
"content": "go env GOPATH"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nContinuously send \"y\" as input to \"cat\" which outputs to \"more\""
},
{
"role": "assistant",
"content": "yes | cat | more"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files with the extension \".mp3\" in the \"/home\" directory and delete them permanently."
},
{
"role": "assistant",
"content": "find /home -name \"*.mp3\" | xargs rm -f"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSend an HTTP request to the website http://www.example.com and print the first word of the response."
},
{
"role": "assistant",
"content": "curl -I http://www.example.com | awk '{print $1}'"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files with the extension .sh, compress each of them into a .tar.gz file, and name the compressed file with the same name as the original file."
},
{
"role": "assistant",
"content": "find . -name *.sh | xargs -I '... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\ncreate directory .hiddendir"
},
{
"role": "assistant",
"content": "mkdir .hiddendir"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nInstall a package into a new ostree deployment and reboot into it"
},
{
"role": "assistant",
"content": "rpm-ostree install package --reboot"
}
] | command-dataset-linux-bash | install_package | {
"package": "package",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all php files that belong to user 'takuya' and have been modified in the last 1 day"
},
{
"role": "assistant",
"content": "find -user takuya -name '*.php' -daystart -mtime -1"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": "php",
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nchange the extension of all the files in the current folder to html excluding those html files and those which are present in another disk partition"
},
{
"role": "assistant",
"content": "find . -xtype f ! -iname *.html ... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nPrevent Atom from forking into the background, keeping Atom attached to the terminal"
},
{
"role": "assistant",
"content": "atom --foreground"
}
] | command-dataset-linux-bash | run_project | {
"package": "atom",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all *.p[lm] files under /users/tom directory that matches both the regex '->get(' and '#hyphenate' in their contents"
},
{
"role": "assistant",
"content": "find /users/tom -name '*.p[lm]' -exec grep -l -- '->get(' {}... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nList the files in reverse order of modification time, sorted numerically by the second column, and display the first five columns."
},
{
"role": "assistant",
"content": "ls -ltrih | sort -k2n | cut -d\" \" -f1-5"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSplit \"input_file\" into files of at most 100 lines each with prefix \"output_file\""
},
{
"role": "assistant",
"content": "split -l 100 input_file output_file"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCompile a `.java` file and place the resulting class file in a specific directory"
},
{
"role": "assistant",
"content": "javac -d path/to/directory path/to/file.java"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": "Java",
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\ncreate directories mnt and point"
},
{
"role": "assistant",
"content": "mkdir mnt point"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all directories in the current directory and set the group permissions to read, execute, and set user or group ID on execution for each directory."
},
{
"role": "assistant",
"content": "find ./ -type d -exec chmod g=... | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCount the number of lines of the output of the command that finds files in a randomly chosen directory that were modified more than 7 days ago."
},
{
"role": "assistant",
"content": "wc -l <(find $(ls | shuf -n 1) -mtime ... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCreate a rsa key of 2048 bits with comment \"michael\" and store it in file \"key\"."
},
{
"role": "assistant",
"content": "ssh-keygen -b 2048 -t rsa -f key -C michael"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": "2048"
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSend 4 pings to g8.co.uk and print the third column of the output."
},
{
"role": "assistant",
"content": "ping -c 4 g8.co.uk | awk '{print $3}'"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files with the extension \".txt\" in the \"/home/john\" directory and print the last modified time and the file path in reverse order."
},
{
"role": "assistant",
"content": "find /home/john -name \"*.txt\" -print... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nrun command 'bash --rcfile <(echo \"source ~/.bashrc; source myfile\")' as user root with a bash shell"
},
{
"role": "assistant",
"content": "su -s /bin/bash -c 'bash --rcfile <(echo \"source ~/.bashrc; source myfile\")'"... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nGet a list of all hidden files from the current directory tree"
},
{
"role": "assistant",
"content": "find . -type f -name '.*'"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nPrint the sum of the second field to the last field of the /etc/passwd file, separated by colons, removing empty lines, and sort the result in reverse numerical order, then print the first line."
},
{
"role": "assistant",
... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nMake directorie(s) 'es_MX.utf8/LC_MESSAGES' as needed in the current directory"
},
{
"role": "assistant",
"content": "printf '%0.s-' $(seq 1 $variable)"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files with the extension .jpg in the Desktop directory and count the number of characters in each file."
},
{
"role": "assistant",
"content": "find ~/Desktop -type f -name '*.jpg' | xargs wc -c"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nAppend the current user to the server access control list for X"
},
{
"role": "assistant",
"content": "xhost +si:localuser:`whoami`"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCreate a directory named 'alpha_real' in the current directory"
},
{
"role": "assistant",
"content": "mkdir alpha_real"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files in the /tmp directory and change the owner to root for each file."
},
{
"role": "assistant",
"content": "find /tmp -type f -exec chown root {} ;"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all dependencies with postinstall scripts and uninstall them"
},
{
"role": "assistant",
"content": "npm query \":attr(scripts, [postinstall])\" | jq 'map(.name) | join(\"\\n\")' -r | xargs -I {} npm uninstall {}"
}... | command-dataset-linux-bash | remove_package | {
"package": "all dependencies with postinstall scripts",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files with the extension .xml in the current year's directory and replace all occurrences of the word \"Max\" with \"Joe\"."
},
{
"role": "assistant",
"content": "find $(date +%Y)/. -type f -iname '*.xml' -exec s... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind a file with an inode number randomly chosen between 1 and 1000 and delete it."
},
{
"role": "assistant",
"content": "find . -inum `shuf -i 1-1000 -n 1` -delete"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nPut the absolute directory path to the current script to MY_DIR variable"
},
{
"role": "assistant",
"content": "MY_DIR=$(dirname $(readlink -f $0))"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files in the current user's home directory that were modified within the last 100 minutes and execute a grep search for the string \"string\" in each of those files."
},
{
"role": "assistant",
"content": "find ~/... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nInstall a plugin"
},
{
"role": "assistant",
"content": "mise plugins add name"
}
] | command-dataset-linux-bash | install_package | {
"package": "name",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCopy the first file listed in the current directory to the /tmp directory."
},
{
"role": "assistant",
"content": "cp `ls|head -1` /tmp"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nAdd group write permission to all files matching \"*\" or \"...*\""
},
{
"role": "assistant",
"content": "chmod g+w * ...*"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files with the extension .txt in the current directory and its subdirectories, and replace all occurrences of the word \"old\" with the word \"new\" in each file."
},
{
"role": "assistant",
"content": "find ./ -n... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind a file in the root directory, execute the ls command on it, sort the results randomly, and display the first one."
},
{
"role": "assistant",
"content": "find / -exec ls {} ; | sort -R | head -n 1"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nUpdate all packages"
},
{
"role": "assistant",
"content": "snap refresh"
}
] | command-dataset-linux-bash | update_dependencies | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCreate a unique temporary directory with the current date, time, and an 'X' appended to the end of the name."
},
{
"role": "assistant",
"content": "mktemp -u -d $(date +%Y%m%d_%H%M%S_X)"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRandomly select a number between 5 and 15 and rename the file from {number}.txt to foo.{number}.txt"
},
{
"role": "assistant",
"content": "shuf -i 5-15 -n 1 | xargs -I {} mv {}.txt foo.{}.txt"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCreate a temporary file and open it for editing."
},
{
"role": "assistant",
"content": "touch $(mktemp)"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRecursively change the owner of all \"*.txt\" files under \"/mydir\" to \"root\""
},
{
"role": "assistant",
"content": "find /mydir -type f -name \"*.txt\" -execdir chown root {} ';'"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files with any extension and pass them to the grep command to search for them in the current directory."
},
{
"role": "assistant",
"content": "find -name \"*.*\" | xargs -i grep -R \"{\\}\" ."
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind deb packages in the current directory recursively and list them with `dpkg'"
},
{
"role": "assistant",
"content": "find . -type f -and -iname \".deb\" | xargs -n 1 dpkg -I"
}
] | command-dataset-linux-bash | list_dependencies | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind files in the current directory tree of size between 700k and 1000k"
},
{
"role": "assistant",
"content": "find . ( -size +700k -and -size -1000k )"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nPrint a random line from the output of the command \"ls\""
},
{
"role": "assistant",
"content": "printf '%s\\n' $(shuf -e $(ls))"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCreate links for all files in the current directory tree that are more than 1000 days old in \"/home/user/archives\""
},
{
"role": "assistant",
"content": "find . -type f -mtime +1000 -print0 | cpio -dumpl0 /home/user/arc... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRecursively changes group ownership of everything within current folder to 'git'."
},
{
"role": "assistant",
"content": "chgrp -R git ./"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSearch recursively in the output of the command \"curl -sL http://www.randomtextgenerator.com/code/lorem.txt\" for any alphanumeric characters of length 10 at the end of a line."
},
{
"role": "assistant",
"content": "grep... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nfind all c, cpp files in current folder"
},
{
"role": "assistant",
"content": "find -name \"*.cpp\" -o -name \"*.c\""
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files (-type f) that have been modified within the last two days (-mtime -2) and are larger than 100 kilobytes in size (+100k) and copy them to the directory /new/dir (-exec cp {} /new/dir ;)."
},
{
"role": "assistan... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRemove last two underscore-delimited fields and following characters in \"t1_t2_t3_tn1_tn2.sh\" keeping only \"t1_t2_t3\""
},
{
"role": "assistant",
"content": "echo t1_t2_t3_tn1_tn2.sh | rev | cut -d_ -f3- | rev"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files (type f) and execute a sed command to replace all lowercase words with the same words in uppercase."
},
{
"role": "assistant",
"content": "find . -type f -exec sed -i -E 's/^[a-z]+$/\\U&/g' {} \\;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind any files or directories named '?&2orV7' in the current directory and its subdirectories, and copy them recursively from the /etc directory."
},
{
"role": "assistant",
"content": "find ~ -name '?&2orV7' | xargs cp -r... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nStart the daemon with a specific configuration file (defaults to `/etc/bluetooth/main.conf`)"
},
{
"role": "assistant",
"content": "bluetoothd --configfile path/to/file"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\ndisplay a long listing of all the regular/normal files in the current folder"
},
{
"role": "assistant",
"content": "find . -type f -ls"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files and change their permissions to 600."
},
{
"role": "assistant",
"content": "find -type f -exec chmod 600 {} ;"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSave the absolute path of \"$path\" to variable \"fullpath\""
},
{
"role": "assistant",
"content": "fullpath=`readlink -f \"$path\"`"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nlist all names of the aliases"
},
{
"role": "assistant",
"content": "alias | awk '/^alias /{print substr($2,1,index($2,\"=\")-1)}'"
}
] | command-dataset-linux-bash | list_dependencies | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files (type f) and execute the command to make a directory called .tmp in each of them."
},
{
"role": "assistant",
"content": "find . -type f -exec mkdir -p {}/.tmp ;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files in the root directory and set the permission to 755 for each file."
},
{
"role": "assistant",
"content": "find / -type f -exec chmod 755 {} ;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSearch the package database for a package"
},
{
"role": "assistant",
"content": "pamac search package_name"
}
] | command-dataset-linux-bash | install_package | {
"package": "package_name",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nAdd \"new.\" to the beginning of the name of \"original.filename\", renaming it to \"new.original.filename.\""
},
{
"role": "assistant",
"content": "rename 's/(.*)$/new.$1/' original.filename"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nMake directories to \"directory{1..3}/subdirectory{1..3}/subsubdirectory{1..2}\" as needed"
},
{
"role": "assistant",
"content": "seq 2000 65000 | sort -R | head -n 1"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCheck a specific script for syntax errors"
},
{
"role": "assistant",
"content": "dash -n path/to/script.sh"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files with the extension .txt and move them to a new file name with the current timestamp as the name."
},
{
"role": "assistant",
"content": "find -name '*.txt' | xargs -I % mv % `date '+%s'`.txt"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRank the usage of libraries for a set of tools \"/bin/* /usr/bin/* ...\""
},
{
"role": "assistant",
"content": "ldd /bin/* /usr/bin/* ... | sed -e '/^[^\t]/ d; s/^\t(.* => )?([^ ]*) (.*/\\2/g' | sort | uniq -c"
}
] | command-dataset-linux-bash | list_dependencies | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nGenerate shell configuration for command aliases (`z`, `za`, `zi`, `zq`, `zr`)"
},
{
"role": "assistant",
"content": "zoxide init bash|fish|zsh"
}
] | command-dataset-linux-bash | setup_environment | {
"package": "zoxide",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nAdd a dependency to `Cargo.toml` in the current directory"
},
{
"role": "assistant",
"content": "cargo add dependency"
}
] | command-dataset-linux-bash | install_package | {
"package": "dependency",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nDisplay the contents of a randomly selected file in the /dev/random directory."
},
{
"role": "assistant",
"content": "cat $(ls /dev/random | shuf -n 1)"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nsudo apt-get install <output of randomly selected word from /usr/share/dict/words in lowercase>"
},
{
"role": "assistant",
"content": "shuf -n 1 /usr/share/dict/words | tr '[:upper:]' '[:lower:]' | xargs -I% echo \"sudo a... | command-dataset-linux-bash | install_package | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nconcatenate files in reverse order and display the result"
},
{
"role": "assistant",
"content": "cat file2.txt file1.txt"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nforce create hard link between $GIT_DIR/../apresentacao/apresentacao.pdf and $GIT_DIR/../capa/apresentacao.pdf"
},
{
"role": "assistant",
"content": "ln -f $GIT_DIR/../apresentacao/apresentacao.pdf $GIT_DIR/../capa/aprese... | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nList only the explicitly installed packages and versions"
},
{
"role": "assistant",
"content": "pacman -Qe"
}
] | command-dataset-linux-bash | list_dependencies | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSearch for all lines beginning with a letter in a randomly chosen file in the home directory."
},
{
"role": "assistant",
"content": "grep -hE '^[A-Za-z]*' $( shuf -n 1 `ls ~/*` )"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files in the current directory (maxdepth 1), that are not swap files (not ending in .swp) and make them executable (+x) in one command."
},
{
"role": "assistant",
"content": "find . -maxdepth 1 -type f -name '*' ... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRemoves all files like '*.bak' in a current folder, and prints messages about what is being done."
},
{
"role": "assistant",
"content": "rm -v *.bak"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files with the extension \".txt\" in the current directory and its subdirectories, and move them to the Documents folder."
},
{
"role": "assistant",
"content": "find ~ -type f -name \".txt\" -exec xargs -I {} mv ... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\ndisplay all the files in the current folder for the files which have not been accessed in the last 24 hours"
},
{
"role": "assistant",
"content": "find . -type f -atime +1"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files (type f) with any name (name '*') and execute the command chmod 700 on each of them (exec chmod 700 {})."
},
{
"role": "assistant",
"content": "find . -type f -name '\\*' -exec chmod 700 {} \\;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nMake directories for each line in \"folder_list.txt\""
},
{
"role": "assistant",
"content": "find -L. -type l"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind .jpg files owned by user daniel in the current directory and its sub-directories but ignore any file beginning with \"autumn\"."
},
{
"role": "assistant",
"content": "find . -user daniel -type f -name *.jpg ! -name a... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSynchronize all packages"
},
{
"role": "assistant",
"content": "emerge --sync"
}
] | command-dataset-linux-bash | update_dependencies | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRandomly select one number from the range of 26892 numbers and print it out:\nPick a random number between 1 and 26892 and print it out:"
},
{
"role": "assistant",
"content": "shuf -rn 17 26892 | head -n 1"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files in the current directory and its subdirectories that are larger than 1 kilobyte and copy them to the current working directory."
},
{
"role": "assistant",
"content": "find ~ -type f -size +1k -exec cp {} $(... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files and directories in the current directory and execute the command 'chown -R root:root' on each of them."
},
{
"role": "assistant",
"content": "find . -maxdepth 1 -exec chown -R root:root {} ;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nArchive '_vim/' to '~/.vim' suppressing non-error messages and compressing data during transmission"
},
{
"role": "assistant",
"content": "rsync -aqz _vim/ ~/.vim"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nPrint the contents of \"file\" in reverse order"
},
{
"role": "assistant",
"content": "nl file | sort -nr | cut -b8-"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRandomly select one number from the sequence of numbers 1 to 10 and check if it is a valid number."
},
{
"role": "assistant",
"content": "shuf -n 1 $(seq 10) | xargs | grep -E '^d+$'"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSearch the system.log file for any two letters followed by three numbers, and print the line number and the matching text."
},
{
"role": "assistant",
"content": "grep -Eonr \"[A-Za-z]{2}[0-9]{3}\" /var/log/system.log"
}... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all directories in the root directory and execute the command to create a file named example_file.txt in each directory."
},
{
"role": "assistant",
"content": "find / -type d -exec touch {}/example_file.txt ;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files (type f) whose name starts with \"wo\" (wo*) and do not execute the md5sum command on them ({} ;)."
},
{
"role": "assistant",
"content": "find . -type f -name wo* ! -exec md5sum {} ;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 63