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 the current working directory, find all files and directories, and copy them to the /tmp directory."
},
{
"role": "assistant",
"content": "find $(pwd) -name '*' -exec cp {} /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 (type f) in the current directory and its subdirectories (maxdepth 3) that do not have a .sh extension (not -name \".sh\") and execute the command rm -f (remove the file) on each of them."
},
{
"role": "assista... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRemove packages"
},
{
"role": "assistant",
"content": "sudo dnf5 remove package1 package2 ..."
}
] | command-dataset-linux-bash | remove_package | {
"package": "package1",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nUpgrade all installed packages to their latest available versions"
},
{
"role": "assistant",
"content": "slapt-get --upgrade"
}
] | 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 with a name ending in any characters in the /tmp directory and change their permissions to 644."
},
{
"role": "assistant",
"content": "find $(echo /tmp/*.*) -type f -exec chmod 644 {} ;"
}
] | 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 folder _output in the current directory."
},
{
"role": "assistant",
"content": "find ./ -type f -maxdepth 2 -nam... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind the last line in the history file, ignoring any lines that start with a #, and print the result."
},
{
"role": "assistant",
"content": "history | sort -R | tail -n1 | 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:\nAdd the execute and read permission for all and the write permission for the user to the dir_data directory and all of its sub-directories."
},
{
"role": "assistant",
"content": "find ~/dir_data -type d -exec chmod a+xr,u... | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nDelete lines 3 to 6 from the file data.csv."
},
{
"role": "assistant",
"content": "sed -i '3,6!d' data.csv"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRename all .jpg files to .jpeg under the current directory and below"
},
{
"role": "assistant",
"content": "find | rename 's/\\.jpg$/.jpeg/'"
}
] | 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 file with name formatted like '.script.XXXXXX' in '/tmp/' folder and saves path to it in 'script2' variable."
},
{
"role": "assistant",
"content": "script2=`mktemp /tmp/.script.XXXXXX`;"
}
] | 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 whose pathnames match pattern '*/1/lang/en.css'"
},
{
"role": "assistant",
"content": "find . -path ‘*/1/lang/en.css’ -print"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCopy all *.data files under /source_path to /target_path by appending the parent directory names in the source paths to the beginning of each of the target file names"
},
{
"role": "assistant",
"content": "find /source_pa... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind files that were modified more than one day ago and execute the command \"rm\" on each of them."
},
{
"role": "assistant",
"content": "find -mtime +1 -exec rm {} \\;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCopy all files with the extension .csv from the current directory and its subdirectories to the /tmp/ directory, showing progress and statistics."
},
{
"role": "assistant",
"content": "rsync --progress --stats $(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:\nFind all *.md files in entire file system and convert them to HTML (*.md.html) files"
},
{
"role": "assistant",
"content": "find / -name \"*.md\" -type f -exec markdown -o {}.html {} ;"
}
] | command-dataset-linux-bash | run_project | {
"package": "markdown",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSearch all files & directoy from root directory which are greater then 100M and delete them ."
},
{
"role": "assistant",
"content": "find / -size +100M -exec rm -rf {} ;"
}
] | 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 entire file system starting from the root directory and print the results, then search for any files that contain an asterisk (*)."
},
{
"role": "assistant",
"content": "find / -print | grep -e '\\*'"
}
] | 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 ending with .php in the current directory and its subdirectories, and search for the string 'session_start' in those files."
},
{
"role": "assistant",
"content": "find ~ -name '*.php' | xargs grep 'session_... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nDisplay the last 50 lines of the largest file in the current directory."
},
{
"role": "assistant",
"content": "`tail -n 50 $(ls -S | head -1)`"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nMove all files/directories under current directory to ~/play"
},
{
"role": "assistant",
"content": "find . -exec mv '{}' ~/play/ ;"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nDelete all directories with the name \"*.zip\" in the current working directory and all its subdirectories."
},
{
"role": "assistant",
"content": "rm -rf $( find ${PWD} -type d -name \"*.zip\" )"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nDisplay the version of `ncurses` used by `clear`"
},
{
"role": "assistant",
"content": "clear -V"
}
] | command-dataset-linux-bash | check_version | {
"package": "ncurses",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCut the first and fourth fields of the file /tmp/example.csv and sort them by the second field, using ';' as the delimiter."
},
{
"role": "assistant",
"content": "cut -d' ' -f1,4 /tmp/example.csv | sort -t';' -k2"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nShow dependencies for a package"
},
{
"role": "assistant",
"content": "apt-cache depends package"
}
] | command-dataset-linux-bash | list_dependencies | {
"package": "package",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRandomly select one word from the /usr/share/dict/words file and echo it."
},
{
"role": "assistant",
"content": "shuf -r -n 1 /usr/share/dict/words | xargs -I{} 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 a random file in the current directory and its subdirectories and display the first one."
},
{
"role": "assistant",
"content": "find ~ -name '*' | shuf | head -n1"
}
] | 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/normal files in the current folder which belong to the user \"sedlav\""
},
{
"role": "assistant",
"content": "find . -user sedlav -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 OGG files in the home directory that are at most 20 megabytes in size"
},
{
"role": "assistant",
"content": "find $HOME -iname '*.ogg' ! -size +20M"
}
] | 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 in target directory \"~/newlinks\" to \"$source\""
},
{
"role": "assistant",
"content": "ln -s \"$source\" -t ~/newlinks"
}
] | 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 and group of \"subdir1\" to \"user1\""
},
{
"role": "assistant",
"content": "chown user1:user1 -R subdir1"
}
] | 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 package and specify where to save it"
},
{
"role": "assistant",
"content": "sudo checkinstall --pakdir path/to/directory"
}
] | command-dataset-linux-bash | install_package | {
"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 any subdirectories between two and four levels deep and delete them."
},
{
"role": "assistant",
"content": "find . -mindepth 2 -maxdepth 4 -name '*.txt' -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:\nChange permissions to 644 for all subdirectories"
},
{
"role": "assistant",
"content": "find . -type d -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:\nhow can I create a file named 'memo.txt'"
},
{
"role": "assistant",
"content": "touch memo.txt"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRemove all \"work\" directories residing in /usr/ports and below"
},
{
"role": "assistant",
"content": "find /usr/ports/ -name work -type d -print -exec rm -rf {} ;"
}
] | command-dataset-linux-bash | remove_package | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nchange the permissions of all the regular/normal files in the folder \"/path/to/someDirectory\" to 644"
},
{
"role": "assistant",
"content": "sudo find /path/to/someDirectory -type f -print0 | xargs -0 sudo 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 with the extension .txt in the current directory and its subdirectories and change their permissions to 660."
},
{
"role": "assistant",
"content": "find ./ -type f -name \"*.txt\" -exec chmod 660 {} \\;"
... | 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 home directory, execute the command \"ls -ltr\" on each file, and print the 11th column of the output."
},
{
"role": "assistant",
"content": "find ~/ -exec ls -ltr {} \\; | awk {'print $11'}"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRemove orphaned packages (installed as dependencies but not required by any package)"
},
{
"role": "assistant",
"content": "yay -Yc"
}
] | command-dataset-linux-bash | remove_package | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRecursively set all permissions under \"../tools\" to 777"
},
{
"role": "assistant",
"content": "chmod -R 777 ../tools"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCopy the owner and group of \"oldfile\" to \"newfile\""
},
{
"role": "assistant",
"content": "chown --reference=oldfile newfile"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\ncreate directory dir1"
},
{
"role": "assistant",
"content": "mkdir dir1"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRemove all *.mp3 files in tmp directory but not in it's subdirectories"
},
{
"role": "assistant",
"content": "find tmp -maxdepth 1 -name '*.mp3' -maxdepth 1 | xargs -n1 rm"
}
] | 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 any name, excluding files with the extension \".bak\", randomly select one of them, and count the number of lines in it."
},
{
"role": "assistant",
"content": "find -name \"*\" ! -name \"*.bak\" | shuf -n... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nrename file.txt to 'backup/file_backup.txt'"
},
{
"role": "assistant",
"content": "mv file.txt backup/file_backup.txt"
}
] | 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 ending with \".txt\" in the current directory and its subdirectories and delete them permanently."
},
{
"role": "assistant",
"content": "find ~ -name '*.txt' | xargs rm -rf"
}
] | 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 zip files in the current folder and create a tar ball of these zip files"
},
{
"role": "assistant",
"content": "find . -type f -name '*.zip' -print0 | xargs -0 tar -xzf"
}
] | 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 a number between 1 and 100 and use it to download the file \"file.txt\" from the website \"example.com\"."
},
{
"role": "assistant",
"content": "shuf -i 1-100 -n 1 | xargs curl -O http://example.com/file.t... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRun gprof to obtain profile output"
},
{
"role": "assistant",
"content": "gprof"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nAdd a package to the project in the current directory"
},
{
"role": "assistant",
"content": "dotnet add package package"
}
] | command-dataset-linux-bash | install_package | {
"package": "package",
"runtime": "dotnet",
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCount the number of files with the extension \".sh\""
},
{
"role": "assistant",
"content": "find -name '*.sh' | 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:\nSearch the /storage/sdcard0/tencent/MicroMsg/ directory tree for JPG files"
},
{
"role": "assistant",
"content": "find /storage/sdcard0/tencent/MicroMsg/ -type f -iname '*.jpg' -print0"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRename uppercase file or folder name $1 to lower case name"
},
{
"role": "assistant",
"content": "mv $1 `echo $1 | tr '[:upper:]' '[:lower:]'`"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nsort and display the unique lines display the contents of all the files that have been modified in the last 91 days and not in the last 2 days"
},
{
"role": "assistant",
"content": "find . -name \"*.txt\" -type f -daysta... | 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 /etc/ directory, randomly sort it, and display the first line."
},
{
"role": "assistant",
"content": "find /etc/ -type f |sort -R |head -n1"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nReplace the name of all files with a random string."
},
{
"role": "assistant",
"content": "rename 's/.*/rand()/e' *.*"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nset alias \"mkcd\" for command '_(){ mkdir $1; cd $1; }; _'"
},
{
"role": "assistant",
"content": "alias mkcd='_(){ mkdir $1; cd $1; }; _'"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRecursively changes group ownership on everything in the 'public_html' folder to 'website' group."
},
{
"role": "assistant",
"content": "chgrp --recursive website public_html"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nErase user's cron jobs and add one cron job to run \"script\" every minute."
},
{
"role": "assistant",
"content": "echo '* * * * * script' | crontab -"
}
] | 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 \"passwd\" files in the entire file system"
},
{
"role": "assistant",
"content": "find / -iname passwd"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind and remove multiple files such as *.mp3 or *.txt under current directory"
},
{
"role": "assistant",
"content": "find . -type f -name \"*.mp3\" -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:\nRemove a bundle"
},
{
"role": "assistant",
"content": "sudo swupd bundle-remove bundle"
}
] | command-dataset-linux-bash | remove_package | {
"package": "bundle",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCreate a file with the name of a randomly chosen word from the dictionary."
},
{
"role": "assistant",
"content": "touch \"$(shuf -n 1 /usr/share/dict/words)\""
}
] | 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 \".zip\" and delete them."
},
{
"role": "assistant",
"content": "find -name \".zip\" | 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:\nFind all files in the root directory (/) that are not in the /proc directory and delete them."
},
{
"role": "assistant",
"content": "find / -type f -name '*' ! -path '*/proc/*' -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:\nInstall the package to a temporary install directory"
},
{
"role": "assistant",
"content": "ebuild path/to/file.ebuild install"
}
] | command-dataset-linux-bash | install_package | {
"package": "file.ebuild",
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nrecursively change owner of the directory and all files into it to user nobody"
},
{
"role": "assistant",
"content": "chown -R nobody upload_directory"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nPrint which files differ between dir1 and dir2, treating absent files as empty"
},
{
"role": "assistant",
"content": "diff --brief -Nr dir1/ dir2/"
}
] | 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 entire file system for files with permission 666 and copy them to the directory ~/backup_files/"
},
{
"role": "assistant",
"content": "find / -type f -perm 666 -exec cp {} ~/backup_files/ ;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\necho \"echo $(date):\" followed by the output of the command \"curl -s http://www.randomwordgenerator.org/ | grep -E -o '[a-zA-Z]+[0-9\\-\\_]*' | grep -E '^[a-z]+' | head -1 | tr '[:upper:]' '[:lower:]' | xargs echo\""
},
{
"... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nRecursively find files in the current directory with a modification time more than 7 days ago, save the filenames to \"compressedP.list\", and compress no more than 10 at a time"
},
{
"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:\nFind all files with the extension \".sh\" in the current directory and its subdirectories, and then use xargs to run the sed command to delete all blank lines in 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:\nchange the ownership of all directories in the current folder"
},
{
"role": "assistant",
"content": "find . -type d -exec chown username {} ;"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind any file with the extension \".sh\" in the current directory and its subdirectories, then randomly select one of them and execute it."
},
{
"role": "assistant",
"content": "find ~ -name *.sh -exec 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:\nfind all the files that have been modified in the last 1 day ago"
},
{
"role": "assistant",
"content": "find -mtime -1"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nWrite \"deb blah ... blah\" to standard output and append to \"/etc/apt/sources.list\" as root"
},
{
"role": "assistant",
"content": "echo 'deb blah ... blah' | sudo tee --append /etc/apt/sources.list"
}
] | 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 with the current date and time down to the nanosecond."
},
{
"role": "assistant",
"content": "mkdir $(date +%F_%T.%N);"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nSplit the file.txt in the /dev/shm directory by the delimiter ',' and select the 4th and 7th fields. Add an '@' at the beginning of each line and pass two arguments to the printf command."
},
{
"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:\nGet domain name with 'google' from address $IP"
},
{
"role": "assistant",
"content": "dig -x $IP | grep PTR | cut -d ' ' -f 2 | grep google | cut -f 5"
}
] | 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 ending with \".out\" in the current directory and its subdirectories and delete them."
},
{
"role": "assistant",
"content": "find ~ -name \"*.out\" -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 directory /tmp/new"
},
{
"role": "assistant",
"content": "mkdir /tmp/new"
}
] | 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 home directory with the name containing \"random\", then find all files with the extension \".sh\" that are not executable and make them executable."
},
{
"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:\nAdd executable permission to \"java_ee_sdk-6u2-jdk-linux-x64.sh\""
},
{
"role": "assistant",
"content": "sudo chmod +x java_ee_sdk-6u2-jdk-linux-x64.sh"
}
] | command-dataset-linux-bash | setup_environment | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nFind files under [directory] that match 'pattern_to_INCLUDE' in their names without descending into directories that match 'pattern_to_exclude' and 'another_pattern_to_exclude', then search for 'pattern' in those files"
},
{
... | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nCalculate the total size (in megabytes) of the files in the home directory and print the result."
},
{
"role": "assistant",
"content": "du -mh ~/ | awk '{ total = total + $1 } END { print total }'"
}
] | 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 \".tmp\" and delete them permanently."
},
{
"role": "assistant",
"content": "find . -name \".*tmp\" -exec rm -rf {} \\;"
}
] | command-dataset-linux-bash | run_project | {
"package": null,
"runtime": null,
"version": null
} |
[
{
"role": "user",
"content": "Write the Linux bash command for this task:\nTranslate: Count the number of files in the current directory."
},
{
"role": "assistant",
"content": "tr ( -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:\nSearch the entire file hierarchy for all regular files owned by olduser and change their ownership to newuser."
},
{
"role": "assistant",
"content": "find / -user olduser -type f -exec chown newuser {} \\"
}
] | command-dataset-linux-bash | setup_environment | {
"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.