text large_stringlengths 242 1.17k | nl large_stringlengths 13 387 | bash large_stringlengths 1 715 | source large_stringclasses 3
values |
|---|---|---|---|
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change the permission to 0644 for all files under current directory<|im_end|>
<|im_start|>assistant
find . -type f -exec chmod 0644 {} +<|im_e... | Change the permission to 0644 for all files under current directory | find . -type f -exec chmod 0644 {} + | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change the permission to 0644 for all files under current directory<|im_end|>
<|im_start|>assistant
find . -type f -exec chmod 0644 {} \;<|im_... | Change the permission to 0644 for all files under current directory | find . -type f -exec chmod 0644 {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 0755 for all directories in the /path directory tree<|im_end|>
<|im_start|>assistant
find /path -type d -exec chmod 0755... | Change permissions to 0755 for all directories in the /path directory tree | find /path -type d -exec chmod 0755 "{}" \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 0755 for all directories in the /path directory tree<|im_end|>
<|im_start|>assistant
find /path -type d -exec chmod 0755... | Change permissions to 0755 for all directories in the /path directory tree | find /path -type d -exec chmod 0755 {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 0755 for all directories in the /path directory tree<|im_end|>
<|im_start|>assistant
find /path -type d | xargs chmod 07... | Change permissions to 0755 for all directories in the /path directory tree | find /path -type d | xargs chmod 0755 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 600 for all regular .rb files in the current directory tree<|im_end|>
<|im_start|>assistant
find . -name "*.rb" -type f ... | Change permissions to 600 for all regular .rb files in the current directory tree | find . -name "*.rb" -type f -exec chmod 600 {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 644 for all files in the current directory tree<|im_end|>
<|im_start|>assistant
find . -type f | xargs -I{} chmod -v 644... | Change permissions to 644 for all files in the current directory tree | find . -type f | xargs -I{} chmod -v 644 {} | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 644 for all files in the current directory tree<|im_end|>
<|im_start|>assistant
find . -type f | xargs chmod -v 644<|im_... | Change permissions to 644 for all files in the current directory tree | find . -type f | xargs chmod -v 644 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 644 for all files showing the respective chmod command<|im_end|>
<|im_start|>assistant
find ./ -type f -print0 | xargs -... | Change permissions to 644 for all files showing the respective chmod command | find ./ -type f -print0 | xargs -t -0 chmod -v 644 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 644 for all regular files under the /path/to/dir/ tree unless these permissions are already set<|im_end|>
<|im_start|>as... | Change permissions to 644 for all regular files under the /path/to/dir/ tree unless these permissions are already set | find /path/to/dir ! -perm 0644 -exec chmod 0644 {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 644 for all regular files under the /path/to/dir/ tree unless these permissions are already set<|im_end|>
<|im_start|>as... | Change permissions to 644 for all regular files under the /path/to/dir/ tree unless these permissions are already set | find /path/to/dir/ -type f ! -perm 0644 -print0 | xargs -0 chmod 644 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 644 for all regular files under and below /path/to/someDirectory/<|im_end|>
<|im_start|>assistant
find /path/to/someDire... | Change permissions to 644 for all regular files under and below /path/to/someDirectory/ | find /path/to/someDirectory -type f -print0 | xargs -0 sudo chmod 644 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 644 for all subdirectories<|im_end|>
<|im_start|>assistant
find . -type d -print0|xargs -0 chmod 644<|im_end|> | Change permissions to 644 for all subdirectories | find . -type d -print0|xargs -0 chmod 644 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 644 of multiple files with permissions 755<|im_end|>
<|im_start|>assistant
find . -perm 755 -exec chmod 644 {} \;<|im_en... | Change permissions to 644 of multiple files with permissions 755 | find . -perm 755 -exec chmod 644 {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 644 of multiple regular files with permissions 755<|im_end|>
<|im_start|>assistant
find . -type f -perm 755 -exec chmod ... | Change permissions to 644 of multiple regular files with permissions 755 | find . -type f -perm 755 -exec chmod 644 {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 700 for directories at the current level and deeper<|im_end|>
<|im_start|>assistant
find . -mindepth 1 -type d | xargs c... | Change permissions to 700 for directories at the current level and deeper | find . -mindepth 1 -type d | xargs chmod 700 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 700 for files and directories deeper than the current directory<|im_end|>
<|im_start|>assistant
find . -mindepth 2 | xar... | Change permissions to 700 for files and directories deeper than the current directory | find . -mindepth 2 | xargs chmod 700 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 755 for all directories in the /path/to/dir directory tree<|im_end|>
<|im_start|>assistant
find /path/to/dir -type d -ex... | Change permissions to 755 for all directories in the /path/to/dir directory tree | find /path/to/dir -type d -exec chmod 755 {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to 755 for all directories in the current directory tree<|im_end|>
<|im_start|>assistant
find . -type d | xargs chmod -v 75... | Change permissions to 755 for all directories in the current directory tree | find . -type d | xargs chmod -v 755 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permission to 755 for all directories under $d directory tree<|im_end|>
<|im_start|>assistant
find "$d/" -type d -print0 | xargs -0 chm... | Change permission to 755 for all directories under $d directory tree | find "$d/" -type d -print0 | xargs -0 chmod 755 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to u=rw,g=r,o= for all files in the current directory tree<|im_end|>
<|im_start|>assistant
find . -type f -exec chmod u=rw,... | Change permissions to u=rw,g=r,o= for all files in the current directory tree | find . -type f -exec chmod u=rw,g=r,o= '{}' \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change permissions to u=rwx,g=rx,o= for all directories in the current directory tree<|im_end|>
<|im_start|>assistant
find . -type d -exec chm... | Change permissions to u=rwx,g=rx,o= for all directories in the current directory tree | find . -type d -exec chmod u=rwx,g=rx,o= '{}' \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change symbolic link "$f" into a file<|im_end|>
<|im_start|>assistant
cp --remove-destination $(readlink $f) $f<|im_end|> | Change symbolic link "$f" into a file | cp --remove-destination $(readlink $f) $f | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change the timestamp of symbolic link "somesymlink" to current date/time<|im_end|>
<|im_start|>assistant
touch -h somesymlink<|im_end|> | Change the timestamp of symbolic link "somesymlink" to current date/time | touch -h somesymlink | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change to directory 'foo' and print to terminal all received on standard input<|im_end|>
<|im_start|>assistant
cd foo | cat<|im_end|> | Change to directory 'foo' and print to terminal all received on standard input | cd foo | cat | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change to directory 'xyz' and resolve any symlinks in the resulting path, making the physical path the current one.<|im_end|>
<|im_start|>assi... | Change to directory 'xyz' and resolve any symlinks in the resulting path, making the physical path the current one. | cd -P xyz | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change to the directory containing the "oracle" executable<|im_end|>
<|im_start|>assistant
cd "$(dirname "$(which oracle)")"<|im_end|> | Change to the directory containing the "oracle" executable | cd "$(dirname "$(which oracle)")" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change to directory listed in file '$HOME/.lastdir'<|im_end|>
<|im_start|>assistant
cd `cat $HOME/.lastdir`<|im_end|> | Change to directory listed in file '$HOME/.lastdir' | cd `cat $HOME/.lastdir` | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change to the directory of the executable "python"<|im_end|>
<|im_start|>assistant
cd `dirname $(which python)`<|im_end|> | Change to the directory of the executable "python" | cd `dirname $(which python)` | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change to the directory pointed by variable TAG<|im_end|>
<|im_start|>assistant
cd "$TAG"<|im_end|> | Change to the directory pointed by variable TAG | cd "$TAG" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Changes to the directory where 'ssh' executable is located.<|im_end|>
<|im_start|>assistant
cd $(dirname $(which ssh));<|im_end|> | Changes to the directory where 'ssh' executable is located. | cd $(dirname $(which ssh)); | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change to location of '$TARGET_FILE' file.<|im_end|>
<|im_start|>assistant
cd `dirname $TARGET_FILE`<|im_end|> | Change to location of '$TARGET_FILE' file. | cd `dirname $TARGET_FILE` | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change to parent directory and resolve any symlinks in the resulting path, making the physical path the current one.<|im_end|>
<|im_start|>ass... | Change to parent directory and resolve any symlinks in the resulting path, making the physical path the current one. | cd -P .. | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change the user and group of all files and directories under /var/www to www-data:www-data<|im_end|>
<|im_start|>assistant
find /var/www -prin... | Change the user and group of all files and directories under /var/www to www-data:www-data | find /var/www -print0 | xargs -0 chown www-data:www-data | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
change user and group of the file /usr/bin/aws to user amzadm and group root<|im_end|>
<|im_start|>assistant
chown amzadm.root /usr/bin/aws<|... | change user and group of the file /usr/bin/aws to user amzadm and group root | chown amzadm.root /usr/bin/aws | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change user ownership to `foo' for files with UID=1005<|im_end|>
<|im_start|>assistant
find / -user 1005 -exec chown -h foo {} \;<|im_end|> | Change user ownership to `foo' for files with UID=1005 | find / -user 1005 -exec chown -h foo {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check all .txt files whether they contain "needle"<|im_end|>
<|im_start|>assistant
find . -type f -iname "*.txt" -print | xargs grep "needle"<... | Check all .txt files whether they contain "needle" | find . -type f -iname "*.txt" -print | xargs grep "needle" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check all .txt files whose names may contain spaces whether they contain "needle"<|im_end|>
<|im_start|>assistant
find . -type f -iname "*.txt... | Check all .txt files whose names may contain spaces whether they contain "needle" | find . -type f -iname "*.txt" -print0 | xargs -0 grep "needle" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Checks compressed file integrity.<|im_end|>
<|im_start|>assistant
bzip2 -t file.bz2<|im_end|> | Checks compressed file integrity. | bzip2 -t file.bz2 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check the environment variables generated by switching to the root account.<|im_end|>
<|im_start|>assistant
sudo env<|im_end|> | Check the environment variables generated by switching to the root account. | sudo env | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
check find version<|im_end|>
<|im_start|>assistant
find --version<|im_end|> | check find version | find --version | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if "\[$VLABEL\]" is mounted and save the result in variable "AMV"<|im_end|>
<|im_start|>assistant
AMV=$(mount -l | grep "\[$VLABEL\]")<|... | Check if "\[$VLABEL\]" is mounted and save the result in variable "AMV" | AMV=$(mount -l | grep "\[$VLABEL\]") | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if "~/mnt/sdc1" is mounted<|im_end|>
<|im_start|>assistant
mount | grep -q ~/mnt/sdc1<|im_end|> | Check if "~/mnt/sdc1" is mounted | mount | grep -q ~/mnt/sdc1 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if the $somedir directory is empty<|im_end|>
<|im_start|>assistant
find "$somedir" -maxdepth 0 -empty -exec echo {} is empty. \;<|im_end... | Check if the $somedir directory is empty | find "$somedir" -maxdepth 0 -empty -exec echo {} is empty. \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if 'nullglob' shell option is enabled, and if so, saves its status in 'is_nullglob' variable.<|im_end|>
<|im_start|>assistant
is_nullglo... | Check if 'nullglob' shell option is enabled, and if so, saves its status in 'is_nullglob' variable. | is_nullglob=$( shopt -s | egrep -i '*nullglob' ) | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if a drive is mounted to nfs<|im_end|>
<|im_start|>assistant
mount |grep nfs<|im_end|> | Check if a drive is mounted to nfs | mount |grep nfs | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if a drive with UUID "$UUID" is mounted<|im_end|>
<|im_start|>assistant
mount | grep $(readlink -f /dev/disk/by-uuid/$UUID )<|im_end|> | Check if a drive with UUID "$UUID" is mounted | mount | grep $(readlink -f /dev/disk/by-uuid/$UUID ) | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
check if there any files from the .git folder after excluding it using the prune command<|im_end|>
<|im_start|>assistant
find . -path ./.git -... | check if there any files from the .git folder after excluding it using the prune command | find . -path ./.git -prune -o -print -a \( -type f -o -type l -o -type d \) | grep '.git' | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if content of all top-level *.txt files in the current directory contain only unique lines<|im_end|>
<|im_start|>assistant
cat *.txt | s... | Check if content of all top-level *.txt files in the current directory contain only unique lines | cat *.txt | sort | sort -u -c | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if the contents of file "subset" is a subset of file "set"<|im_end|>
<|im_start|>assistant
comm -23 <(sort subset | uniq) <(sort set | u... | Check if the contents of file "subset" is a subset of file "set" | comm -23 <(sort subset | uniq) <(sort set | uniq) | head -1 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if directory $some_dir is empty<|im_end|>
<|im_start|>assistant
find "`echo "$some_dir"`" -maxdepth 0 -empty<|im_end|> | Check if directory $some_dir is empty | find "`echo "$some_dir"`" -maxdepth 0 -empty | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if the directory tree whose name is given as variable $somedir contains no regular files<|im_end|>
<|im_start|>assistant
find "$somedir"... | Check if the directory tree whose name is given as variable $somedir contains no regular files | find "$somedir" -type f -exec echo Found unexpected file {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if the file "somelink" links to exists<|im_end|>
<|im_start|>assistant
ls `readlink somelink`<|im_end|> | Check if the file "somelink" links to exists | ls `readlink somelink` | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
check if myfile has 0644 permissions<|im_end|>
<|im_start|>assistant
find myfile -perm 0644 -print<|im_end|> | check if myfile has 0644 permissions | find myfile -perm 0644 -print | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if process ID 1 exists (init or systemd) and current user has permission to send it signals.<|im_end|>
<|im_start|>assistant
kill -0 1<|... | Check if process ID 1 exists (init or systemd) and current user has permission to send it signals. | kill -0 1 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
check readline bindings for "\x61"<|im_end|>
<|im_start|>assistant
bind -p | grep $'"\x61"'<|im_end|> | check readline bindings for "\x61" | bind -p | grep $'"\x61"' | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Checks that 'monit' user is in 'www-data' group.<|im_end|>
<|im_start|>assistant
groups monit |grep www-data<|im_end|> | Checks that 'monit' user is in 'www-data' group. | groups monit |grep www-data | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check that the master ssh connection "officefirewall" is running<|im_end|>
<|im_start|>assistant
ssh -O check officefirewall<|im_end|> | Check that the master ssh connection "officefirewall" is running | ssh -O check officefirewall | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check that the master SSH control socket "my-ctrl-socket" to "jm@sampledomain.com" is running<|im_end|>
<|im_start|>assistant
ssh -S my-ctrl-s... | Check that the master SSH control socket "my-ctrl-socket" to "jm@sampledomain.com" is running | ssh -S my-ctrl-socket -O check jm@sampledomain.com | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
check the type of files in the folder /usr/bin<|im_end|>
<|im_start|>assistant
find /usr/bin | xargs file<|im_end|> | check the type of files in the folder /usr/bin | find /usr/bin | xargs file | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check whether "$path_in_question" is a mount point<|im_end|>
<|im_start|>assistant
df $path_in_question | grep " $path_in_question$"<|im_end|> | Check whether "$path_in_question" is a mount point | df $path_in_question | grep " $path_in_question$" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check whether "/full/path" is a mount point with no output and using the exit code<|im_end|>
<|im_start|>assistant
df /full/path | grep -q /fu... | Check whether "/full/path" is a mount point with no output and using the exit code | df /full/path | grep -q /full/path | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Clean the current directory from all subversion directories recursively<|im_end|>
<|im_start|>assistant
find . -type d -name ".svn" -print | x... | Clean the current directory from all subversion directories recursively | find . -type d -name ".svn" -print | xargs rm -rf | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Clear the in-memory history<|im_end|>
<|im_start|>assistant
history -c<|im_end|> | Clear the in-memory history | history -c | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Clear the in-memory history and read from the current history file<|im_end|>
<|im_start|>assistant
history -cr<|im_end|> | Clear the in-memory history and read from the current history file | history -cr | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Clears terminal screen.<|im_end|>
<|im_start|>assistant
echo `clear`<|im_end|> | Clears terminal screen. | echo `clear` | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Clears the terminal screen.<|im_end|>
<|im_start|>assistant
clear<|im_end|> | Clears the terminal screen. | clear | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Close the master SSH control socket "my-ctrl-socket" to "jm@sampledomain.com"<|im_end|>
<|im_start|>assistant
ssh -S my-ctrl-socket -O exit jm... | Close the master SSH control socket "my-ctrl-socket" to "jm@sampledomain.com" | ssh -S my-ctrl-socket -O exit jm@sampledomain.com | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
This command find displays the files which are modified in the last 15 minutes. And it lists only the unhidden files. i.e hidden files that st... | This command find displays the files which are modified in the last 15 minutes. And it lists only the unhidden files. i.e hidden files that starts with a . (period) are not displayed in the find output. | find . -mmin -15 \( ! -regex ".*/\..*" \) | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
The command runs all the directories (-type d) found in the $LOGDIR directory wherein a file's data has been modified within the last 24 hour... | The command runs all the directories (-type d) found in the $LOGDIR directory wherein a file's data has been modified within the last 24 hours (-mtime +0) and compresses them (compress -r {}) to save disk space. | find $LOGDIR -type d -mtime +0 -exec compress -r {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare "$source_file" and "$dest_file" line by line<|im_end|>
<|im_start|>assistant
diff "$source_file" "$dest_file"<|im_end|> | Compare "$source_file" and "$dest_file" line by line | diff "$source_file" "$dest_file" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare "current.log" and "previous.log" line by line and print lines containing regex pattern ">\|<"<|im_end|>
<|im_start|>assistant
diff cur... | Compare "current.log" and "previous.log" line by line and print lines containing regex pattern ">\|<" | diff current.log previous.log | grep ">\|<" #comparring users lists | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare "fastcgi_params" and "fastcgi.conf" line by line, output 3 lines of unified context, and print the C function the change is in<|im_end... | Compare "fastcgi_params" and "fastcgi.conf" line by line, output 3 lines of unified context, and print the C function the change is in | diff -up fastcgi_params fastcgi.conf | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare "file1" and "file2" line by line with 3 lines of unified context<|im_end|>
<|im_start|>assistant
diff -u file1 file2<|im_end|> | Compare "file1" and "file2" line by line with 3 lines of unified context | diff -u file1 file2 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare *.csv files in the current directory tree with their analogs stored in /some/other/path/<|im_end|>
<|im_start|>assistant
find . -name ... | Compare *.csv files in the current directory tree with their analogs stored in /some/other/path/ | find . -name "*.csv" -exec diff {} /some/other/path/{} ";" -print | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compares two listings 'ls' and 'ls *Music*', showing only strings that unique for first listing.<|im_end|>
<|im_start|>assistant
comm -23 <(ls... | Compares two listings 'ls' and 'ls *Music*', showing only strings that unique for first listing. | comm -23 <(ls) <(ls *Music*) | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare the contents of "/bin" and "/usr/bin" line by line<|im_end|>
<|im_start|>assistant
diff <(ls /bin) <(ls /usr/bin)<|im_end|> | Compare the contents of "/bin" and "/usr/bin" line by line | diff <(ls /bin) <(ls /usr/bin) | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare the contents of gzip-ompressed files "file1" and "file2"<|im_end|>
<|im_start|>assistant
diff <(zcat file1.gz) <(zcat file2.gz)<|im_en... | Compare the contents of gzip-ompressed files "file1" and "file2" | diff <(zcat file1.gz) <(zcat file2.gz) | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare each .xml file under the current directory with a file of the same name in "/destination/dir/2"<|im_end|>
<|im_start|>assistant
find .... | Compare each .xml file under the current directory with a file of the same name in "/destination/dir/2" | find . -name *.xml -exec diff {} /destination/dir/2/{} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
compare each C header file in or below the current directory with the file /tmp/master<|im_end|>
<|im_start|>assistant
find . -name '*.h' -exe... | compare each C header file in or below the current directory with the file /tmp/master | find . -name '*.h' -execdir diff -u '{}' /tmp/master ';' | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare each file in "repos1/" and "repos2/", treat absent files as empty, ignore differences in whitespace and tab expansions, and print 3 li... | Compare each file in "repos1/" and "repos2/", treat absent files as empty, ignore differences in whitespace and tab expansions, and print 3 lines of unified context | diff -ENwbur repos1/ repos2/ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare files "A1" and "A2" with 3 lines of unified context and print lines beginning with "+"<|im_end|>
<|im_start|>assistant
diff -u A1 A2 |... | Compare files "A1" and "A2" with 3 lines of unified context and print lines beginning with "+" | diff -u A1 A2 | grep -E "^\+" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare files 'file1' and 'file2' and print in three columns strings unique for first file, second file, and common ones<|im_end|>
<|im_start|... | Compare files 'file1' and 'file2' and print in three columns strings unique for first file, second file, and common ones | comm abc def | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare files in "/tmp/dir1" and "/tmp/dir2", treat absent files as empty and all files as text, and print 3 lines of unified context<|im_end|... | Compare files in "/tmp/dir1" and "/tmp/dir2", treat absent files as empty and all files as text, and print 3 lines of unified context | diff -Naur dir1/ dir2 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare the files in 'FOLDER1' and 'FOLDER2' and show which ones are indentical and which ones differ<|im_end|>
<|im_start|>assistant
find FOL... | Compare the files in 'FOLDER1' and 'FOLDER2' and show which ones are indentical and which ones differ | find FOLDER1 -type f -print0 | xargs -0 -I % find FOLDER2 -type f -exec diff -qs --from-file="%" '{}' \+ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare sorted files 'f1.txt' and 'f2.txt' and print in three columns strings unique for first file, second file, and common ones<|im_end|>
<|... | Compare sorted files 'f1.txt' and 'f2.txt' and print in three columns strings unique for first file, second file, and common ones | comm <(sort -n f1.txt) <(sort -n f2.txt) | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare sorted files 'f1.txt' and 'f2.txt' and print in three columns strings unique for first file, second file, and common ones<|im_end|>
<|... | Compare sorted files 'f1.txt' and 'f2.txt' and print in three columns strings unique for first file, second file, and common ones | comm <(sort f1.txt) <(sort f2.txt) | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare text "hello" and "goodbye" line by line<|im_end|>
<|im_start|>assistant
diff <(echo hello) <(echo goodbye)<|im_end|> | Compare text "hello" and "goodbye" line by line | diff <(echo hello) <(echo goodbye) | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compose filepath as folder path where file $SRC is located, and lowercase filename of $SRC file, and save it in 'DST' variable<|im_end|>
<|im_... | Compose filepath as folder path where file $SRC is located, and lowercase filename of $SRC file, and save it in 'DST' variable | DST=`dirname "${SRC}"`/`basename "${SRC}" | tr '[A-Z]' '[a-z]'` | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compose filepath as folder path where file $f is located, and lowercase filename of $f file, and save it in 'g' variable<|im_end|>
<|im_start|... | Compose filepath as folder path where file $f is located, and lowercase filename of $f file, and save it in 'g' variable | g=`dirname "$f"`/`basename "$f" | tr '[A-Z]' '[a-z]'` | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Composes full process tree with process id numbers, and prints only those strings that contain 'git'.<|im_end|>
<|im_start|>assistant
pstree -... | Composes full process tree with process id numbers, and prints only those strings that contain 'git'. | pstree -p | grep git | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress "archive.tar"<|im_end|>
<|im_start|>assistant
gzip archive.tar<|im_end|> | Compress "archive.tar" | gzip archive.tar | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress "hello world" and save to variable "hey"<|im_end|>
<|im_start|>assistant
hey=$(echo "hello world" | gzip -cf)<|im_end|> | Compress "hello world" and save to variable "hey" | hey=$(echo "hello world" | gzip -cf) | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress "my_large_file" with gzip and split the result into files of size 1024 MiB with prefix "myfile_split.gz_"<|im_end|>
<|im_start|>assis... | Compress "my_large_file" with gzip and split the result into files of size 1024 MiB with prefix "myfile_split.gz_" | gzip -c my_large_file | split -b 1024MiB - myfile_split.gz_ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress $file file using gzip<|im_end|>
<|im_start|>assistant
gzip "$file"<|im_end|> | Compress $file file using gzip | gzip "$file" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress a file named '{}' in the current directory<|im_end|>
<|im_start|>assistant
gzip "{}"<|im_end|> | Compress a file named '{}' in the current directory | gzip "{}" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress all ".txt" files in all sub directories with gzip<|im_end|>
<|im_start|>assistant
gzip */*.txt<|im_end|> | Compress all ".txt" files in all sub directories with gzip | gzip */*.txt | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress all ".txt" files in the current directory tree with gzip<|im_end|>
<|im_start|>assistant
find . -type f -name "*.txt" -exec gzip {} \... | Compress all ".txt" files in the current directory tree with gzip | find . -type f -name "*.txt" -exec gzip {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress all *.img files using bzip2<|im_end|>
<|im_start|>assistant
find ./ -name "*.img" -exec bzip2 -v {} \;<|im_end|> | Compress all *.img files using bzip2 | find ./ -name "*.img" -exec bzip2 -v {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress all directories found in directory tree $LOGDIR that have been modified within the last 24 hours<|im_end|>
<|im_start|>assistant
find... | Compress all directories found in directory tree $LOGDIR that have been modified within the last 24 hours | find $LOGDIR -type d -mtime -1 -exec compress -r {} \; | GWHed/nl2bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.