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 Count the number of users logged in<|im_end|> <|im_start|>assistant who | wc -l<|im_end|>
Count the number of users logged in
who | wc -l
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 Count the occurrence of 2 in the string '1 1 2 2 2 5'<|im_end|> <|im_start|>assistant echo "1 1 2 2 2 5" | tr ' ' $'\n' | grep -c 2<|im_end|>
Count the occurrence of 2 in the string '1 1 2 2 2 5'
echo "1 1 2 2 2 5" | tr ' ' $'\n' | grep -c 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 Count the total number of lines in all "*.gz" files in the current directory tree after decompression<|im_end|> <|im_start|>assistant find . -...
Count the total number of lines in all "*.gz" files in the current directory tree after decompression
find . -type f -name '*.gz' | xargs zcat | wc -l
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 Count total number of lines in all *txt files in current directory<|im_end|> <|im_start|>assistant wc -l `find . -type f -name '*.txt' `<|im_...
Count total number of lines in all *txt files in current directory
wc -l `find . -type f -name '*.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 Count the total number of lines in all HTML files under /usr/src that contain string "foo"<|im_end|> <|im_start|>assistant find /usr/src -name...
Count the total number of lines in all HTML files under /usr/src that contain string "foo"
find /usr/src -name "*.html" -execdir /usr/bin/grep -H "foo" {} ';' | wc -l
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 cpio command is a copy command designed to copy files into and out of a cpio or tar archive, automatically preserving permissions, times, ...
The cpio command is a copy command designed to copy files into and out of a cpio or tar archive, automatically preserving permissions, times, and ownership of files and subdirectories.
find . | cpio -pdumv /path/to/destination/dirrectory
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 Create 5 empty .txt files<|im_end|> <|im_start|>assistant echo "a.txt b.txt c.txt d.txt z.txt" | xargs touch<|im_end|>
Create 5 empty .txt files
echo "a.txt b.txt c.txt d.txt z.txt" | xargs touch
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 Create 6-letter named temporary directory in a folder path that is provided as the first positional parameter, and save the path to it in a va...
Create 6-letter named temporary directory in a folder path that is provided as the first positional parameter, and save the path to it in a variable 'tmp'
tmp=$(mktemp -d $(dirname "$1")/XXXXXX)
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 Create 6-letter named temporary file in a folder path $file1, and save the path to it in a variable 'tmpfile'<|im_end|> <|im_start|>assistant ...
Create 6-letter named temporary file in a folder path $file1, and save the path to it in a variable 'tmpfile'
tmpfile=$(mktemp $(dirname "$file1")/XXXXXX)
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 Create 6-letter named temporary file in a folder path that is provided as the first positional parameter, and save the path to it in a variabl...
Create 6-letter named temporary file in a folder path that is provided as the first positional parameter, and save the path to it in a variable 'tmpfile'
tmpfile=$(mktemp $(dirname "$1")/XXXXXX)
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 Create 998 directories one inside another with sequential names folder1, folder2, ... folder998 and create an additional folder named 'folder9...
Create 998 directories one inside another with sequential names folder1, folder2, ... folder998 and create an additional folder named 'folder9991000' inside the last 'folder998' directory
mkdir -p folder$( seq -s "/folder" 999 )1000
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 create a backup of all the files in the current folder excluding those that are present in the .snapshot sub directory and excluding the swap ...
create a backup of all the files in the current folder excluding those that are present in the .snapshot sub directory and excluding the swap files (files ending with ~)
find . -name .snapshot -prune -o \( \! -name *~ -print0 \) | cpio -pmd0 /dest-dir
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 create a backup of all the files in the current folder to the floppy and save the file list in the file /tmp/BACKUP.LOG<|im_end|> <|im_start|>...
create a backup of all the files in the current folder to the floppy and save the file list in the file /tmp/BACKUP.LOG
find . -cpio /dev/fd0 -print | tee /tmp/BACKUP.LOG
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 create a backup of all the files in the home folder on a partition and save the log to a file<|im_end|> <|im_start|>assistant find /home -dept...
create a backup of all the files in the home folder on a partition and save the log to a file
find /home -depth -print | cpio -ov -0 /dev/rmt0 | tee -a tape.log
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 create a backup of all the files which have been modified in the last 48 hours<|im_end|> <|im_start|>assistant find source/directory -ctime -2...
create a backup of all the files which have been modified in the last 48 hours
find source/directory -ctime -2 | cpio -pvdm /my/dest/directory
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 create a compressed archive "filename.tar.gz" with verbose output<|im_end|> <|im_start|>assistant tar -cvzf filename.tar.gz folder<|im_end|>
create a compressed archive "filename.tar.gz" with verbose output
tar -cvzf filename.tar.gz folder
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 Create a compressed archive from "www" and split the contents into files of at most 1073741824 bytes and use prefix "www-backup.tar."<|im_end|...
Create a compressed archive from "www" and split the contents into files of at most 1073741824 bytes and use prefix "www-backup.tar."
tar czf - www|split -b 1073741824 - www-backup.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 create a compressed archive in my_dir directory matching '.[^.]* ..?*' glob pattern<|im_end|> <|im_start|>assistant tar -C my_dir -zcvf my_dir...
create a compressed archive in my_dir directory matching '.[^.]* ..?*' glob pattern
tar -C my_dir -zcvf my_dir.tar.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 create a compressed archive with files newer than 1st of January 2014, 18:00:00.<|im_end|> <|im_start|>assistant tar -N '2014-02-01 18:00:00' ...
create a compressed archive with files newer than 1st of January 2014, 18:00:00.
tar -N '2014-02-01 18:00:00' -jcvf archive.tar.bz2 files
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 Create a directory named 'alpha_real' in the current directory<|im_end|> <|im_start|>assistant mkdir alpha_real<|im_end|>
Create a directory named 'alpha_real' in the current directory
mkdir alpha_real
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 Create a full path symbolic link "$newlink" from a relative path symbolic link "$origlink"<|im_end|> <|im_start|>assistant ln -s $(readlink -f...
Create a full path symbolic link "$newlink" from a relative path symbolic link "$origlink"
ln -s $(readlink -f $origlink) $newlink
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 Create a gzip archive file ($tarFile) of all *.log files under $sourcePath<|im_end|> <|im_start|>assistant find $sourcePath -type f -name "*.l...
Create a gzip archive file ($tarFile) of all *.log files under $sourcePath
find $sourcePath -type f -name "*.log" -exec tar -uvf $tarFile {} \;
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 create a hard link as directory named "new_hard_link" to the directory "existing_dir" as root<|im_end|> <|im_start|>assistant sudo ln -d ex...
create a hard link as directory named "new_hard_link" to the directory "existing_dir" as root
sudo ln -d existing_dir new_hard_link
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 Create a hard link named "my-hard-link" to "myfile.txt"<|im_end|> <|im_start|>assistant ln myfile.txt my-hard-link<|im_end|>
Create a hard link named "my-hard-link" to "myfile.txt"
ln myfile.txt my-hard-link
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 create a link to all the html or htm files in the current folder which have been changed in the last 30*24 hours<|im_end|> <|im_start|>assista...
create a link to all the html or htm files in the current folder which have been changed in the last 30*24 hours
find \( -name "*.htm" -o -name "*.html" \) -a -ctime -30 -exec ln {} /var/www/obsolete \;
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 create a list of all files in all subdirectories<|im_end|> <|im_start|>assistant find . -type f -exec md5 {} \;<|im_end|>
create a list of all files in all subdirectories
find . -type f -exec md5 {} \;
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 Create a local SSH tunnel from "localhost" port 16379 to "localhost" port 6379 using key "keyfile.rsa" and disables the interactive shell<|im_...
Create a local SSH tunnel from "localhost" port 16379 to "localhost" port 6379 using key "keyfile.rsa" and disables the interactive shell
ssh -i keyfile.rsa -T -N -L 16379:localhost:6379 someuser@somehost
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 Create a new directory "existing-dir/new-dir/" on host "node"<|im_end|> <|im_start|>assistant rsync /dev/null node:existing-dir/new-dir/<|im_e...
Create a new directory "existing-dir/new-dir/" on host "node"
rsync /dev/null node:existing-dir/new-dir/
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 Create a new RSA key for ssh with no passphrase, store it in ~/.ssh/id_rsa without prompting to overwrite if this file exists, and minimize ou...
Create a new RSA key for ssh with no passphrase, store it in ~/.ssh/id_rsa without prompting to overwrite if this file exists, and minimize output from ssh-keygen.
echo -e 'y\n'|ssh-keygen -q -t rsa -N "" -f ~/.ssh/id_rsa
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 Create a rsa key of 2048 bits with comment "michael" and store it in file "key".<|im_end|> <|im_start|>assistant ssh-keygen -b 2048 -t rsa -f ...
Create a rsa key of 2048 bits with comment "michael" and store it in file "key".
ssh-keygen -b 2048 -t rsa -f key -C michael
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 create a soft link of the files in the folder /media/movies which have been modified in the last 30 days<|im_end|> <|im_start|>assistant find ...
create a soft link of the files in the folder /media/movies which have been modified in the last 30 days
find /media/Movies -type f -mtime -30 -exec ln -s {} /media/Movies/New/ \;
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 Create a ssh key and store it in the file ~/.ssh/apache-rsync<|im_end|> <|im_start|>assistant ssh-keygen -f ~/.ssh/apache-rsync<|im_end|>
Create a ssh key and store it in the file ~/.ssh/apache-rsync
ssh-keygen -f ~/.ssh/apache-rsync
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 Create a ssh key of RSA type, and prompt for a filename to store it, presenting the default for this type of key as $HOME/.ssh/id_rsa<|im_end|...
Create a ssh key of RSA type, and prompt for a filename to store it, presenting the default for this type of key as $HOME/.ssh/id_rsa
ssh-keygen -t rsa
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 Create a ssh tunnel on local port 2222 through "bridge.example.com" to "remote.example.com" port 22 without executing any commands and run in ...
Create a ssh tunnel on local port 2222 through "bridge.example.com" to "remote.example.com" port 22 without executing any commands and run in the background
ssh -N -L 2222:remote.example.com:22 bridge.example.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 Create a symbolic link in "/bar/tmp/" for each file in directory "/foo" that does not start with "runscript"<|im_end|> <|im_start|>assistant f...
Create a symbolic link in "/bar/tmp/" for each file in directory "/foo" that does not start with "runscript"
find /foo -maxdepth 1 -type f ! -name 'runscript*' -exec ln -s {} /bar/tmp/ \;
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 Create a symolic link in "/usr/local/" to "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"<|im_end|> <|im_start|>assistant ln...
Create a symolic link in "/usr/local/" to "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/
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 Create a symolic link in "/usr/local/bin/" to "/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl"<|im_end|> <|im_start|>assis...
Create a symolic link in "/usr/local/bin/" to "/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl"
ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/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 Create a symbolic link in the current directory for each .jpg file under "dir"<|im_end|> <|im_start|>assistant ln -s "$(find dir -name '*.jpg'...
Create a symbolic link in the current directory for each .jpg file under "dir"
ln -s "$(find dir -name '*.jpg')" .
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 Create a symbolic link in the current directory for each file .dbf under the directories matching "/home/michael/foxpro/mount/A[1FV]/[12][0-9]...
Create a symbolic link in the current directory for each file .dbf under the directories matching "/home/michael/foxpro/mount/A[1FV]/[12][0-9][0-9][0-9]"
find /home/michael/foxpro/mount/A[1FV]/[12][0-9][0-9][0-9] -name '*.dbf' -type f -exec ln -s {} \;
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 Create a symbolic link in the current directory for each file under the directories matching "../[12][0-9][0-9]"<|im_end|> <|im_start|>assista...
Create a symbolic link in the current directory for each file under the directories matching "../[12][0-9][0-9]"
find ../[12][0-9][0-9][0-9] -type f -exec ln -s {} \;
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 create a symbolic link in current directory named "environments" to file "../config/environments"<|im_end|> <|im_start|>assistant ln -s "../co...
create a symbolic link in current directory named "environments" to file "../config/environments"
ln -s "../config/environments"
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 create a symbolic link in current directory named "my_db" to file "/media/public/xampp/mysql/data/my_db"<|im_end|> <|im_start|>assistant ln /m...
create a symbolic link in current directory named "my_db" to file "/media/public/xampp/mysql/data/my_db"
ln /media/public/xampp/mysql/data/my_db -s
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 Create a symbolic link in the current directory to "../config/init"<|im_end|> <|im_start|>assistant ln -s "../config/init"<|im_end|>
Create a symbolic link in the current directory to "../config/init"
ln -s "../config/init"
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 Create a symbolc link in the current directory to "target"<|im_end|> <|im_start|>assistant ln -s target<|im_end|>
Create a symbolc link in the current directory to "target"
ln -s target
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 Create a symbolic link in directory "/path/to/dir" for each file and directory under the current directory starting with "."<|im_end|> <|im_st...
Create a symbolic link in directory "/path/to/dir" for each file and directory under the current directory starting with "."
find $PWD -name '.[^.]*' -exec ln -s '{}' /path/to/dir \;
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 Create a symbolic link in directory "new" for each file in "original" directory tree<|im_end|> <|im_start|>assistant find original -type f -ex...
Create a symbolic link in directory "new" for each file in "original" directory tree
find original -type f -exec ln -s {} new/{} \;
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 Create a symbolic link in directory "~/newlinks" for each file listed in "results2.txt"<|im_end|> <|im_start|>assistant cat results2.txt | xar...
Create a symbolic link in directory "~/newlinks" for each file listed in "results2.txt"
cat results2.txt | xargs -I{} ln -s {} ~/newlinks
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 Create a symbolic link in target directory "$tmpdir" for each file under the current directory<|im_end|> <|im_start|>assistant find $PWD -type...
Create a symbolic link in target directory "$tmpdir" for each file under the current directory
find $PWD -type f -exec ln -st $tmpdir {} +
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 Create a symbolic link named "$1/link" to the current working directory<|im_end|> <|im_start|>assistant ln -s "`pwd`" $1/link<|im_end|>
Create a symbolic link named "$1/link" to the current working directory
ln -s "`pwd`" $1/link
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 Create a symbolic link named "$1/link" to the existing full and real path of "$2"<|im_end|> <|im_start|>assistant ln -s "$(readlink -e "$2")" ...
Create a symbolic link named "$1/link" to the existing full and real path of "$2"
ln -s "$(readlink -e "$2")" "$1/link"
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 Create a symbolic link named "$HOME/bin/" to "$HOME/downloads/fnord"<|im_end|> <|im_start|>assistant ln -s $HOME/downloads/fnord $HOME/bin/<|i...
Create a symbolic link named "$HOME/bin/" to "$HOME/downloads/fnord"
ln -s $HOME/downloads/fnord $HOME/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 create a symbolic link named "$ORACLE_HOME/include" to file "/usr/include/oracle/11.2/client"<|im_end|> <|im_start|>assistant sudo ln -s /usr/...
create a symbolic link named "$ORACLE_HOME/include" to file "/usr/include/oracle/11.2/client"
sudo ln -s /usr/include/oracle/11.2/client $ORACLE_HOME/include
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 Create a symbolic link named "$SYMLINK" to "$ACTUAL_DIR"<|im_end|> <|im_start|>assistant ln -s "$ACTUAL_DIR" "$SYMLINK"<|im_end|>
Create a symbolic link named "$SYMLINK" to "$ACTUAL_DIR"
ln -s "$ACTUAL_DIR" "$SYMLINK"
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 Create a symbolic link named "$tmpdir/bam" to the full path of command "bam2" found in "$PATH"<|im_end|> <|im_start|>assistant ln -s "$(which ...
Create a symbolic link named "$tmpdir/bam" to the full path of command "bam2" found in "$PATH"
ln -s "$(which bam2)" "$tmpdir"/bam
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 Create a symbolic link named "${DESTINATION}${file}" to "${TARGET}${file}"<|im_end|> <|im_start|>assistant ln -s "${TARGET}${file}" "${DESTI...
Create a symbolic link named "${DESTINATION}${file}" to "${TARGET}${file}"
ln -s "${TARGET}${file}" "${DESTINATION}${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 create a symbolic link named "-pdf-kundendienst" to "local--pdf-kundendienst" file<|im_end|> <|im_start|>assistant ln -s -- ./local--pdf-kunde...
create a symbolic link named "-pdf-kundendienst" to "local--pdf-kundendienst" file
ln -s -- ./local--pdf-kundendienst -pdf-kundendienst
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 Create a symbolic link named ".bash_profile" to ".bashrc"<|im_end|> <|im_start|>assistant ln -s .bashrc .bash_profile<|im_end|>
Create a symbolic link named ".bash_profile" to ".bashrc"
ln -s .bashrc .bash_profile
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 Create a symbolic link named "/lib/libc.so.0" to "/lib/libc.so.6"<|im_end|> <|im_start|>assistant ln -s /lib/libc.so.6 /lib/libc.so.0<|im_end|...
Create a symbolic link named "/lib/libc.so.0" to "/lib/libc.so.6"
ln -s /lib/libc.so.6 /lib/libc.so.0
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 create a symbolic link named "/usr/bin/my-editor" to file "/usr/share/my-ditor/my-editor-executable"<|im_end|> <|im_start|>assistant ln -s /us...
create a symbolic link named "/usr/bin/my-editor" to file "/usr/share/my-ditor/my-editor-executable"
ln -s /usr/share/my-ditor/my-editor-executable /usr/bin/my-editor
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 create a symbolic link named "/usr/lib/jvm/default-java" to file "/usr/lib/jvm/java-7-oracle"<|im_end|> <|im_start|>assistant sudo ln -s /usr/...
create a symbolic link named "/usr/lib/jvm/default-java" to file "/usr/lib/jvm/java-7-oracle"
sudo ln -s /usr/lib/jvm/java-7-oracle /usr/lib/jvm/default-java
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 Create a symbolic link named "temp" to "newtarget"<|im_end|> <|im_start|>assistant ln -s newtarget temp<|im_end|>
Create a symbolic link named "temp" to "newtarget"
ln -s newtarget temp
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 Create a symbolic link named "wh" to "$wh"<|im_end|> <|im_start|>assistant ln -s "$wh" wh<|im_end|>
Create a symbolic link named "wh" to "$wh"
ln -s "$wh" wh
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 create a symbolic link named "www" to file "www1"<|im_end|> <|im_start|>assistant ln -s www1 www<|im_end|>
create a symbolic link named "www" to file "www1"
ln -s www1 www
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 Create a symbolic link named "~/bin/subl" to "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"<|im_end|> <|im_start|>assistan...
Create a symbolic link named "~/bin/subl" to "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
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 Create a symbolic link relative to link location named "$dest_dir/$orig_name" to "$orig_dest"<|im_end|> <|im_start|>assistant ln -r -s "$orig_...
Create a symbolic link relative to link location named "$dest_dir/$orig_name" to "$orig_dest"
ln -r -s "$orig_dest" "$dest_dir/$orig_name"
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 Create a symbolic link to "$file" named "/tmp/allfiles"<|im_end|> <|im_start|>assistant ln $file /tmp/allfiles<|im_end|>
Create a symbolic link to "$file" named "/tmp/allfiles"
ln $file /tmp/allfiles
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 Create a symbolic link to file "/usr/bin/perl" named with escaped characters "/usr/local/bin/perl\r\n"<|im_end|> <|im_start|>assistant sudo ln...
Create a symbolic link to file "/usr/bin/perl" named with escaped characters "/usr/local/bin/perl\r\n"
sudo ln -s /usr/bin/perl /usr/local/bin/perl`echo -e '\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 create a symbolic link with absolute path "/cygdrive/c/Users/Mic/mypics" to file "/cygdrive/c/Users/Mic/Desktop/PENDING - Pics/"<|im_end|> <|i...
create a symbolic link with absolute path "/cygdrive/c/Users/Mic/mypics" to file "/cygdrive/c/Users/Mic/Desktop/PENDING - Pics/"
ln -sf '/cygdrive/c/Users/Mic/Desktop/PENDING - Pics/' /cygdrive/c/Users/Mic/mypics
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 Create a symbolic lnk named "$1/link" to "$dir"<|im_end|> <|im_start|>assistant ln -s "$dir" "$1/link"<|im_end|>
Create a symbolic lnk named "$1/link" to "$dir"
ln -s "$dir" "$1/link"
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 Create a tar archive with all *.java files under the current directory<|im_end|> <|im_start|>assistant find . -type f -name "*.java" | xargs t...
Create a tar archive with all *.java files under the current directory
find . -type f -name "*.java" | xargs tar cvf myfile.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 create a tar ball of all pdf files in current folder<|im_end|> <|im_start|>assistant find . -name *.pdf | xargs tar czvf /root/Desktop/evidenc...
create a tar ball of all pdf files in current folder
find . -name *.pdf | xargs tar czvf /root/Desktop/evidence/pdf.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 create a tar.gz compress file with all the jpg files in the entire file system<|im_end|> <|im_start|>assistant find / -name *.jpg -type f -pri...
create a tar.gz compress file with all the jpg files in the entire file system
find / -name *.jpg -type f -print | xargs tar -cvzf images.tar.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 Creae a tarball 'files.tar.gz' containing all regular files under current directory tree that are newer than 2013-12-04 and older than 2013-12...
Creae a tarball 'files.tar.gz' containing all regular files under current directory tree that are newer than 2013-12-04 and older than 2013-12-05
find . -type f -name "*" -newermt 2013-12-04 ! -newermt 2013-12-05 | xargs -I {} tar -czvf files.tar.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 create a zip of all the files in the current folder which are bigger than 100Kb and do not go more than 2 levels during search<|im_end|> <|im_...
create a zip of all the files in the current folder which are bigger than 100Kb and do not go more than 2 levels during search
find . -maxdepth 2 -size +100000 -exec bzip2 {} \;
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 create a zip of log files in the current directory which have not been accessed in the last 3 days (-p is for parallel processing for a 4 cpu ...
create a zip of log files in the current directory which have not been accessed in the last 3 days (-p is for parallel processing for a 4 cpu machine)
find . -name '*.log' -mtime +3 -print0 | xargs -0 -P 4 bzip2
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 create a zip of log files in the current directory which have not been accessed in the last 3 days (-p is for parallel processing for a 4 cpu ...
create a zip of log files in the current directory which have not been accessed in the last 3 days (-p is for parallel processing for a 4 cpu machine, -n is for maximum work units)
find . -name '*.log' -mtime +3 -print0 | xargs -0 -n 500 -P 4 bzip2
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 Creates alias for network interface 'eth0' with IP address '192.0.2.55' and network mask '255.255.255.255'.<|im_end|> <|im_start|>assistant if...
Creates alias for network interface 'eth0' with IP address '192.0.2.55' and network mask '255.255.255.255'.
ifconfig eth0:fakenfs 192.0.2.55 netmask 255.255.255.255
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 Create all directories in the path specified by variable $javaUsrLib as super user<|im_end|> <|im_start|>assistant sudo mkdir -p $javaUsrLib<|...
Create all directories in the path specified by variable $javaUsrLib as super user
sudo mkdir -p $javaUsrLib
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 Create all directories in the path specified by variable $tempWork<|im_end|> <|im_start|>assistant mkdir -p $tempWork<|im_end|>
Create all directories in the path specified by variable $tempWork
mkdir -p $tempWork
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 create an archive excluding files matching patterns listed in /path/to/exclude.txt<|im_end|> <|im_start|>assistant tar -czf backup.tar.gz -X /...
create an archive excluding files matching patterns listed in /path/to/exclude.txt
tar -czf backup.tar.gz -X /path/to/exclude.txt /path/to/backup
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 create an archive using 7zhelper.sh as a compress program<|im_end|> <|im_start|>assistant tar -I 7zhelper.sh -cf OUTPUT_FILE.tar.7z paths_to_a...
create an archive using 7zhelper.sh as a compress program
tar -I 7zhelper.sh -cf OUTPUT_FILE.tar.7z paths_to_archive
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 create an archive using pbzip2 as a compress program<|im_end|> <|im_start|>assistant tar -I pbzip2 -cf OUTPUT_FILE.tar.bz2 /DIR_TO_ZIP/<|im_en...
create an archive using pbzip2 as a compress program
tar -I pbzip2 -cf OUTPUT_FILE.tar.bz2 /DIR_TO_ZIP/
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 create an archive using pbzip2 as a compress program<|im_end|> <|im_start|>assistant tar -I pbzip2 -cf OUTPUT_FILE.tar.bz2 paths_to_archive<|i...
create an archive using pbzip2 as a compress program
tar -I pbzip2 -cf OUTPUT_FILE.tar.bz2 paths_to_archive
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 Create an empty file "foo" in each directory under the current directory containing a file named "bar".<|im_end|> <|im_start|>assistant find -...
Create an empty file "foo" in each directory under the current directory containing a file named "bar".
find -name "bar" -execdir touch 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 Create an empty file 'last.check' in directory pointed by variable "log_dir", with specified timestamp.<|im_end|> <|im_start|>assistant touch ...
Create an empty file 'last.check' in directory pointed by variable "log_dir", with specified timestamp.
touch -m 201111301200.00 $log_dir/last.check
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 Create an empty file called "emptyfile.c"<|im_end|> <|im_start|>assistant cp /dev/null emptyfile.c<|im_end|>
Create an empty file called "emptyfile.c"
cp /dev/null emptyfile.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 Create an empty file (or update timestamp of file) specified by variable "correctFilePathAndName"<|im_end|> <|im_start|>assistant touch "$corr...
Create an empty file (or update timestamp of file) specified by variable "correctFilePathAndName"
touch "$correctFilePathAndName"
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 Create an empty file with a carriage return character in its name.<|im_end|> <|im_start|>assistant echo -e "Icon\\r" | xargs touch<|im_end|>
Create an empty file with a carriage return character in its name.
echo -e "Icon\\r" | xargs touch
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 Create an empty file with a carriage return character in its name.<|im_end|> <|im_start|>assistant touch $'Icon\r'<|im_end|>
Create an empty file with a carriage return character in its name.
touch $'Icon\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 Create an empty index.html in each directory under the current one, updating timestamps of already existing index.html files.<|im_end|> <|im_s...
Create an empty index.html in each directory under the current one, updating timestamps of already existing index.html files.
find . -type d -exec touch {}/index.html \;
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 Create an empty index.html, or update its timestamp if it already exists.<|im_end|> <|im_start|>assistant touch index.html<|im_end|>
Create an empty index.html, or update its timestamp if it already exists.
touch index.html
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 create and list contents of the archive<|im_end|> <|im_start|>assistant tar cf - $PWD|tar tvf -<|im_end|>
create and list contents of the archive
tar cf - $PWD|tar tvf -
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 create archive "backup.tar.gz" from /path/to/catalog<|im_end|> <|im_start|>assistant tar czfP backup.tar.gz /path/to/catalog<|im_end|>
create archive "backup.tar.gz" from /path/to/catalog
tar czfP backup.tar.gz /path/to/catalog
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 Create compressed archive from "my_large_file_1" and "my_large_file_2" and split into files of size 1024 MiB with prefix "myfiles_split.tgz_"<...
Create compressed archive from "my_large_file_1" and "my_large_file_2" and split into files of size 1024 MiB with prefix "myfiles_split.tgz_"
tar cz my_large_file_1 my_large_file_2 | split -b 1024MiB - myfiles_split.tgz_
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 Create compressed archive of all the files in the current directory tree that have been modified in the last 7 days<|im_end|> <|im_start|>assi...
Create compressed archive of all the files in the current directory tree that have been modified in the last 7 days
find . -type f -mtime -7 -print -exec cat {} \; | tar cf - | gzip -9
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 create directory ".hiddendir"<|im_end|> <|im_start|>assistant mkdir .hiddendir<|im_end|>
create directory ".hiddendir"
mkdir .hiddendir
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 Create directories "/tmp/x/y/z/" on remote host before copying "$source" to "user@remote:/tmp/x/y/z/"<|im_end|> <|im_start|>assistant rsync -a...
Create directories "/tmp/x/y/z/" on remote host before copying "$source" to "user@remote:/tmp/x/y/z/"
rsync -a --rsync-path="mkdir -p /tmp/x/y/z/ && rsync" $source user@remote:/tmp/x/y/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 Create the directory '.npm-global' in the user's home directory(~).<|im_end|> <|im_start|>assistant mkdir ~/.npm-global<|im_end|>
Create the directory '.npm-global' in the user's home directory(~).
mkdir ~/.npm-global
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 Create directorie(s) 'some/path' as required in the current directory<|im_end|> <|im_start|>assistant mkdir -p ./some/path<|im_end|>
Create directorie(s) 'some/path' as required in the current directory
mkdir -p ./some/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 create directory /cpuset<|im_end|> <|im_start|>assistant mkdir /cpuset<|im_end|>
create directory /cpuset
mkdir /cpuset
GWHed/nl2bash