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 with the extension .txt in the current directory and its subdirectories, and for each of those files, search for the string \"foo\" and print the name of the file if it is found."
},
{
"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:\nFind all files with the extension .txt in the current directory and its subdirectories, and search for the string \"pattern\" in them, printing out the names of the files that contain it."
},
{
"role": "assistant",
"conte... | 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 \"your/dir\" directory for empty subdirectories"
},
{
"role": "assistant",
"content": "find your/dir -mindepth 1 -prune -empty"
}
] | 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 package without viewing changes in Vim and do not confirm dependency installation"
},
{
"role": "assistant",
"content": "aur sync --noview --noconfirm package"
}
] | command-dataset-linux-bash | install_package | {
"package": "package",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nChanges group ownership of '/home/www-user/php_user.sh' to 'www-data'."
},
{
"role": "assistant",
"content": "chgrp www-data /home/www-user/php_user.sh"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSearch all PDFs from the current directory tree for \"keyword\", ignoring the case"
},
{
"role": "assistant",
"content": "find . -iname '*.pdf' -exec pdfgrep -i keyword {} +"
}
] | 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, delete them all."
},
{
"role": "assistant",
"content": "find ~ -name \"*.*\" -exec 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:\nCreate a directory with the current date as the name."
},
{
"role": "assistant",
"content": "mkdir $(date +%F)"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSplit data.tsv into files of at most 5000000 lines each with prefix _tmp"
},
{
"role": "assistant",
"content": "split -l5000000 data.tsv '_tmp';"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRun a program in a new session discarding the resulting output and error"
},
{
"role": "assistant",
"content": "setsid program > /dev/null 2>&1"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nsearch for the regular/normal file firefox or thunderbird or seamonkey in the entire file system excluding search in the directories share and those starting with 10_Recommended and discard all the errors"
},
{
"role": "assis... | 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 two levels deep from the current directory, and set the permissions to 0640 for each of them."
},
{
"role": "assistant",
"content": "find . -mindepth 2 -maxdepth 2 -type d -exec chmod 0640 {} ;"
}
] | 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 \".png\" in the entire file system, calculate the size of each file in human-readable format, and sort the results in descending order."
},
{
"role": "assistant",
"content": "find / -inam... | 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 execute the command to replace the word \"word\" with \"anotherword\" in each file, creating a backup of the original file with the extension .bak."
},
{
"role": "assistant",
"co... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCreates temporary folder, and saves current folder path joined with created temporary folder path in 'tdir' variable."
},
{
"role": "assistant",
"content": "tdir=\"$(pwd)/$(mktemp -d)\""
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nExecute \"chown -R ask:ask /www/askapache.com\" in the background on server \"askapache\" with a niceness of 19"
},
{
"role": "assistant",
"content": "ssh askapache 'nice -n 19 sh -c \"(( nohup chown -R ask:ask /www/askap... | 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, sort them by the second field, and then print all lines starting from the first line of each file."
},
{
"role": "assistant",
"content": "find . | sort -k2 | xargs tail -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 directories that have been modified in the last seven days"
},
{
"role": "assistant",
"content": "find . -mtime -7 -type d"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRemove a package"
},
{
"role": "assistant",
"content": "xbps-remove package"
}
] | command-dataset-linux-bash | remove_package | {
"package": "package",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nChange every reference to the colour red to green in all CSS files"
},
{
"role": "assistant",
"content": "find . -name \"*.css\" -exec sed -i -r 's/#(FF0000|F00)\\b/#0F0/' {} \\;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nBuild a sandboxed Nix expression (on non-NixOS)"
},
{
"role": "assistant",
"content": "nix-build '<nixpkgs>' --attr firefox --option sandbox true"
}
] | command-dataset-linux-bash | run_project | {
"package": "firefox",
"runtime": "Nix",
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nforcibly and verbosely create symbolic links in directory '~/Library/LaunchAgents' to all files located in /usr/local/opt/mongodb/ and that have filename extension '.plist'"
},
{
"role": "assistant",
"content": "ln -sfv /... | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nLaunch document viewer"
},
{
"role": "assistant",
"content": "okular"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCopy a randomly chosen file from the current directory to the myfiles directory with the name of today's date in the format YYYYMMDD.txt"
},
{
"role": "assistant",
"content": "cp $(ls -1 | shuf -n 1) ~/myfiles/$(date +%F ... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nTake one random file from the /bin/ directory, and for that file, print out all lines that do not start with a '#' character."
},
{
"role": "assistant",
"content": "shuf -n 1 -e /bin/* | xargs -I {} grep -v '#' {}"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSend SIGTERM signal to any process which 'ps' lists as \"python csp_build.py\""
},
{
"role": "assistant",
"content": "ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf(\"%13.2f Mb \",hr) } { for ( x=4... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": "python",
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nList all Podman images not used by any container"
},
{
"role": "assistant",
"content": "podman images --filter dangling=true"
}
] | command-dataset-linux-bash | list_dependencies | {
"package": "Podman",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files in the Downloads directory that are larger than 10MB, cut the filename at the period to get the first two parts, and then remove the directory for each of those files."
},
{
"role": "assistant",
"content": ... | 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 random directory in /tmp with permissions 744:\nmkdir -m 744 /tmp/$(seq 1000 | sort -R | head -n 1)"
},
{
"role": "assistant",
"content": "seq 1000 | sort -R | head -n 1 | xargs -I {} echo \"mkdir -m 744 /tmp/{}\... | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCreates temporary folder in TMPDIR (if defined) or in '/tmp/', and stores path to created folder in 'dir' variable."
},
{
"role": "assistant",
"content": "dir=$(mktemp -d)"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nReplace all lines that contain only numbers with four uppercase letters in file.txt"
},
{
"role": "assistant",
"content": "sed -i \"s/^[0-9]*$/[A-Z]\\{4\\}/g\" 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 with the extension \".dat\" in the entire file system and rename them by removing the \".dat\" extension."
},
{
"role": "assistant",
"content": "find / -iname '*.dat' | rename -v 's/\\.dat$//'"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nPrint all available packages as JSON encoded array"
},
{
"role": "assistant",
"content": "tlmgr info --json"
}
] | command-dataset-linux-bash | list_dependencies | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nAssign the alias rm5g to a find command that removes any .tar file larger than 5 gigabytes."
},
{
"role": "assistant",
"content": "alias rm5g=\"find / -type f -name *.tar -size +5G -exec rm -i {} \\;\""
}
] | 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 whose name starts with a number, followed by an uppercase letter, and ends with a lowercase letter, and replace all non-alphanumeric characters with a caret (^) in each of those files."
},
{
"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:\nExport variable \"JAVA_HOME\" as symlink resolved absolute path of the 2nd parent directory name of \"java\""
},
{
"role": "assistant",
"content": "export JAVA_HOME=$(readlink -f $(dirname $(readlink -f $(which java) ))/.... | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": "java",
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nPrint output of 'script -c \"./a\" /dev/null' to standard output and \"output.txt\""
},
{
"role": "assistant",
"content": "script -c \"../a\" /dev/null | tee output.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 that have been modified within the last 10 minutes and print their names."
},
{
"role": "assistant",
"content": "find . -mmin -10 -exec echo {} ;"
}
] | 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 /mnt/ directory that are not empty, and display their size in a human-readable format, sorted from largest to smallest."
},
{
"role": "assistant",
"content": "find /mnt/ -not -empty -type d -ex... | 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 up to 4 levels of subdirectories, and list the names of the files that contain the string \"foo\"."
},
{
"role": "assistant",
"content": "find / -max... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nLog output of a command in screenlog.0 every 10 seconds"
},
{
"role": "assistant",
"content": "cat -n infile"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\ndelete all instances of the file \"bad\" if its size is 0 bytes"
},
{
"role": "assistant",
"content": "find . -name bad -empty -delete"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nWatch every 1 second and search for lines that do not start with # or ; in a randomly chosen file from the current directory."
},
{
"role": "assistant",
"content": "watch -n1 \"grep -e '^[^#;]' $(ls | awk '($1 = int(rand(... | 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 /var/www/ tree for files owned by root or unknown group and change their group to 'apache'"
},
{
"role": "assistant",
"content": "find /var/www -group root -o -nogroup -print0 | xargs -0 chown :apache"
}
] | 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 root directory and change their permissions to 775."
},
{
"role": "assistant",
"content": "find / -type d -exec chmod 775 {} ;"
}
] | 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 .txt and search for the word 'curl' in them recursively."
},
{
"role": "assistant",
"content": "find . -name '*.txt' | xargs grep -ir 'curl'"
}
] | 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, and execute the awk command to print the length of each file."
},
{
"role": "assistant",
"content": "find . -name '*.*' -exec awk '{print length()}' ;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": "awk",
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind files that were modified in less than 1 minute ago"
},
{
"role": "assistant",
"content": "find / -mmin -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 directories and remove write permission for the user on them."
},
{
"role": "assistant",
"content": "find ~ -type d -exec chmod u-w {} ;"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRemoves all listed folders with content in sudo mode."
},
{
"role": "assistant",
"content": "sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/no... | command-dataset-linux-bash | remove_package | {
"package": "npm",
"runtime": "node",
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nAssign the alias rm100m to a find command that removes any .tar file larger than 100M."
},
{
"role": "assistant",
"content": "alias rm100m=\"find / -type f -name *.tar -size +100M -exec rm -i {} \\;\""
}
] | 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, and move them to the /tmp directory."
},
{
"role": "assistant",
"content": "find ~ -type f -exec mv {} /tmp ;"
}
] | 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 to \"/my/other/path/here\" as needed"
},
{
"role": "assistant",
"content": "diff -dbU0 a b"
}
] | 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 tree ignoring the \".git\" directory"
},
{
"role": "assistant",
"content": "find . -type d -name '.git*' -prune -o -type f -print"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRecursively change the owner and group of \"/opt/antoniod/\" to \"antoniod\""
},
{
"role": "assistant",
"content": "chown -R antoniod:antoniod /opt/antoniod/"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nChange permissions of \".git/hooks/prepare-commit-msg\" to 777"
},
{
"role": "assistant",
"content": "sudo chmod 777 .git/hooks/prepare-commit-msg"
}
] | 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 .txt in the entire file system and print their names, then search for the string 'foo' in each of those files and print the names of the files that contain it."
},
{
"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:\nFind all regular files under and below /home/admin/public_html/, and change their permissions to 644"
},
{
"role": "assistant",
"content": "find . /home/admin/public_html/ -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:\nRandomly select one jpg file from the current user's home directory."
},
{
"role": "assistant",
"content": "shuf -r -e -n 1 $(find ~ -name '*.jpg')"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nPrint an octal dump of \"file\" with named characters, no addresses, and no suppressed duplicate lines with sections starting with \"esc\", \"fs\", \"gs\", or \"us\""
},
{
"role": "assistant",
"content": "od -a -An -v fil... | 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 sort them numerically in parallel using 4 processes."
},
{
"role": "assistant",
"content": "find . -name '*.txt' | xargs -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 with the extension \".txt\" in the entire file system and add a \"#\" character to the beginning of each line in those files."
},
{
"role": "assistant",
"content": "find / -type f -name \".txt\" -exec sed -... | 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 ip addresses in all the files that are present in /etc folder"
},
{
"role": "assistant",
"content": "find /etc -exec grep '[0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*' {} \\;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nAdd content of \"filename\" to the existing cron jobs of user \"user\", without removing the previously existing cron jobs."
},
{
"role": "assistant",
"content": "crontab -l -u user | cat - filename | crontab -u user -"
... | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nMove \"phantomjs-1.8.1-linux-x86_64.tar.bz2\" to \"/usr/local/share/\" directory"
},
{
"role": "assistant",
"content": "sudo mv phantomjs-1.8.1-linux-x86_64.tar.bz2 /usr/local/share/."
}
] | command-dataset-linux-bash | setup_environment | {
"package": "phantomjs-1.8.1-linux-x86_64.tar.bz2",
"runtime": null,
"version": "1.8.1"
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all regular files in current directory and /home/www directory"
},
{
"role": "assistant",
"content": "find * /home/www -type f"
}
] | 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) with any name (name \"*.\") and execute the command chmod +rwx on each of them (exec chmod +rwx {} ;)."
},
{
"role": "assistant",
"content": "find ~ -maxdepth 1 -name \... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nList executable files in the current directory, sort the list and then display the differences between the list and file .gitignore."
},
{
"role": "assistant",
"content": "find . -perm /111 -type f | sed 's#^./##' | sort ... | 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 under images directory"
},
{
"role": "assistant",
"content": "find images -type f"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSet permissions for all regular files under /var/www to 755"
},
{
"role": "assistant",
"content": "find /var/www -type f -print0 | xargs -0 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:\nCreate an empty file 'last.check' in directory pointed by variable \"log_dir\", with specified timestamp."
},
{
"role": "assistant",
"content": "touch -m 201111301200.00 $log_dir/last.check"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": "201111301200.00"
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all directories (type d) up to a maximum depth of 3 (maxdepth 3) in the current directory (.), and for each directory found (| xargs -I %), move it (mv) to the directory /tmp/random_directory."
},
{
"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:\nDisplay version information"
},
{
"role": "assistant",
"content": "visudo --version"
}
] | command-dataset-linux-bash | check_version | {
"package": "visudo",
"runtime": null,
"version": "--version"
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nPrint the square of a random number between 0 and 2000: echo $(echo [random number]^2 | bc)"
},
{
"role": "assistant",
"content": "shuf -i 0-2000 -n 1 | xargs -I {} echo 'echo $(echo {}^2 | bc)'"
}
] | 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 PDF files in the current working directory and search for the string \"string\" in them, then list the files that contain the string."
},
{
"role": "assistant",
"content": "find $(pwd) -name \".*pdf\" | xargs gre... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nScan every file in /etc for IPV4 addresses."
},
{
"role": "assistant",
"content": "find /etc -exec grep '[0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*' {} ;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRecursively change ownership of \"/usr/local\" to the current user"
},
{
"role": "assistant",
"content": "sudo chown -R `whoami` /usr/local"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCount number of lines for each file containing ASCII text under git repository."
},
{
"role": "assistant",
"content": "git ls-files | xargs file | grep \"ASCII\" | cut -d : -f 1 | xargs wc -l"
}
] | 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 directory with permissions 0700, randomly chosen from the numbers 0 to 15."
},
{
"role": "assistant",
"content": "seq 0 15 | shuf | head -n1 | xargs mkdir -p -m 0700"
}
] | 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 the files ending with jpg in current folder and display their count ( case insensitive )"
},
{
"role": "assistant",
"content": "find ./ -iname '*.jpg' -type f | wc -l"
}
] | 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 working directory and move them to the ~/documents directory."
},
{
"role": "assistant",
"content": "find $(echo $PWD) -type f -name '*.txt' -exec mv {} ~/documents ;"... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nMove files from $sourcePath to $destPath that have not been modified in the last 10 days"
},
{
"role": "assistant",
"content": "find $sourcePath -type f -mtime +10 -name \"*.log\" -exec mv {} $destPath ;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCopy directory hierarchy from the current working directory to \"/path/to/backup/\""
},
{
"role": "assistant",
"content": "find . -type d -exec mkdir -p -- /path/to/backup/{} \\;"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nMake $WEEKS_TO_SAVE+1 directories named \"weekly.N\" where N ranges from 0 to \"$WEEKS_TO_SAVE\""
},
{
"role": "assistant",
"content": "find . -type d -print0"
}
] | 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, then use awk to print the filename and its line number for each file."
},
{
"role": "assistant",
"content": "find . -type f | xargs awk '{printf(\"%s %d\\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 all the files in the current folder which have been modified in the last 60 minutes"
},
{
"role": "assistant",
"content": "find . -mmin -60"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRemove all numbers from file.txt."
},
{
"role": "assistant",
"content": "sed -r 's/[0-9]*.*[0-9]*//' 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/directories under current directory and set their permission to 775"
},
{
"role": "assistant",
"content": "find . -type f -exec chmod 775 {} ;"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\ndisplay all the html files in the current folder that have been modified in the last 7*24 hours"
},
{
"role": "assistant",
"content": "find . -mtime -7 -name \"*.html\" -print"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRemove all CVS directories in the current directory tree"
},
{
"role": "assistant",
"content": "find . -type d -name CVS -exec rm -r {} ;"
}
] | 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 /etc directory for files with the extension .rpm, and for each file found, execute the command to replace the word \"problem\" with \"solution\"."
},
{
"role": "assistant",
"content": "find /etc -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:\nFind all the regular files under '/your/dir' directory tree which are bigger than 5 MB and display them in decreasing order of their sizes"
},
{
"role": "assistant",
"content": "find /your/dir -type f -size +5M -exec du -... | 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 symbolic link named \"bar\" to file that named is a result of the command `canonical.bash foo`"
},
{
"role": "assistant",
"content": "ln -s `canonical.bash foo` bar"
}
] | 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, and move them to the directory ~/tmp/"
},
{
"role": "assistant",
"content": "find ~ -type f -exec mv -t ~/tmp/ {} +"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nChange permission to 755 of all files/directories under current directory tree that have 777 permission"
},
{
"role": "assistant",
"content": "find -perm 777 | xargs -I@ sudo chmod 755 '@'"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSynchronize and update all AUR packages"
},
{
"role": "assistant",
"content": "trizen -Syua"
}
] | command-dataset-linux-bash | update_dependencies | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind all files/directories under /usr/tom which matches the extended regex '*.pl| *.pm' in their names"
},
{
"role": "assistant",
"content": "find /usr/tom | egrep '*.pl| *.pm'"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind recursively all files matching pattern 'file??' in the xargstest/ directory and print a sorted list of them"
},
{
"role": "assistant",
"content": "find xargstest/ -name 'file??' | sort"
}
] | 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 .jpg in any directory, and move them to a temporary directory in the home folder called \"myfiles/tmp\"."
},
{
"role": "assistant",
"content": "find / -iname \"*.jpg\" -exec mv '{}' $(mkt... | 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 under current directory and show their file information"
},
{
"role": "assistant",
"content": "find . -type f -exec file {} ;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.